Visual Studio Code — Node Debugging — package.json, launch.json, source env.sh
There are a million ways to configure your NodeJS + Visual Studio Code debugging.
Check out our Angular in-house trainings or a public Angular courses.
Try out fossilo.com, our angular project to archive complete websites.
I have a env-example.sh
and a env.sh
. The env.sh
is in the .gitignore
, this way it’s never committed to anywhere. I use source env
before each node start on my development environment. When we deploy to the cloud I manage the environment variable in my continuous delivery chain.
To run debugging with this environment variables in Visual Studio Code I use the npm debug script. (No I really don’t want to put environment variables in launch.json or task.json :-)…)
Any suggestions how to do this better?