VSCode Debugging - Does Client Side debugger break points work?
So I've got server side debugging working in VSCode with breakpoints but I can't for the life of me get it to work for the frontend even when I'm opened using the VSCode Chrome extension. Does this just not work?
4 Replies
just type debugger on the line you want the code to stop and then open you console and use your console tools.
Yeah I just wanted to use vscode to avoid having to write debugger in my code 😂 small quality of life things I guess
i think the only way to get the debugger to trigger in vscode via clicking the red button is if you run the app via a vscode connected browser i.e you cant just open chrome/edge and navigate to localhost:3000 the 2 apps wouldnt know how to communicate there is a debugger in place
Yeah a quick google search and it comes to the same assumption mentioned above: https://stackoverflow.com/questions/33407090/visual-studio-code-debugging-client-side-javascript
Stack Overflow
Visual Studio Code debugging client side JavaScript
I am using Visual Studio Code for a javascript project. You can set breakpoints and step through and debug very easily the code that runs in nodejs. Is there any way to allow breakpoints and debugg...