You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
31
32
32
33
1. Configure the working directory to the program you are going to run to mirror how Pulumi would start the provider
33
34
34
-

35
+

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

44
+

44
45
45
46
1. Edit "name": `"Launch Package"` to give it a descriptive name
46
47
1. Launch package
47
48
48
-

49
+

49
50
50
51
## Setting breakpoints
51
52
@@ -133,9 +134,9 @@ For VS Code you can follow these steps to connect to the debugger.
133
134
134
135
1. Navigate to **Run -> Add Configuration** and add the **Go: Connect to server** configuration
135
136
136
-

137
+

137
138
138
139
1. Edit "name": `"Connect to server"` to give it a descriptive name
139
140
1. Connect to server
140
141
141
-

142
+

0 commit comments