-
Notifications
You must be signed in to change notification settings - Fork 145
chore: add information on how to debug tfgen #4067
Conversation
This adds additional information on how to debug `tfgen` from the providers.
Your site preview for commit 3924517 is ready! 🎉 http://pulumi-hugo-origin-pr-4067-3924517d.s3-website.us-west-2.amazonaws.com. |
This PR adds two commands to make debugging `tfgen` for bridged providers easier. 1. `tfgen_build_only`: Only builds to `tfgen` binary, doesn't run generate. When debugging if you need to rebuild tfgen, you don't need to re-run all the other stuff too. 2. `debug_tfgen`: Starts `tfgen` as a debug server. Instructions on how to debug `tfgen` are being added to the docs in pulumi/pulumi-hugo#4067
For VS Code you can follow these steps to connect to the debugger. | ||
|
||
1. Navigate to **Run -> Add Configuration** and add the **Go: Connect to server** configuration | ||
![Screenshot of VS Code configuration for debugging providers](/docs/using-pulumi/pulumi-packages/img/vscode-launch-config-connect-to-server.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small thing; can you add a space above and below the screenshot. thx!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@interurban when I do that I get the below lint error. It looks like I can add a line either above or below but not both.
themes/default/content/docs/using-pulumi/pulumi-packages/debugging-provider-packages.md:
Line 114: Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/2/3].
Line 115: Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3].
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx @corymhall ; I added one small comment.
themes/default/content/docs/using-pulumi/pulumi-packages/debugging-provider-packages.md
Outdated
Show resolved
Hide resolved
themes/default/content/docs/using-pulumi/pulumi-packages/debugging-provider-packages.md
Outdated
Show resolved
Hide resolved
Your site preview for commit 02ab993 is ready! 🎉 http://pulumi-hugo-origin-pr-4067-02ab993f.s3-website.us-west-2.amazonaws.com. |
Your site preview for commit ea9e5a4 is ready! 🎉 http://pulumi-hugo-origin-pr-4067-ea9e5a4a.s3-website.us-west-2.amazonaws.com. |
This adds additional information on how to debug
tfgen
from the providers.Adding the
make
commands in pulumi/ci-mgmt#851Checklist:
[ ] If blogging, I have reviewed the blogging guide.[ ] I added aliases (i.e., redirects) for all filename changes.[ ] If making css changes, I rebuilt the bundle.