I'm not trying to do anything specific yet I just wanted to prepare a
general development environment to make contributions which, for me,
includes a debugger.  Thanks for the clarification Rickard but would
be nice to have this info in the documentation somewhere so I wouldn't
have to waste my time trying to figure out why debugging doesn't work
with packer.

On Thu, Aug 29, 2019 at 3:42 AM Rickard von Essen
<[email protected]> wrote:
>
> Each plugin is running in a separate process and the communicates with RCP 
> over a socket. So using a debugger will not work (be complicated at least).
>
> But most of the Packer code is really simple and easy to follow with 
> PACKER_LOG turned on. If that doesn't work adding some extra debug print outs 
> when you have homed in on the problem is usually enough.
>
> What are trying to do?
>
> On Thu, Aug 29, 2019, 01:38 Khai Do <[email protected]> wrote:
>>
>> Also this is my VS code launch configuration:
>>
>>
>> {
>>  "version": "0.2.0",
>>  "configurations": [
>>  {
>>  "name": "Launch",
>>  "type": "go",
>>  "request": "launch",
>>  "mode": "auto",
>>  "program": "${fileDirname}",
>>  "env": {"PACKER_LOG": "1", "AWS_PROFILE": "itsandbox", "AWS_REGION": 
>> "us-east-1"},
>>  "cwd": "/work/packer/test",
>>  "args": ["build", "-debug", "-on-error=ask", "template.json"]
>>  }
>>  ]
>> }
>>
>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html. Behavior in violation 
>> of those guidelines may result in your removal from this mailing list.
>>
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/73d89fd6-1f70-4d09-be5b-5d3a86947722%40googlegroups.com.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines - 
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
> those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to a topic in the Google 
> Groups "Packer" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/packer-tool/sfmZootjHBU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/packer-tool/CALz9Rt8Ko%3Dmnq%2BOamYOuYAtZ8DAFpkQSvw3cr_dUVRbfabtcng%40mail.gmail.com.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAOAVMhZMRnq6TD65qJMPwdJ_%2B3qcpW0f2FmXVp%3DgVm%2BkWtuE_Q%40mail.gmail.com.

Reply via email to