Crash when trying to set breakpoints in a debugger attached to the game
I need to hook some game functions for my mod. I'm trying to attach x64dbg to the game and set breakpoints to understand more about how the game works. I managed to bypass the anti-debugger and attach to the game, but whenever game reaches a breakpoint it crashes. Anybody have experience debugging the game?
I'm using game version 1.0.350.1.
@nightingale Try patching IsDebuggerPresent to return prematurely as well as setting the usual stuff in the PEB structure. This has worked for me.
@CamxxCore Thank you! I was trying combinations of options in scyllahide to be able to debug, but the game crashed anyway. I did as you said and it's working now.