Skip to content
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

App stops on 'debugger' breakpoint in polyfill.js #251

Closed
vladimir-kotikov opened this issue Mar 7, 2017 · 2 comments
Closed

App stops on 'debugger' breakpoint in polyfill.js #251

vladimir-kotikov opened this issue Mar 7, 2017 · 2 comments

Comments

@vladimir-kotikov
Copy link

When debugging Ionic app in browser (via "Serve" or "Simulate" configuration) app starts and then stops immediately with debugger paused on breakpoint inpolyfill.js

screen shot 2017-03-07 at 17 00 10

Stack window states that debugger has stopped on 'debugger' statement, however there is no such statement in polyfill.js.

@vladimir-kotikov
Copy link
Author

After some investigation this appeared to be a bug in Chrome/Zone.js, tracked here angular/zone.js#446. The good news is that the bug has been already fixed in Zone (angular/zone.js#622) and the fix is available in v0.7.7, so this could be easily mitigated by running npm rm zone.js --save && npm i zone.js --save inside of app folder.

This will be completely resolved once Ionic upgrade their dependencies for default template.

/cc @jmatthiesen

@vladimir-kotikov
Copy link
Author

Ok, it appears that aforementioned quick fix won't help because polyfill.js is shipped precompiled with ionic-angular package, a dependency for default template, so to resolve the issue ionic-angular needs to be recompiled with correct zone.js dependency.
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant