-
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
Load zone.js long-stack-trace in debug mode #2233
Comments
@vicb when should this be loaded? As soon as possible in the app or anywhere? |
In the Webpack guide it is loaded after zone.js using the However I have tested this and it does not fix the problem in angular/angular#11722 |
@filipesilva after zone.js |
According to further discussion in angular/angular#11722 (comment), it seems that importing I tried it myself with the suggested repro by @chrisnicola:
The output was the same with and without the long stack trace. The NgModule stack follows sourcemaps but the Component stack does not.
|
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. |
dist/long-stack-trace-zone.min.js should be loaded in the development environment to give more meaningful stack traces.
Without this script, only the last VM turn is logged. When this script is loaded the stack will contain all VM turns from the point the async operation was initiated.
note the script should be loaded after zone.js
/ref angular/angular#11722
n/a
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.14
node: 6.6.0
os: darwin x64
do on your code? etc.
add
throw new Error('test')
in any async code (ie a component constructor).The stack trace is incomplete, only show the last sync chunk of code.
more information.
see angular/angular#11722 for more info
The text was updated successfully, but these errors were encountered: