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.

Logging uncaught errors

See original GitHub issue

I’m just starting out with sentry and I was trying to see if it logs the uncaught errors. I have this piece of code where I’m first catching an error and sending it with raven then I’m calling an undefined function which I’m not handling. The caught error arrives just fine on Sentry but the other one no. Am I missing something?

try {
    baaaaam();
} catch(e) {
    Raven.captureException(e)
}
booooom();

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mattrobenoltcommented, Nov 25, 2014

See a similar ticket: https://github.com/getsentry/raven-js/issues/211

Yeah, in the meantime, it can be documented.

1reaction
jaseemabidcommented, Nov 25, 2014

Works fine if it originated from a script, but not if its from the console. This IMO could be documented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging uncaught exceptions in Python - Stack Overflow
When an exception is raised and uncaught, the interpreter calls sys.excepthook with three arguments, the exception class, exception instance, and a traceback ...
Read more >
How To Log Uncaught Exceptions In Python? - Better Stack
First, you will create a logger that will take care of your exceptions. Then create a handler handle_unhandled_exception that you ...
Read more >
Logging uncaught exceptions in Python applications
Logging uncaught exceptions in Python applications ... This is especially important for any unhandled exceptions that crash the program.
Read more >
log uncaught exceptions with sys.excepthook : r/Python - Reddit
This post walks through how to make sure that you log that uncaught exception. This is a trivial script that will raise an...
Read more >
PYTHON : Logging uncaught exceptions in Python - YouTube
PYTHON : Logging uncaught exceptions in Python [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] PYTHON : Logging ...
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