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

  Рет қаралды 32,567

Web Dev Cody

Web Dev Cody

Күн бұрын

Пікірлер: 25
@Nonsense116
@Nonsense116 2 жыл бұрын
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.
@AmericazGotTalentYT
@AmericazGotTalentYT 2 жыл бұрын
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.
@WebDevCody
@WebDevCody 2 жыл бұрын
I’m not sure I follow. Are you saying I don’t need to use the vscode debugger to get it to stop on a breakpoint?
@AmericazGotTalentYT
@AmericazGotTalentYT 2 жыл бұрын
@@WebDevCody no i'm just saying there's no configuration needed. no launch.json or anything like that. just set a breakpoint and run the code
@boombap8910
@boombap8910 2 жыл бұрын
Very well explained. You helped me a lot
@drivenbycuriosity
@drivenbycuriosity Жыл бұрын
This is really helpful. Thank you.
@butwhothehellknows
@butwhothehellknows 2 жыл бұрын
Good job babe!!
@jadeyu6761
@jadeyu6761 2 жыл бұрын
Can you make more debugger videos ? Thank You!
@akhilr94
@akhilr94 Жыл бұрын
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?
@DridgeDEU
@DridgeDEU 2 жыл бұрын
I didn't know about the "Watch" feature - wonderful, thank you! Do you know whether it's possible to evaluate statements like in IntelliJ?
@travelchimps6637
@travelchimps6637 Жыл бұрын
Great video! How would the configuration look like if I run the node script from a docker container?
@ghury1
@ghury1 Жыл бұрын
how to debug starting from an single get request, and then stop the request inside my source code?
@TheRcfrias
@TheRcfrias 9 ай бұрын
What if I want to step into a node app running in a container?
@whysumancode
@whysumancode Жыл бұрын
Really Helpful Brother🫶
@evgeniy3370
@evgeniy3370 Жыл бұрын
amm.. what is the logic in the "loadFile" function?
@abdulazeez.98
@abdulazeez.98 2 жыл бұрын
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.
@dylanlepage5748
@dylanlepage5748 2 жыл бұрын
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?
@WebDevCody
@WebDevCody 2 жыл бұрын
I think it uses it by default.
@dylanlepage5748
@dylanlepage5748 2 жыл бұрын
@@WebDevCody Yeah it is supposed to but for some reason it was gone. The Solution was to deactivate and reactivate the built-in Javascript extension.
@jasonxb2998
@jasonxb2998 2 жыл бұрын
What VSCode theme is that? I love the purple hue
@WebDevCody
@WebDevCody 2 жыл бұрын
Shades of purple
@jasonxb2998
@jasonxb2998 2 жыл бұрын
@@WebDevCody of course XD
@bananainacup
@bananainacup Жыл бұрын
What the hell is an unbound breakpoint !!?
@hdx0128
@hdx0128 Жыл бұрын
you are not a good teacher, explaining a simple concept/tool with so many irrelevant technical references.
@halalmeatshophk
@halalmeatshophk Жыл бұрын
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.
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 417 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Everything You Need to Know about Debugging in VSCode
7:02
ArjanCodes
Рет қаралды 53 М.
How to Debug Code Like a Pro
11:11
Lama Dev
Рет қаралды 67 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 40 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 667 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 234 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 197 М.
Node.js Doesn’t Suck Anymore
16:59
Web Dev Simplified
Рет қаралды 134 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 448 М.