I recently changed from a development role to a QA role. In setting up the QA project, the instructions I have give configuration requirements for WebStorm. I however much prefer to use VSCode.
I'm trying to convert WebStorm debug configuration options to VSCode. I have listed what I think the equivalent option for launch.json based upon the values I was given.
WEBSTORM => VSCODE
- Node interpreter => runtimeExecutable
- Node parameters => args
- Working directory => cwd
- JavaScript file => program
- Application parameters => runtimeArgs
- Environment variables => env
Usually when running Node.js programs I only have one set of parameters that I can access via the process.argv
array.
What is the difference between the 2 parameter types and when in the debug/run process are they used? Are they accessed differently in Node.js?