DbgIsDebugging

确定调试器当前是否正在调试已打开的文件或附加的进程。

bool DbgIsDebugging();

参数

此函数没有参数。

返回值

如果 x64dbg 当前正在调试,则此函数返回 true;否则返回 false。

示例

if(!DbgIsDebugging())
{
    GuiAddLogMessage("You need to be debugging to use this option!\n");
    return false;
}
.data
szMsg db "You need to be debugging to use this option!",13,10,0 ; CRLF
    
.code
Invoke DbgIsDebugging
.IF eax == FALSE
    Invoke GuiAddLogMessage, Addr szMsg
.ENDIF

相关函数