Debugger in VsCode.
launch.json is the configuration file to launch/or attach a debugger session
launch.json file under the workspace's .vscode folder
VS Code debuggers typically support:
- launch ie launching a program in debug mode
- or attach - ie attaching to an already running program.
The only difference between “launch” and “attach” is that “launch” first guesses where chrome is, and starts it at your location. Then attaches to it, and everything is the same after that.
With the --inspect-brk option, Node.js stops on the first line of the program.