-
Notifications
You must be signed in to change notification settings - Fork 12k
Why did the breakpoints in vs19 stop working after angular 8 update? #15139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicate of #15116 |
@alan-agius4 |
@CreativeHouseDotOrg, it’s related cause paths in sourcemaps were being prefixed with Did you try to manually apply the changes of PR (#15129) that fixes the above issue to |
I haven't tried this approach yet. But I will be back on my working PC later on this evening and then I will try it in a new Branch and let you know 👍 Just a small other question regarding the update process in angular cli, should I use commonly use the --save modifier for this process? like when calling "ng update @angular/core --save" or does an important update get saved automatically to package.json? |
Alright, I navigated to my node_modules Folder inside my ClientApp Angular Project after updating. Kind Regards |
Hi @CreativeHouseDotOrg this should also be addressed by #15221 |
@CreativeHouseDotOrg were you able to resolve this issue? I am also experiencing the same problem in Visual Studio 2019 Professional. |
@alan-agius4 Do you know which release will contain #15221? Updating to @angular-devkit/build-angular 0.802.0 and @angular/cli 8.2.0 did not resolve this issue for me when using VS2019. |
@erjicles Great question -- updating to 8.2.0 did not resolve this issue for me, either. |
Breakpoints are now working for me, thanks! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This Thread is a duplicate of Why did the breakpoints in vs19 stop working after angular 8 update? (Original on Stackoverflow)
Summarization:
I just updated my angular webproject yesterday from version 7.2.15 to 8.1.2 with the angular cli and the ng update command. But now if I try to debug my typescript code, all of a sudden the breakpoints won't work anymore in visual studio community 2019?
So when I activate a breakpoint, then the breakpoint turns white and shows a label text that says something like: Breakpoint set but not yet bound.
What I've already tried:
When using google I found out that other users had a similiar issue and they resolved the problem by setting inside of tsconfig.json.
Unlucky for me this didn't change anything since my tsconfig.json already had the property sourceMap set to true but the breakpoints still wouldn't get hit.
My guess is that the angular update somewhat overwrote some setting in some file, which I'm totally not aware of.
Show some code:
Looking in to the comparison of my commits, I noticed that in tsconfig.json and package.json files a lot of other stuff has also changed like:
tsconfig.json
package.json:
tslint.json:
Expected Result/Behaviour: Expected would be that the breakpoints would hit so I could see what was going on in my code. But as said the breakpoints just go white and won't get bound.
The final question: So my question in the end would be: How to get the breakpoints working again in VS2019 after the angular 8 update?
(21.07.2019) Edit 1: Meanwhile I also tried to delete the 'node_modules' folder inside the ClientApp folder and reinstall it again with npm install. Unfortunately the breakpoints still won't get hit.
(22.07.2019) Edit 2: "This can't be the solution?" : Seems like reverting angular to version 7.2.15 has fixed the breakpoint issue and I can look in to my breakpoints again. Allthough I'm not quite satisfied with the approach because it would have been great to Update to the current Version. I also opened a case over at Stackoverflow, regarding this issue. I'll leave this open in case anyone has a better solution to upgrade from @7.2.15 to @latest stable.
The text was updated successfully, but these errors were encountered: