Debug question

2 views
Skip to first unread message

Bruno Batarelo

unread,
Dec 26, 2002, 7:11:15 AM12/26/02
to
Greetings

Does anyone have a clue regarding the following questions? I'd like to know
how to place a generic breakpoint within an application that is in debug
mode, and another one; how to do generic single step execution of the
software in debug mode. This all regards win32 applications.

Thank You all and I wish You the best of everything
Bruno


Rick C. Hodgin

unread,
Dec 27, 2002, 3:17:27 PM12/27/02
to
> Does anyone have a clue regarding the following questions? I'd like to
know
> how to place a generic breakpoint within an application that is in debug
> mode, and another one; how to do generic single step execution of the
> software in debug mode. This all regards win32 applications.

If you have access to the source code and you're running your application
through a debugger (such as from inside Visual Studio's Visual C++ IDE),
then all you need to do is add "int 3" or "_asm int 3" if you're in C/C++
mode.

It will trap back to the debugger whenever int 3 is encountered. From there
you use the capabilities of the debugger to single-step, report memory
regions, etc.

- Rick C. Hodgin

Reply all
Reply to author
Forward
0 new messages