question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pkozlowski-opensourcecommented, Dec 19, 2018

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.

0reactions
angular-automatic-lock-bot[bot]commented, Jul 7, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable production mode? - angular - Stack Overflow
You enable it by importing and executing the function (before calling bootstrap): import {enableProdMode} from '@angular/core'; ...
Read more >
Enabling and Disabling Angular Production Mode - Pluralsight
Disabling and Enabling Production Mode in Angular ... Angular provides the configuration to keep both the URLs and use them conditionally.
Read more >
UNPKG - @angular/core
Locally provided types will override\n * providers from imports. ... n *\n * The idea is that unless we are doing production build...
Read more >
Falcon Sandbox v8.45.3 © Hybrid Analysis
https://apps.sheakley.com/mdosext/. This report is generated from a file or URL submitted to this webservice on November 23rd 2020 22:52:05 (UTC) and action ...
Read more >
fesm2015/core.js - Bundle Scanner
ɵcmpp){if(o=jo(r,e),-1==o)throw new Error("The provided component was not ... The idea is that unless we are doing production build where we explicitly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found