|
Posted by Alex Feinman [MVP] on September 1, 2005, 9:05 am
Please log in for more thread options
What I usually do is put a MessageBox somewhere in the very beginning of the
code I'm going to debug. Then I run the app (without debugging, in any way I
need) and then I attach debugger and set a breakpoint(s). Then I dismiss the
message box and wait for my BP to be hit
--
Alex Feinman
---
Visit http://www.opennetcf.org
>I want ot find some instruction for Smartphone platform just like _asm {int
> 3} to throw exception and then I can switch to debugger. But ASSERT(0) and
> DebugBreak doesn't work for me. In debugging mode, the program stopped at
> point where I insert ASSERT(0) or DebugBreak without any exception
> occured.
> And when using "start without debugging" command, this macro has no effect
> at
> all.
>
> I'm using VS2005 Beta2, WM5 Smartphone SDK. This is my code.
>
> #include <windows.h>
>
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int
> nShowCmd)
> {
> DebugBreak();
> MessageBox(NULL, TEXT("text"), TEXT("caption"), MB_OK);
> return 0;
> }
>
> I do work in debug project configuration, and the function DebugBreak()
> have
> no effect at all when I "start without debugging". What's wrong?
>
|