Visual Studio Code — Node Debugging — package.json, launch.json, source env.sh

Jonas Felix
letsboot
Published in
1 min readOct 28, 2017

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?

--

--

Jonas Felix
letsboot

Full Stack Entrepreneur - on a creative journey after first successful exit. New tech, science, OpenSource, Software Development, Space Enthusiast, Skydiver...