My test file:
Test.hx
class Point
{
public var x:Int;
public var y:Int;
public function new() {}
}
class Test {
static var s1:{x:Int, y:Int};
static function main() {
new debugger.Local(true);
trace("Haxe is great!");
var p = new Point();
s(p);
}
static function s (s:{x:Int, y:Int})
{
s1 = s;
trace( s1.x);
}
}
build.hxml
-main Test
-cpp bin
-lib hxcpp-debugger
-debug
-D HXCPP_DEBUGGER
debugger cli output
After c command, program executes until the end (see the trace from Test.hx:22)
-=- hxcpp built-in debugger in command line mode -=-
-=- Use 'help' for help if you need it. -=-
-=- Have fun! -=-
Thread 0 stopped in Test.main() at Test.hx:14.
1> b Test.hx:21
Breakpoint 1 set and enabled.
2> c
3> Test.hx:14: Haxe is great!
Test.hx:22: 0
My test file:
Test.hx
build.hxml
debugger cli output
After
ccommand, program executes until the end (see the trace from Test.hx:22)