How to use the Debugger in VSCode to debug Node.js Applications

preview_player
Показать описание

------------

Рекомендации по теме
Комментарии
Автор

I used to use console logs all the time. This past advent of code I decided to finally learn the debugger since the problems were getting complex and it has paid back dividends. The VSCode debugger is awesome and so is Chrome's. The watch feature can run simple functions and comparisons and I've had to use the callstack window a couple of times now. You can see what where your function got called and with what params. It's delightful.

Nonsense
Автор

Very well explained. You helped me a lot

boombap
Автор

I didn't know about the "Watch" feature - wonderful, thank you! Do you know whether it's possible to evaluate statements like in IntelliJ?

DridgeDEU
Автор

if you use the javascript debug terminal (instead of zsh/bash), there's very little set up required. just add a breakpoint and when you run your code, the debugger will attach.

AmericazGotTalentYT
Автор

Great video! How would the configuration look like if I run the node script from a docker container?

travelchimps
Автор

Can you make more debugger videos ? Thank You!

jadeyu
Автор

how to debug starting from an single get request, and then stop the request inside my source code?

ghury
Автор

What if I want to step into a node app running in a container?

TheRcfrias
Автор

Great video! I'm commenting because of the hate comments. I found the video to be helpful. Can you also do a video on chrome dev tools?

akhilr
Автор

I just run the whole thing in debug mode every time. It kinda replaces “npm start” for me.
I think I picked this habit from Flutter, by default you run the code in debug mode.

abdulazeez.
Автор

amm.. what is the logic in the "loadFile" function?

evgeniy
Автор

I don't see any Node.js option available when clicking on "create a launch.json file", are we supposed to have a specific extension installed?

dylanlepage
Автор

What VSCode theme is that? I love the purple hue

jasonxb
Автор

What the hell is an unbound breakpoint !!?

bananainacup
Автор

you are not a good teacher, explaining a simple concept/tool with so many irrelevant technical references.

hdx
Автор

To explain Dubugger in VScode, there was no need to complicate it by using the process.argv.splice(2). It didn't help in anyway.
I wonder why people find difficulty in explaining simple stuffs.

halalmeatshophk