Debugger breakpoint function for ZScript

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Debugger breakpoint function for ZScript

Postby phantombeta » Tue Jan 01, 2019 3:57 am

This would be quite useful for debugging problems in the VM or JIT related to specific ZScript functions. Would be quite easy to do in the JIT, as it would be just an int3 instruction.
Obviously, this should only be available in debug builds - Release builds should either do nothing or outright fail to compile if the function is encountered.
Something like this, perhaps:
Code: Select allExpand view
    double foo (int x) {
        DebuggerBreakpoint ();
        return x / (/ 16);
    


I'd be willing to add/code this myself, if preferred.
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: The United Soviet Socialist Dictatorship of Hueland
Discord: phantombeta#2461
Twitch ID: phantombeta_

Re: Debugger breakpoint function for ZScript

Postby _mental_ » Tue Jan 01, 2019 4:18 am

For this purpose I'm using Console.Printf() with a breakpoint set here. So it’s kinda DIY in my opinion.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest