Angular Debug don't stop at breakpoint Follow
Hi,
since i updated to windows 11 i am not able to debug my angular app. I starts the app normal and/or in debug and then i start debug with ctrl+shift in http://localhost:4200/
A new Chrome window opens and the app starts. But in the IDE i only see the right dot without checkmark. And the IDE does not stop at the breakpoint. I also uninstalled intellij, tested Webstorm und now i updated to the Early Access.
Actually i have installed 2021.3.2 RC
I dont know what i can do, it is very strange. I hope you have a few tips for me!
Thanks
Please sign in to leave a comment.
What Node.js version do you use to run
ng serve
? Please share a screenshot of Settings | Languages & Frameworks | Node.js pageNode 14.16.1
npm 6.14.12
Typescript 4.5.4
Hmm... that's strange, debugging should work fine using this setup. Can't reproduce the issue in 3.2 RC
Could you check if debugging works for a new Angulr Cli app?
Yes, this setup works fine until i switched to windows 11. Since this update the checkmark of the breakpoint does not appear..
Can you reproduce the issue with a new Angular Cli app?
With a new clear Cli App the debugging will work - thats strange ..
So this is likely a problem with a project setup.. Please start the app and then open Chrome Dev tools - can you see your files in the Sources tab, under webpack:// node? What do the scripts look like?
No, i dont have the webpack anymore.
Looks as if only the compiled stuff if there, no source scripts are available... Do you have sourcemaps enabled for your configuration? make sure that you have
in your angular.json
No, i dont have this option set. I thought this is the default?
Not sure what are the defaults, can't find this info in angular docs. But it's explicitly enabled in default angular.json generated by CLI. And sourcemaps aren't generated when using your configuration
After i copied the development configuration and start it with the following command it will work.
But i have no idea why i have to do it.. strange but thanks!