hxcpp-debugger
hxcpp-debugger copied to clipboard
Crash in var printing after breakpoint before super
To reproduce, create an empty OpenFL project with this as Main
:
package;
import openfl.display.Sprite;
class Main extends Sprite
{
public function new()
{
trace("test");
super();
}
}
Then set a breakpoint at the trace
. Taking any action after the breakpoint is hit (continue, step over) results in a crash.
When attaching a native C++ debugger, you can see that it crashes while printing numChildren
.
@nulld Any ideas? I thought that -D HXCPP_CHECK_POINTER
should help, but it doesn't seem to.
(most likely this is related to the implementation of get_numChildren
, which returns __children.length
/ wouldn't be initialized properly before super
, but what I don't get is why we can't catch that exception)
Looks like duplicate of this one https://github.com/vshaxe/hxcpp-debugger/issues/8
Oh, maybe...