-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Unable to set breakpoint on Firefox #8922
Comments
Same problem here, Firefox57.0.4 on OSX 10.13.2, unable to debug angular5 project, breakpoint disappears immediately after adding it. |
Any news on this one ? Angular/CLI 6 |
This may be an issue with source mappings as well, but you should first ensure you eliminate the possibility of debugger preference corruption. |
I made a note to myself after this trick below fixed it for me, it's been a very long time since I've seen this problem and I can't confirm it at the moment, but give this a try, I'd love to know if it works: about:config, toggle devtools.source-map.client-service.enabled. Open ff console with ctrl+shift+j and watch for sourcemaps error when trying to set a breakpoint. Maybe toggle sourcemaps option in settings too? |
Looks like a problem with old version of the CLI. Let us close the issue for now. If it's still relevant, please open a new ticket with steps to reproduce and a minimal demo. 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. |
Versions
Repro steps
npm install -g @angular/cli@latest
ng new test-a
ng serve
All steps are run from a fresh install. No prior versions installed.
I also try with older version of Firefox, the problem is identical.
Observed behavior
In Firefox dev tool, when clicking in the margin of a line of code to set a breakpoint, the breakpoint automatically disappear. Setting breakpoints on .js files works.
Breakpoints work perfectly when using Chrome.
I tried accessing the app from other computers (one with a Debian distrib and another with a Windows 10) using
ng serve --host [my public ip]
command. Both client use the last Firefox version and the problem is the same. It's impossible to set a breakpoint.When I run the
ng serve --host [public ip]
on a Windows 10 OS and try to access the app from Firefox I'm able to set breakpoints on the ts files. I try accessing the app from a Firefox installed on the Windows 10 local machine and also from a remote Debian computer. Both work fine.A screen record showing how the breakpoint directly disappear just after I left click in the left margin.
![breakpoint2](https://user-images.githubusercontent.com/1236247/34100571-26ab1b30-e3e3-11e7-914b-32f58b196043.gif)
I also tried remote debugging from Intellij Idea. Everything works fine when remote debugging Chrome. When remote debugging Firefox the breakpoints are never triggered.
I also tried typing a
debugger;
line in the code. The line doesn't stop the debugger on Firefox (it works on Chrome).Desired behavior
Be able to set a breakpoint on a Linux browser when the
ng serve
command is ran on Linux OS.The text was updated successfully, but these errors were encountered: