vscode icon indicating copy to clipboard operation
vscode copied to clipboard

How to debug node global command

Open baotongw opened this issue 10 years ago • 1 comments

  • VSCode Version: 0.10.11
  • OS Version: windows 10 pro

Steps to Reproduce:

  1. In my case I use webpack to do code load and package, now I added a plugin to do sth, how should I do with vscode to debug this plugin
  2. To run the command I need to locate the cmd at the project folder, and in the cmd run 'webpack' command

so webpack is install in the global and the plugin is in the project folder, I was confuse how to set the launch.js to support my case?

Thanks.

baotongw avatar Apr 12 '16 03:04 baotongw

I think I got the solution, it's pretty easy. in the launch.json file do below steps.

  1. open the global package folder and set the entry file path to the program config
  2. set the cwd to the project root folder

vscode will handle all the breakpoint in the command code and project code.

baotongw avatar Apr 14 '16 13:04 baotongw