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 > <https://groups.google.com/d/msgid/packer-tool/73d89fd6-1f70-4d09-be5b-5d3a86947722%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CALz9Rt8Ko%3Dmnq%2BOamYOuYAtZ8DAFpkQSvw3cr_dUVRbfabtcng%40mail.gmail.com.
