Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ For GoLand you can follow these steps.

1. Configure the working directory to the program you are going to run to mirror how Pulumi would start the provider

![Screenshot of GoLand configuration for debugging providers](/docs/iac/packages-and-automation/pulumi-packages/img/goland-debug-config.png)
![Screenshot of GoLand configuration for debugging providers](/docs/iac/using-pulumi/pulumi-packages/img/goland-debug-config.png)

### Example for VS Code

For VS Code you can follow these steps.

1. Navigate to **Run -> Add Configuration** and add the **Go: launch package** configuration
2. Edit `"program": "${fileDirname}"` to point to `cmd/pulumi-resource-<PROVIDER>` , e.g., `cmd/pulumi-resource-azure-native` for the Azure Native provider
![Screenshot of VS Code configuration for debugging providers](/docs/iac/packages-and-automation/pulumi-packages/img/vscode-launch-config.png)
![Screenshot of VS Code configuration for debugging providers](/docs/iac/using-pulumi/pulumi-packages/img/vscode-launch-config.png)
3. Edit "name": `"Launch Package"` to give it a descriptive name
4. Launch package

![Screenshot of VS Code configuration for debugging providers](/docs/iac/packages-and-automation/pulumi-packages/img/vscode-debug-config.png)
![Screenshot of VS Code configuration for debugging providers](/docs/iac/using-pulumi/pulumi-packages/img/vscode-debug-config.png)

## Setting breakpoints

Expand Down Expand Up @@ -126,9 +126,9 @@ make tfgen_build_only
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/iac/packages-and-automation/pulumi-packages/img/vscode-launch-config-connect-to-server.png)
![Screenshot of VS Code configuration for debugging providers](/docs/iac/using-pulumi/pulumi-packages/img/vscode-launch-config-connect-to-server.png)

2. Edit "name": `"Connect to server"` to give it a descriptive name
3. Connect to server

![Screenshot of VS Code configuration for debugging tfgen](/docs/iac/packages-and-automation/pulumi-packages/img/vscode-debug-config-connect-to-server.png)
![Screenshot of VS Code configuration for debugging tfgen](/docs/iac/using-pulumi/pulumi-packages/img/vscode-debug-config-connect-to-server.png)
Loading