vscode
vscode copied to clipboard
How to debug node global command
- VSCode Version: 0.10.11
- OS Version: windows 10 pro
Steps to Reproduce:
- 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
- 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.
I think I got the solution, it's pretty easy. in the launch.json file do below steps.
- open the global package folder and set the entry file path to the program config
- set the cwd to the project root folder
vscode will handle all the breakpoint in the command code and project code.