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.

Feature request: install without instrumenting try catch

See original GitHub issue

When calling Raven.install, it breaks my live debugging workflow: in Chrome Developer Tools, when an exception is thrown, the debugger breaks in raven, and the debugger does not allow allow me to go up in the callstack.

image

image

image

I tried to set my own handler in window.onerror, calling Raven.captureException, but I lose the breadcrumbs feature.

To get the best of both worlds, I would like an option to allow to call Raven.install without instrumenting try catch.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
benvinegarcommented, Apr 3, 2017

I tried to set my own handler in window.onerror, calling Raven.captureException, but I lose the breadcrumbs feature.

You will have a really bad time if you try to do this.

To get the best of both worlds, I would like an option to allow to call Raven.install without instrumenting try catch.

You won’t – try/catch does a lot more than just “catch errors”. But yes, we can provide that option.

I’d sooner recommend that when you are live debugging, you come up with a way to just disable Raven, e.g. magic global variable or something.

0reactions
benvinegarcommented, May 15, 2017

It seems this is addressed by #938, isn’t it?

Yes – closing. Thanks for pointing this out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Consistent error handling for addon-interactions · Issue #16585
We could detect whether the Interactions addon is installed and only catch if it is. We could introduce a bespoke UI component in...
Read more >
Why should I not wrap every block in "try"-"catch"?
It indicates that either exception handling is not well understood or ... Simple, every method was instrumented with try..catch blocked and ...
Read more >
Error handling, "try...catch" - The Modern JavaScript Tutorial
First, the code in try {...} is executed. If there were no errors, then catch (err) is ignored: the execution reaches the end...
Read more >
PackageManager - Android Developers
Feature for getSystemAvailableFeatures() and hasSystemFeature(String) : The device can perform backup and restore operations on installed applications.
Read more >
Use ChatOps to enable and disable feature flags - GitLab Docs
Convert it to an instance, group, or project setting. Revert the changes if it's still disabled and not needed anymore. To remove a...
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