weird error stack trace and error printing
See original GitHub issueLet 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:
- Created 7 years ago
- Comments:18 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yarcub
If what you need is crash reporting, you can attach an error handler to the root saga
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 byredux-saga
and not reach thewindow.onerror
handler.@yelouafi, is there an option to disable this behavior and rethrow the exception? Does it makes sense?