Debug Node.js apps with Chrome DevTools (and TypeScript)

Опубликовано: 12 Октябрь 2024
на канале: TypeScript TV with Benny
9,197
85

You can attach Chrome's DevTools to debug your Node.js applications. It also works with source maps and TypeScript code!

My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...

My FREE TypeScript Course:
https://typescript.tv/

Timeline:
00:00 - Introduction
01:11 - Setup Node.js for Debugging
01:43 - Use Chrome for debugging remote devices
02:46 - Set custom host and port for debugging
04:26 - Benefits of using Chrome DevTools
04:58 - Set breakpoints with Chrome DevTools
05:43 - Set breakpoints with debugger keyword
07:58 - Debugging in terminal / CLI
09:19 - Pause code on start
10:45 - Easier TypeScript debugging with ts-node
12:04 - Outro

Demo Repository:
https://github.com/bennycode/ts-node-...

Follow Us:
🌐 https://typescript.tv/​​
🐦   / typescripttv​  
📺    / typescripttv​​  

Hashtags:
#TypeScript​ #WebDev​ #NodeJS