DbgIsDebugging
Determines if the debugger is currently debugging an opened file or attached process.
bool DbgIsDebugging();
参数
此函数无参数。
返回值
This function returns true if x64dbg is currently debugging, or false otherwise.
示例
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