Skip to content

Fixup: WaitForDebuggerFixup

Tim Mangan (MVP) edited this page Apr 4, 2022 · 1 revision

This fixup is used when a developer intends to attach a code debugger to the application. The fixup will cause the application exe to pause immediately when the fixup is injected, possibly before any additional fixups are injected but certainly before the application starts executing. This allows the developer to attach a debugger to the application process and proceed to debug the running code.

Without a debugger attaching, the application will not initialize.

Note that the debug build of Psflauncher also includes an option to wait for the debugger. The technique used by the code is the same, but when requested it allows the wait to occur before any dlls are injected into the application process.

More information on the WaitForDebuggerFixup is available in the WaitForDebuggerFixup Developer Documentation page.

An example of the only useful configuration for this fixup configuration in the config.json file is shown here:

{
    "dll": "WaitForDebuggerFixup.dll",
    "config": {
        "enabled": false
    }
}

Clone this wiki locally