Debugger breakpoint function for ZScript

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

Moderator: GZDoom Developers

User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Debugger breakpoint function for ZScript

Post by phantombeta »

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 all

    double foo (int x) {
        DebuggerBreakpoint ();
        return x / (1 / 16);
    } 
I'd be willing to add/code this myself, if preferred.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Debugger breakpoint function for ZScript

Post by _mental_ »

For this purpose I'm using Console.Printf() with a breakpoint set here. So it’s kinda DIY in my opinion.
Post Reply

Return to “Feature Suggestions [GZDoom]”