Skip to content

Need help debugging unreachable code #256

Answered by titzer
gmlewis asked this question in Q&A
Discussion options

You must be logged in to vote

One thing is to add -symbols when compiling; that will give you source-level function names. The Wasm target doesn't have source lines yet, a stacktrace with just function names is the best you can do for now. Any unreachable that you hit is going to be a safety check or an out-of-memory, so look for places where a NullCheckException or a BoundsCheckException, etc could be triggered.

Replies: 2 comments 4 replies

Comment options

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

Answer selected by gmlewis
Comment options

You must be logged in to vote
3 replies
@titzer
Comment options

@gmlewis
Comment options

@gmlewis
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