The user was interrupted during continue and switched to a different thread since DebugBreakProcess creates a thread that triggers a breakpoint. With these changes the DebugBreak thread is recorded to skip the breakpoint event afterwards.