Skip to content

Debugger do not stops on breakpoints. #17

Description

@nulld

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions