Solved

debugging in Visual Studio 2010

Posted on 2013-05-17
1
553 Views
Last Modified: 2013-05-17
Hi experts,

In Visual Studio 2010 when I'm debugging a Windows Forms application I set a breakpoint on a certain line of code.
Then when click F5 to start debugging the application the application starts up and runs until it hits my line of code where I set my breakpoint.

Once it stops at my breakpoint I can either do one of the following:

click F5 (to Start Debugging again)
click F8 (Step Into)
click Shift + F8 (Step Over)
click Ctrl+Shift+F8 (Step Out)

When I choose either Start Debugging, Step Into, Step Over, Step Out these operations go forward in my application execution.
What I mean is, if I set my breakpoint at line 9, and then click Step Into, then the next line that gets executed is line 10 and then line 11 and so forth.

So my question is this:

Is there a way to set a breakpoint and then Step Into but go backwards?

or

Is there a way to see a list of execution order of certain methods that are run when my application starts up?

See in my windows forms application that i'm testing, when the application is launched,
a login form comes up.
Once you log in, then the application checks your login credentials against a database and if you are successfully validated then you are taken to the main form.

I want to see all the forms or classes that are hit between the time the user enters their credentials and the time the main form launches after validation is successful?
0
Comment
Question by:maqskywalker
1 Comment
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
You cannot step backwards, but you can drag your "next statement to execute" arrow (the little yellow arrow in the left margin) to previous spots in your current block. In order to see order of execution of methods, you can examine the "Stack Trace" window (Debug->Windows->Call Stack / Ctrl-D, C) to see the current stack of methods that were called up to the breakpoint.

Screenshot
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now