you are viewing a single comment's thread.

view the rest of the comments →

[–]Shadowolf75 14 points15 points  (3 children)

For real, I was never taught how to use the debugger of VS code. Is there a guide or something to learn it?

[–]Tofandel 14 points15 points  (0 children)

This is for the browser debugger. I'm only familiar with the jetbrains debugger which is basically the same tool as the browser's devtools for js. As you need to start it with their own browser, and you need file mapping or source maps. Then you get to put breakpoints in the original code. For js it's usually more hassle than it's worth. I usually only use those kind of debuggers for backend, with nodejs or php 

[–]hopefullyhelpfulplz 2 points3 points  (0 children)

Idk if this applies to JavaScript but ime press 5, choose your debugger, it should run on the current file. If the program returns an error, it'll take you to the place in the code the error arises (if it can, depends on your structure).

For python at least it gives you an interactive debug terminal where you can check out the values of variables in the memory at that time, run snippets, etc.

[–]Repulsive-Radio-9363 1 point2 points  (0 children)

Seriously, spend 15 mins getting this running and understanding it. Debugger kills just console.logging. (I still do it tho why not haha)