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.

No way to capture exceptions without installing a global error handler

See original GitHub issue

Raven.captureException() won’t work properly when Raven.install() has not been called beforehand; calling Raven.install() will install a global error handler (window.onerror). This is problematic if one wants to catch errors with a custom handler and pass them to Raven by hand, e.g. to lazy-load Raven as needed.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:6
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
henrybaxtercommented, Feb 16, 2016

This is really important to us as well, +1

3reactions
benvinegarcommented, Nov 22, 2016

Closing this because Raven.captureException works without calling .install today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Global Error Handling in ASP.NET Core Web API - Code Maze
Find out how to replace try-catch blocks in your code with the Global Error Handling by using the custom or built-in middleware in...
Read more >
WPF global exception handler [duplicate] - Stack Overflow
You can trap unhandled exceptions at different levels: AppDomain.CurrentDomain.UnhandledException From all threads in the AppDomain. Dispatcher.
Read more >
How to Catch All Exceptions in C# & Find All Application Errors
Another option is to use a custom middleware designed to do nothing but catch unhandled exceptions.
Read more >
How to Handle Exceptions in JavaScript - Rollbar
Catching all exceptions​​ At its simplest, catching exceptions in JavaScript requires simply wrapping an expression in a try-catch statement.  ...
Read more >
Global Error Handling in Angular - Philipp Kief
A not always so popular but for the end user enormously important topic is the interception of errors. Even if an application has...
Read more >

github_iconTop Related Medium Post

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