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.

weird error stack trace and error printing

See original GitHub issue

Let say I throw an error in render() of React component, the console output is ok. But if i try console.log(this.a.b.c.d.e.f) instead, the console error message is sent by redux-saga to point out that the error is caused by the last saga even if that saga is well tested, and the stack trace is helpless as it just show the location of the log() utils func in redux-sage source code but not the wrong console.log(this.a.b.c.d.e.f)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
yelouaficommented, Jun 8, 2016

@yarcub

If what you need is crash reporting, you can attach an error handler to the root saga

sagaMiddleware.run(rootSaga).catch(...)
2reactions
yarcubcommented, Jun 2, 2016

In the fiddle, the error is thrown while the Saga is executing a put Effect. Seems the dispatching is causing react-redux’s Connect to re-render the React Component. the Error is thrown from the Saga (because it was thrown in the same stack frame of yield put)

Like mentioned on #250, i’m also trying to send all uncaught exceptions to a monitoring system. The problem is when it happens on the same frame as a put effect. It would simply be logged by redux-saga and not reach the window.onerror handler.

@yelouafi, is there an option to disable this behavior and rethrow the exception? Does it makes sense?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strange behavior with printStackTrace() - Stack Overflow
public void printStackTrace() – Prints this throwable and its backtrace to the standard error stream. ...which is System.err . Then you are writing...
Read more >
Stack Trace: How to Debug Your Application With a Stack Trace
The first line tells us the exact error that caused the program to print a stack trace. We see a NullPointerException, which is...
Read more >
Why is Wrong Stacktrace Printed for My Code? - jdhao
When an exception happens, python will try to find the corresponding source file and print the exact line in this source file. It...
Read more >
Get and Print Call Stacks - R
By default traceback() prints the call stack of the last uncaught error, i.e., the sequence of calls that lead to the error. This...
Read more >
Unusual Java: StackTrace Extends Throwable
This is not an Error or an Exception and is not expected to be thrown or caught. ... your logger will already have...
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