Getting detailed crash dumps from a hooked exe

前端 未结 1 1751
半阙折子戏
半阙折子戏 2021-01-28 21:25

I am trying find a problem with my program that is hooking into a game. This is vc++. Basically I launch the program and then hook into it using SDL. When I run the code from VS

相关标签:
1条回答
  • 2021-01-28 22:27

    You can perform postmortem debugging by using a combination of the WER registry keys/values to trap any dump that is produced. I’ve used this method to prevent the WER system from collecting the dump file (.dmp). I’ve also written about this in another similar post. To accomplish this, you will need to create a registry key under

    Software\Microsoft\Windows\Windows Error Reporting

    if one does not already exist. The key should be

    LocalDumps\your application.exe

    Once that’s done, modify these keys/values to meet your needs:

    DumpCount, DumpFolder, DumpType

    You’ll need Administrator rights to create and modify the keys, and, you should reset everything you’ve modified when you’re done debugging.

    0 讨论(0)
提交回复
热议问题