-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Breakpoints Invalid for Angular CLI 1.1.1 #28730
Comments
Maybe the issue is more appropriate for the Chrome Debugger repo? |
I think the difference between versions is the webpack config for the sourcemap paths that it prints out. I just fixed an issue in the chrome debugger that addresses this (not released yet). But I'm confused because I swear that type of config was working earlier. I'll push that update soon. Regarding the fact that you have to refresh to hit breakpoints in early code, how confusing do you think that is? What if there was a launch config option, |
@roblourens +1 on the refresh browser option. Looking forward to the extension update!
|
I'm using angular-cli @weinand Can you provide some more details on where you are trying to break? We have a generic issue on breaking on immediate running code, which |
@auchenberg I've just tried to follow the recipe on a clean macOS and Windows 10. I've set a breakpoint in line 9 of src/app/app.component.ts an this is not hit on macOS or Windows 10. We've investigated the issue and it seems that the Chrome debugger for VS Code has a problem with source maps of a Angular project created by the latest (1.1.1) Angular-CLI generator. We've created issue #28730 to track this. |
Indeed, this looks like a change in the generated sourcemap. @roblourens a quick comparison: Angular-cli 1.1.1
Angular-cli 1.1.0
Looks like a |
I've already tried to use the |
Right that's what I see. chrome-debug includes a mapping for that type of path by default, but it's broken. That's what the fix is for. |
Fixed in 3.1.4 :) - microsoft/vscode-chrome-debug-core@eab353e |
Verifier: execute this debug recipe: https://github.com/weinand/vscode-recipes/tree/master/Angular-CLI, ensuring that you have Angular CLI version 1.1.1+. |
Confirmed fixed with https://github.com/Microsoft/vscode-chrome-debug/releases/tag/v3.1.4 |
I tried to verify and breakpoints are working fine for the the The test setup ( |
From @tonysneed on June 14, 2017 14:39
Breakpoint are not hit when using the Angular-CLI recipe with Angular CLI v 1.1.1. However they do work with Angular CLI v 1.0.6. This will need to be investigated. The issue was discussed in PR microsoft/vscode-recipes#2 by @weinand.
Copied from original issue: microsoft/vscode-recipes#7
The text was updated successfully, but these errors were encountered: