vshaxe / hxcpp-debugger

Visual Studio Code Debugger for Haxe/HXCPP applications
MIT License
26 stars 13 forks source link

Debugger not stopping on last line of main() #18

Closed Gama11 closed 5 years ago

Gama11 commented 5 years ago

I've noticed a while ago already that setting a breakpoint with a simple hello world program such as this doesn't seem to work with hxcpp-debugger:

class Main {
    static function main() {
        trace("Test"); // breakpoint
    }
}

Instead you need at least two lines, but in that case, the second breakpoint still doesn't trigger. "Step over" also doesn't work to stop on that line.

class Main {
    static function main() {
        trace("Test"); // breakpoint
        trace("Test");
    }
}

@nulld Can you reproduce that / any idea why this happens? I'm assuming it's likely hxcpp's fault, not ours?

Gama11 commented 5 years ago

Nice, it's working now! So not hxcpp's fault after all. :)