Skip to content

Instantly share code, notes, and snippets.

@gashtio
Created September 5, 2012 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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