Can't launch debugger from native code: DebugBreak()
-
Wednesday, August 01, 2012 3:06 PM
I read this earlier.
It says "...In native code, like C or C++, you can add a call to the DebugBreak() function. If a debugger is attached, this causes a breakpoint. If not, you get a dialog to attach a debugger."
In my case I do not get the dialog - the app simply terminates (with nothing in EventLog).
Under a debugger it breaks fine but when started stand-alone I do not get the prompt - running as Admin has no impact either.
This may be realted to my earlier thread here.
Thx
Cap'n
- Edited by Captain Kernel Wednesday, August 01, 2012 3:06 PM
All Replies
-
Friday, August 03, 2012 8:15 AMModerator
Hi Captain,
Glad to see you again.
To make sure that whether it is the VS debugger tool issue, run the same app with another Environment, if it works well, I doubt that it is related to your VS. To make sure it isn’t related to the settings, maybe you could try to reset the VS settings and check it.
Not the VC++ expert, maybe you could share us your app, I will debug it or involve the VC++ expert to check it
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
- Proposed As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Thursday, August 09, 2012 10:45 AM
- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Friday, August 10, 2012 5:51 AM

