Skip to content

Commit 3335dc6

Browse files
committed
Move debugging providers under debugging
1 parent bea4ecc commit 3335dc6

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

content/docs/iac/troubleshooting/debugging/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Tools and techniques for diagnosing and fixing Pulumi programs, including debugg
1717
- **[Logging](/docs/iac/troubleshooting/debugging/logging/)** - CLI verbose logging and program logging for debugging and diagnostics
1818
- **[Attaching a debugger](/docs/iac/troubleshooting/debugging/debugger-attachment/)** - Set up debugger attachment for step-by-step program debugging
1919
- **[Performance and tracing](/docs/iac/troubleshooting/debugging/performance-tracing/)** - Analyze deployment performance and trace operations
20+
- **[Debugging providers](/docs/iac/troubleshooting/debugging/debugging-providers/)** - Debug Pulumi providers locally during development

content/docs/iac/build-with-pulumi/debugging-providers.md renamed to content/docs/iac/troubleshooting/debugging/debugging-providers.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ meta_image: /images/docs/meta-images/docs-meta.png
77
menu:
88
iac:
99
name: Debugging providers
10-
parent: iac-build-with-pulumi
11-
weight: 40
10+
parent: iac-troubleshooting-debugging
11+
weight: 30
1212
aliases:
1313
- /docs/using-pulumi/pulumi-packages/
1414
- /docs/using-pulumi/pulumi-packages/debugging-provider-packages/
@@ -17,6 +17,7 @@ aliases:
1717
- /docs/iac/using-pulumi/pulumi-packages/debugging-provider-packages/
1818
- /docs/iac/using-pulumi/extending-pulumi/debugging-providers/
1919
- /docs/iac/extending-pulumi/debugging-providers/
20+
- /docs/iac/build-with-pulumi/debugging-providers/
2021
---
2122

2223
When developing or troubleshooting Pulumi providers, you may need to debug the provider code locally. This guide walks you through starting your provider in debug mode, setting breakpoints, and running tests.
@@ -31,7 +32,7 @@ For GoLand you can follow these steps.
3132

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

34-
![Screenshot of GoLand configuration for debugging providers](/docs/iac/build-with-pulumi/img/goland-debug-config.png)
35+
![Screenshot of GoLand configuration for debugging providers](/docs/iac/troubleshooting/debugging/images/goland-debug-config.png)
3536

3637
### Example for VS Code
3738

@@ -40,12 +41,12 @@ For VS Code you can follow these steps.
4041
1. Navigate to **Run -> Add Configuration** and add the **Go: launch package** configuration
4142
1. Edit `"program": "${fileDirname}"` to point to `cmd/pulumi-resource-<PROVIDER>` , e.g., `cmd/pulumi-resource-azure-native` for the Azure Native provider
4243

43-
![Screenshot of VS Code configuration for debugging providers](/docs/iac/build-with-pulumi/img/vscode-launch-config.png)
44+
![Screenshot of VS Code configuration for debugging providers](/docs/iac/troubleshooting/debugging/images/vscode-launch-config.png)
4445

4546
1. Edit "name": `"Launch Package"` to give it a descriptive name
4647
1. Launch package
4748

48-
![Screenshot of VS Code configuration for debugging providers](/docs/iac/build-with-pulumi/img/vscode-debug-config.png)
49+
![Screenshot of VS Code configuration for debugging providers](/docs/iac/troubleshooting/debugging/images/vscode-debug-config.png)
4950

5051
## Setting breakpoints
5152

@@ -133,9 +134,9 @@ For VS Code you can follow these steps to connect to the debugger.
133134

134135
1. Navigate to **Run -> Add Configuration** and add the **Go: Connect to server** configuration
135136

136-
![Screenshot of VS Code configuration for debugging providers](/docs/iac/build-with-pulumi/img/vscode-launch-config-connect-to-server.png)
137+
![Screenshot of VS Code configuration for debugging providers](/docs/iac/troubleshooting/debugging/images/vscode-launch-config-connect-to-server.png)
137138

138139
1. Edit "name": `"Connect to server"` to give it a descriptive name
139140
1. Connect to server
140141

141-
![Screenshot of VS Code configuration for debugging tfgen](/docs/iac/build-with-pulumi/img/vscode-debug-config-connect-to-server.png)
142+
![Screenshot of VS Code configuration for debugging tfgen](/docs/iac/troubleshooting/debugging/images/vscode-debug-config-connect-to-server.png)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)