Is there a C++ equivalent of C#'s Debugger.IsAttached()
method? (Windows-specific is fine with me.)
I have a console app that has a getchar()
at the end of main()
to keep the console window from closing when running from VS2012. I'd like to skip that step when running a debug build directly from the command line.