Add doc about debugger setup

From discussion on packer mailing list about setting up a debugger
for packer:
https://groups.google.com/d/msg/packer-tool/sfmZootjHBU/OhtEh3YTBwAJ
This commit is contained in:
Khai Do 2019-08-30 11:30:08 -07:00
parent 04d9888657
commit ca61b443c5
1 changed files with 9 additions and 0 deletions

View File

@ -292,3 +292,12 @@ make testacc TEST=./builder/amazon/ebs TESTARGS="-run TestBuilderAcc_forceDelete
Acceptance tests typically require other environment variables to be set for
things such as API tokens and keys. Each test should error and tell you which
credentials are missing, so those are not documented here.
#### Debugging
Each packer plugin runs in a separate process and communicates with RCP over a
socket therefore 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.