Skip to content

Instantly share code, notes, and snippets.

@gashtio
Created September 5, 2012 07:45
Show Gist options
  • Save gashtio/3632782 to your computer and use it in GitHub Desktop.
Save gashtio/3632782 to your computer and use it in GitHub Desktop.
Wait for debugger to attach
while (!::IsDebuggerPresent())
{
::Sleep(100);
}
::DebugBreak();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment