8

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?

Vikrant
  • 4,920
  • 17
  • 48
  • 72
mbergal
  • 635
  • 6
  • 13

3 Answers3

5

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

Shawn
  • 869
  • 1
  • 9
  • 27
3

My vscode version:

❯ code --version
1.63.0
7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e
x64

package.json:

package.json screenshot with vscode debugger prompt

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.

aryeh
  • 198
  • 3
  • 7
1

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