-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hl.Api.rethrow does not give full stack #42
Comments
They should. But it seems in the VSCode case, the error is caught by Stage.__handleError and then rethrow. If there's a try/catch, not sure why it's not caught in commandline... |
Ah, maybe it's indeed caught & rethrow, but in the VSCode case the stack "up" from rethrow is not displayed. Uhm... I have to try reproducing this. Do you have the same result using the Node commandline debugger or is it only the HL one? |
Well, I can't debug OpenFL in Node.. :) |
Ok, it seems that indeed hl.Api.rethrow does not gives full stack trace in the debugger. |
It can easily be reproduced by running this in debugger: class Main {
static function foo( x : Int ) : Int {
if( x < 0 ) throw "!";
return foo(x - 1) * 2;
}
static function main() {
try {
foo(10);
} catch( e : Dynamic ) {
hl.Api.rethrow(e);
}
}
} |
Here's the callstack I get when the debugger breaks on the exception:
But this is what I get on the command line:
Shouldn't they match?
The text was updated successfully, but these errors were encountered: