You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the project in VSCode. Set a breakpoint in VSCode. I use line 12 of app.component.ts
Launch the debugger config in VSCode. It should be called 'launch sample against localhost'
EXPECTED: the breakpoint becomes active (red) after the page loads (note that it isn't necessarily going to hit the breakpoint due to startup race conditions)
ACTUAL: From ng versions 1.1.1 onward, the breakpoint remains grey with the error: Breakpoint ignored because generated code not found (source map problem?).
Mention any other details that might be useful.
Note that this only occurs if the project is run through Docker. If I run the project on the local machine the breakpoints are hit without an issue. Could something have changed about where/how the sourcemaps are generated and stored?
Please let me know if you want any additional information and / or testing.
The text was updated successfully, but these errors were encountered:
erlloyd
changed the title
Newly created project doesn't work with docker and debug in Chrome extension is VSCode - sourcemap problem
Newly created project doesn't work with docker and debug in Chrome extension in VSCode - sourcemap problem
Jul 21, 2017
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
NOTE: This workflow works perfectly fine using
@angular/cli
1.1.0. It breaks when using 1.1.1 and remains broken in the current version.I have a sample repo setup here: https://github.com/erlloyd/ng-cli-vscode-error-sample
docker-compose build
docker-compose up
app.component.ts
EXPECTED: the breakpoint becomes active (red) after the page loads (note that it isn't necessarily going to hit the breakpoint due to startup race conditions)
ACTUAL: From ng versions 1.1.1 onward, the breakpoint remains grey with the error:
Breakpoint ignored because generated code not found (source map problem?).
Mention any other details that might be useful.
Note that this only occurs if the project is run through Docker. If I run the project on the local machine the breakpoints are hit without an issue. Could something have changed about where/how the sourcemaps are generated and stored?
Please let me know if you want any additional information and / or testing.
The text was updated successfully, but these errors were encountered: