Reputation: 664
I have a stack defined in TS and cannot understand what is going on.
Is there a way to attach Visual Studio Code debugger to pulumi?
Upvotes: 10
Views: 2196
Reputation: 31721
Using Visual Studio 2023
Upvotes: 0
Reputation: 318
My vscode version:
❯ code --version
1.63.0
7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e
x64
package.json
:
Notice the "debug" prompt above the scripts section. In between lines 5 and 6. You can click that and vscode will open up a debug console. Works perfectly.
Upvotes: 3
Reputation: 11
You can use in javaScript Debug Terminal. This can be found in the left panel of visual Studio Code, precisely the run option. This option offers a JavaScript Debug Terminal button, this will open a new terminal with attached debugger. This work for me
Upvotes: 1
Reputation: 889
There appears to be an open issue on this since May 2018. Looks like there is still a lot of work to be done to enable this.
https://github.com/pulumi/pulumi/issues/1372
Upvotes: 6