Debug Typescript Node apps in Visual Studio Code (Great for NestJS!)

preview_player
Показать описание
#typescript #vscode #debug

Did you know you can directly debug Typescript Node apps in Visual Studio Code using just a few extra lines in your project configuration? In this video I show you how.

The VS Code debugger allows you to set breakpoints, step through code and inspect variables and this is super useful when trying to debug Node apps, for example NestJS framework projects.

Follow us on Twitter:

Our gear - click through to support our channel! :)

Camera (Canon M50)

Camera mic (RODE VideoMic Pro)

Camera tripod (Manfrotto Compact tripod):

Voiceover Mic (Blue Yeti)

Chris's dev mouse for PC (Logitech MX Master 3)

Chris's dev keyboard for PC (Logitech MX Keys)

Rob's dev keyboard for Mac (Apple Magic Keyboard)

Rob's dev mouse for Mac (Apple Magic Mouse)
Рекомендации по теме
Комментарии
Автор

Thank you dear Sir Robert! 4 minute video is better than tons of crappy VS documentation 🤦‍♂🤦‍♂🤦‍♂

betterbrained
Автор

After like 2 days of trying to make TS work, your tutorial did it.
Thank you so so much, I honestly almost gave up, it was so frustrating.

Nockoutz
Автор

This was very helpful. There are a lot of scramble about this simple topic online and this was the most straightforward one.

orancanoren
Автор

Exactly what I needed. Most other tutorials seem to be focused solely on debugging web pages. Thank you!

Yogurt
Автор

Thanks Robert, after using npm ts-express to generate a default Express TypeScript project, this video helped get my Windows VSCode Debug environment up and running to debug the code. Much appreciated.

ronniet
Автор

This is a very simple but powerful approach, thanks for the tip.

lalo-the-coder
Автор

Just having the following launch.json works well on my Nestjs app. No need of additional NPM packages.

{
"version": "0.2.0",
"configurations": [{
"name": "Launch via NPM",
"request": "launch",
"runtimeArgs": [
"run",
"start"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"console": "integratedTerminal",
"type": "pwa-node"
}]
}

SandroMunda
Автор

This is the only approach that worked for me, thanks a ton 🙏

techiabhil
Автор

thanks for the clear and short video, saved me ton of time

gokulambalavanan
Автор

Exactly what I was looking for. Thank you!

anonymerlurch
Автор

can you share your source code repo (git or something )... it is not working for me

sarafanmol
Автор

That is helpful, you saved me time. Thanks

felegeghionitvillage
Автор

using tsx for now. this solution doesn't working with me

hkthktm
Автор

thanks for this video, you saved my life :D

emanuelcabrera
Автор

Hi, how can I support the channel, most of the amazon items are unavailable.

jaroush
Автор

Thanks ! I solved the debug with break points in 5 minutes for NestJS. Before I visited a thousand of links, and it was not working.

vincentluc
Автор

this is a quality video. earned a sub!

AliAliOxenFree
Автор

I got TypeError: Unknown file extension ".ts"

aungmyooo
Автор

Thanks but wish you could just also paste the instructions & launch.json file in the description.

KnightDark
Автор

Muito bom, rápido e fácil de configurar.

rafaelffernandes