Skip to content

JS runtime error information from instrumented build #1139

Closed Answered by phoddie
linfan68 asked this question in Q&A
Discussion options

You must be logged in to vote

Some information? Yes.

An instrumented build is a release build, so not all debugging information is available. For example, the source code file names and line numbers are removed from the byte code. But, the function names are still available.

When an unhanded exception occurs, XS calls fxAbort in the host. The behavior from there is determined by the host. By default, we restart. This is safest behavior (Node strongly agrees). But, other behaviors are possible. For example, we can call a JavaScript function to display the stack and perhaps other information. To try that, you can modify this section of fxAbort in the ESP host to call a global abort function:

	#if defined(mxDebug) && !MO…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@phoddie
Comment options

Answer selected by phoddie
Comment options

You must be logged in to vote
4 replies
@phoddie
Comment options

@linfan68
Comment options

@phoddie
Comment options

@phoddie
Comment options

Comment options

You must be logged in to vote
1 reply
@phoddie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants