vscode: Debugging ANGULAR project in VSCode not working.
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.87.2
- OS Version: Windows 10 Enterprise
Steps to Reproduce:
- In launch.json created Launch Chrome against localhost as:
{ “version”: “0.2.0”, “configurations”: [ { “type”: “chrome”, “request”: “launch”, “name”: “Launch Chrome against localhost”, “url”:“https://anonymous.local:3200/Home/Welcome”, “webRoot”: “${workspaceFolder}” } ] } The url indicates the login page of the application
-
Putting breakpoints at the required places in the angular code(ts files)
-
Selecting “Launch Chrome against localhost” from and start debugging(f5)
-
Application starts and logged in successfuly, navigate to page where breakpoint will be hitted-> application hangs and nothing happens, neither the breakpoint is reached, after few minutes of wait the break point is reached and when press f10 or f5 this message appears:
I have to then either reopen or close vscode which ends up everything.
This is really frustrating as it hampers my daily development, this was working perfectly fine but from last few updates i am seeing this error.
I have tried uninstalling and re installing vs code, also updated to version 1.87.2 but nothing worked. Please help me out in resolving this on priority.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (4 by maintainers)
Using Code I attach the debugger to a browser that is running an Angular Typescript application. I can hit breakpoints and debug using VSCode 1.94.2. But after upgrading VSCode to 1.95.1, if I have a breakpoint that I would hit then the application in the browser hangs. VSCode doesn’t show that it has hit the breakpoint. I don’t see anything in DEBUG CONSOLE that seems like new information to me. Nothing seems to happen until I Disconnect the debugger from the attached browser.
This is with Chromium v130.0.6723.69, installed via Snap. This is happening on Ubuntu 20.04 and 22.04.
If I don’t have any breakpoints to hit, then the application does not hang. I can open dev tools in Chromium and set and hit breakpoints in dev tools.
I have not tried other browsers.