Step into debugger at next line

M

MichaelCombs

I'm looking for a way to step into code at the next line of execution
in the debugger. Back in the day you could do this in VB by doing
something like Ctrl-Break to pause te debugger and then hit F8 (step
into). Then you perform some action in your application, say a double
click, and then the debugger steps into your double click handler.

I'm trying to debug a massive app that I didn't write. I'm trying to
hunt down some event handlers. If anyone has a better suggestion for
finding my handlers that would be great too.

Thanks - Michael
 
B

Brian Gideon

Michael,

Place breakpoints on event handlers that you think may be raised in the
application. Target those event handlers that have been added to the
control in question. Event handlers are added using a syntax similar
to the following.

myButton.Click += new EventHandler(this.myButton_Click);

Press F10 to step over and F11 to step into when using Visual Studio
2002 and beyond.

Brian
 
M

MichaelCombs

The problem is that they have rewired the event handlers in not so
obvious ways through loosley coupled objects. I'm looking for a way to
cause the debugger to break into code after an action is initiated in
the app witout setting a breakpoint or making a Debugger.Break call.
This was a feature that was always available in previous version of MS
IDE's but seems to be missing now.

Thanks anyway.
 
L

Lebesgue

If I understand you correctly, you can achieve what you need by breaking the
application by pressing the "pause" button located next to the "start with
debugger button" (or ctrl+alt+break) which will break on Application.Run
call (indicating it is not the top of stack trace) and pressing F10 (step
over). The execution will break on next event handler.
 
M

MichaelCombs

Thanks. That's exaclty how the older IDE's worked. I just couldn't get
it to work. That tells me I have a different problem then..... :-(.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top