-
|
I wanted to use this like Visual Studio debugger for a given executable. That is, adding the Currently, if I set it as But if I change it to point to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Ok, I think I found myself one answer. I need to start x32dbg.exe as admin, and enable "Set x64dbg as Just In Time Debugger" in Options > Preferences > Misc. Still wondering what if I could use x64dbg in a per-executable manner by changing the keys above (and not general JIT handler). |
Beta Was this translation helpful? Give feedback.
-
|
It looks like just copypasting the commandline x64dbg (x32dbg in my case) makes enough in the per-exe file, so no need to change the whole thing. So, This is particularly useful to debug a steam game that's crashing early in its startup process. Because of steam protection, if you load the game executable and run, the execution will stop once steam client DLL wraps the call to steam after ensuring the game is legitimate (you are logged to steam and it is in your library). Then, the "wrapped call" runs outside of the debugger, the initial execution, which was being debugged is terminated. Moreover, once this registry key is set, you can simply call the game from steam, which will skip this "call wrapping" step altogether, and debugging goes more smoothly. Just in case, I'm not trying to hack/cheat a game. Well, I'm trying to hack a game back into a working state; it's an old "abandoned" title (no updates for over 10 years) which seems to be failing to allocate memory for its resources. |
Beta Was this translation helpful? Give feedback.
It looks like just copypasting the commandline x64dbg (x32dbg in my case) makes enough in the per-exe file, so no need to change the whole thing.
So,
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\<executable>Add a
REG_SZnamedDebuggerand set its value to"path-to-x64dbg\release\x32\x32dbg.exe" -a %ld -e %ld(notice the
path-to-x64dbgis the path to wherever you extracted x64dbg snapshot!).This is particularly useful to debug a steam game that's crashing early in its startup process. Because of steam protection, if you load the game executable and run, the execution will stop once steam client DLL wraps the call to steam after ensuring the…