Template for bootstrap projects with Node.js and TypeScript.
Base example for my articles:
- Dev.to: Node.js with TypeScript, Debug inside VSCode and Nodemon
- Medium: Node.js e TypeScript: O como e com testes
After starting the app with npm run dev:debug
, you've two options:
- For in-editor debug with VSCode, configuration already included in
.vscode/launch.json
. It will attach the debbuger to the running process. - You can look at
chrome://inspect
to open a debugger panel using Google Chrome DevTools.
- Starting the app with
npm run dev:debug
- Go to the "Debug" panel in VSCode, press the green arrow for "Node: Nodemon" configutation and select your process
- VSCode will attach the debbuger and show you a floating panel
- Add a breakpoint anywhere and have fun debugging!
- On Chrome, you can go to
chrome://inspect
and clickinspect
on the "Remote Target" section pointing to your server
- Add a breakpoint anywhere and have fun debugging!