473,322 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Step into debugger at next line


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

May 25 '06 #1
4 1807
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

Mi**********@gmail.com wrote:
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


May 25 '06 #2

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.

May 25 '06 #3
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.

<Mi**********@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...

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.

May 25 '06 #4

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.

May 25 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
2
by: John Dalberg | last post by:
I need to know what happens after Page_load has finished so I put a breakpoint at the last statement. However after stepping into after this last statement, the app continues running without the...
0
by: Brian Henry | last post by:
I have a project that was upgraded from ASP.NET 1.1 to ASP.NET 2.0. When I step through the page load even of one of my web forms, it calls a function in the app_config folder which is under the...
5
by: =?Utf-8?B?U0M=?= | last post by:
Hi everyone, i'm workin with vb.net 2003 and i using the debug step into, but when i call a form within another the debugger doesn't go to the form that i call, how do i solve this, without putting...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.