Well, it depends how the Program finds out a Debugger is attached.
There are several methods for it.
The most used one is to call the Windows API Function IsDebuggerPresent
if you Hook it and returns 0 everytime, it may already works.
I'm trying to debug this program, but when I try to debug it the program closes on its own. Is there something I can do to make it so it doesn't close while debugging?
Sorry if this is wrong section idk where I could post this.
Well, it depends how the Program finds out a Debugger is attached.
There are several methods for it.
The most used one is to call the Windows API Function IsDebuggerPresent
if you Hook it and returns 0 everytime, it may already works.
Most debuggers include a plugin to bypass the basic checks. You could just scan the game for any calls to ExitProcess, and try to figure out what it uses to detect the debugger.
Ah we-a blaze the fyah, make it bun dem!