Provide ngDebugContext in production mode
See original GitHub issue🚀 feature request
Relevant Package
This feature request is for @angular/core
Description
I work on the Angular integration for Bugsnag. In development we have access to the really useful ngDebugContext
object which we make use of to include Angular-specific metadata to error reports: https://github.com/bugsnag/bugsnag-js/blob/next/packages/plugin-angular/src/index.ts#L27-L30.
This object is never present when an app is run in production mode.
Describe the solution you’d like
Would it be possible to provide this object in production?
Describe alternatives you’ve considered
I suspect it is not provided because it is expensive to do so. Is there something less expensive, but still potentially useful for debugging error reports that can be supplied? Or is there anything else that already exists that I haven’t discovered which can provide info on what component/service etc. may have errored?
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:8 (4 by maintainers)
With the ivy rewrite the
ngDebugContext
will most likely go away but we are going to have a replacement that will be available in both dev and prod modes. We are not going to modify the existing view engine but you should have what you need in ivy. Stay tuned.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.