-
I've now had an unhandled exception several times and it's always a bit of a goose chase.
If I add a try-catch in the right place I can print the error text. Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
By default, xsbug breaks on exceptions. That shows the line of code where the exception occurred, the stack trace, and allows you to inspect variations in each stack frame. By default, xsbug breaks on exceptions. Perhaps you disabled it? The behavior of unhandled exceptions is not specified by the JavaScript language. Each runtime is free to implement the behavior it believes best. The Moddable SDK chooses to exit the process on unhandled exceptions because it is the safest default behavior. XS itself does not decide what to do in response to exceptions and other potentially fatal exceptions. Instead, it calls the host's |
Beta Was this translation helpful? Give feedback.
By default, xsbug breaks on exceptions. That shows the line of code where the exception occurred, the stack trace, and allows you to inspect variations in each stack frame. By default, xsbug breaks on exceptions. Perhaps you disabled it?
The behavior of unhandled exceptions is not specified by the JavaScript language. Each runtime is free to implement the behavior it believes best. The Moddable SDK chooses to exit the process on unhandled exceptions because it is the safest default behavior.
XS itself does not decide what to do in response to exceptions and other potentially fatal exceptions. Inst…