vshaxe / hashlink-debugger

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

HashLink Debugger Not Reporting Correct Values When Hovering Variables In VS Code #111

Open laughsuggestion opened 2 years ago

laughsuggestion commented 2 years ago
class Main {
    static function main() {
    var a:Float = 9999.0;
        var b:Float = 1.0;
        var c:Float = 0.0;
        c = c / b;
        var d = 5 - a;

    // in debug, hover over c
    // c should be 0 
    // but it is -9994
    }
}
laughsuggestion commented 2 years ago

@ncannasse I was told I should pester you about this.

ncannasse commented 2 years ago

Thanks for the repro. Its due to the compiler optimizing out some local variables. I'll think about what can be done there 😉

Le jeu. 12 mai 2022 à 20:29, laughsuggestion @.***> a écrit :

@ncannasse https://github.com/ncannasse I was told I should pester you about this.

— Reply to this email directly, view it on GitHub https://github.com/vshaxe/hashlink-debugger/issues/111#issuecomment-1125300196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQEPVQXUTG5YXO4YJM3VJVEYLANCNFSM5VXBC2CA . You are receiving this because you were mentioned.Message ID: @.***>