VSCode launch.json for Node Attach

There are a lot of things to like about VS Code, especially when working with Typescript. Debugger configuration is not one one of those. Each project has to be individually configured. This makes sense for when debugging requires the IDE be able to build the project, but not when the code is running in a VM, and debugging is done by connecting to a port or socket. For node projects especially, global configs would be very convenient. However, once connected the debugging tools are wonderful. Breakpoints are easy to set and manage. The stack and local variable tools work really well, as does the debug console. And most importantly for me, it handles the source maps extremely well for .ts and .js files. I hope that providing this config helps you get over the initial hump.