-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation about developper override #13167
Comments
Hi @remyleone, Right now we unfortunately don't have a recommended workflow when it comes to having a gdb/delve attached to a process for step-by-step debugging, in my opinion the best way you can get something is to run your builds with Regarding the I was going to link hashicorp/packer-plugin-sdk#231 to this issue, but it seems you've already found it :) Sorry to not bring better news to the table, hopefully we can improve that experience in the future. |
hey all! yes I looked at this for a while. I dug for a day or so on attaching delve to a pid but... iirc... it wasn't feasible because each test runs many pids. blanking on some of the details... We wound up using print debugging If you figure it out please let me know! |
Community Note
Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.
Description
I would like to have more documentation about how I can develop Packer plugins and have debugging workflows while debugging.
In terraform, it is possible to use: https://developer.hashicorp.com/terraform/cli/config/config-file
Is it also possible to use the same thing in Packer ? If not, is it possible to have a debugging workflows where I can attach a debugger with my IDE to test a given configurations?
Examples about how to set it up would be useful.
Use Case(s)
I'm a plugin developper and I would like to debug my plugin. I would like to attach a debugger to see the state of my variables.
Potential configuration
Potential References
In particular, could you add code examples on this page for the "Testing plugins" section?: https://github.com/hashicorp/packer/blob/main/website/content/docs/plugins/creation/index.mdx
The text was updated successfully, but these errors were encountered: