| Previous | Next |
| DBG_TERMINATE_THREAD | DBG_CONTROL_C |
DBG_TERMINATE_PROCESS
The debugger ended the target process
This debugger status indicates an explicit decision to terminate the process being debugged. It is not the same as receiving EXIT_PROCESS_DEBUG_EVENT, which is a notification after process termination has occurred. A debugger can make this decision after an unrecoverable exception, a user stop command, or loss of a valid debugging state.
Because termination bypasses normal application shutdown, buffered data, temporary files, child-process coordination, and in-process cleanup handlers may remain incomplete. Diagnosis should focus on the event or command that led to termination.
What to inspect
- Preserve the final exception record, thread context, and debugger command history.
- Differentiate debugger-requested termination from a crash, job-object limit, or external TerminateProcess call.
- Collect dumps before termination when postmortem analysis is required.
- Check child processes separately when DEBUG_PROCESS was used, because process-tree debugging state matters.
References
- Microsoft Open Specifications: NTSTATUS values
- Microsoft: debugging events
- Microsoft: writing the debugger main loop
- Wine source: debugger API implementation
Looking for a different code? Search another status or error code.