Summary: I got VS Code. I got empty HTML template file in which i learn how to write js scripts. VS Code has debugger, which can launch my file in Chrome for debugging (theoretically). I set up breakpoints in file.
I can make debugger launch Chrome and open HTML file, but Chrome doesn't stop on breakpoints and runs whole script.
I cant pause scripts from VS Code. Unless i pause script from Chrome dev tools manually.
Question: How to run debug in VS Code so that it would launch Chrome in debug mode with paused .js scripts on HTML page?
i mean, i really dont use something exotic like external scripts or environments or other stuff. Its just a plain HTML template file, with 5-30 lines of .js script code in it. Nothing else. I would expect something so basic would be able to work "from the box" with a push of a button. But its not.
Suddenly, VSCode started using breakpoints properly now. Maybe there was some hotfix or something.
This is possible:
From the VSCode docs: https://code.visualstudio.com/docs/nodejs/browser-debugging
The simplest way to debug a webpage is through the Debug: Open Link command found in the Command Palette (Ctrl+Shift+P). When you run this command, you'll be prompted for a URL to open, and the debugger will be attached.