vshaxe / hashlink-debugger

Visual Studio Code Debugger for Haxe/HashLink applications
https://hashlink.haxe.org/
MIT License
57 stars 23 forks source link

Stepping out of main() takes you to "Unknown file ?" #39

Closed Gama11 closed 4 years ago

Gama11 commented 5 years ago
class Main {
    public static function main() {
        trace("hello world");
    }
}

Also shows up in the callstack - not sure what that's doing there, since main is the entry point?

ncannasse commented 5 years ago

Yes we have a "toplevel/boot" method that initialize statics then calls main(), that's the one you can see there. I guess we would need to set its position to before/after Main.main() so the reported positions are not on unknown files.

Gama11 commented 5 years ago

Stepping out of a function usually sets the position to the } anyway in the HL debugger it seems (related: https://github.com/HaxeFoundation/haxe/issues/7767).

ncannasse commented 4 years ago

? files are no longer listed in callstacks, but atm stepping out of main() currently still somewhat stall the debugger, will have to investigate another day

ncannasse commented 4 years ago

Fixed with my new step implementation.