Solved

Why does Visual Studio 2005 not always show "step into" or "step out-of" buttons for debugging C#?

Posted on 2008-10-15
6
755 Views
Last Modified: 2013-12-17
Sometimes when I debug a C# program in Visual Studio 2005, the debugger displays a "Step Into" and a "Step Out-of" button; sometimes (on different solution), it displays only the "Step Over" button.
I cannot seem to find an option that controls this.
Can you please tell me how to always display all 3 single-step buttons?
Thanks, Ken
0
Comment
Question by:kenfhenderson
  • 3
  • 2
6 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 22723808
You can only 'step into' code if the Source code for the routine to be 'stepped into' is loaded into the IDE.  If it is not loaded, then the code will already have been compiled into a DLL, and you cannot step into code in a DLL.
 
AW
0
 

Author Comment

by:kenfhenderson
ID: 22724321
Even if the DLL was created as part of the same solution?  All the source files are right there.
0
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 500 total points
ID: 22724558
In the Debug tool bar at the right end you will see an arrow facing downward. Click on the arrow, this will open a menu, select "Add/Remove Buttons", then select "Debug", This will display all the debug buttons. You can select or unselect the step-in, step-out, step-over buttons to be displayed on the tool bar.

debug.jpg
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 13

Expert Comment

by:TechTiger007
ID: 22724565
attached is the snap shot of menu
0
 

Author Comment

by:kenfhenderson
ID: 22724733
Thanks for the pointer to that drop-down menu.
When I opened it up and selected Debug, it had no entries for step-into or step-out-of to check or uncheck.
However, I was able to use the customize option to drag the two desired buttons onto the debug toolbar. (see attached screenshot file)
Thanks for the clue.
Cheers, Ken

adding-buttons-to-the-debug-tool.doc
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22724874
Happy that you figured it out. You are welcome
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 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

11 Experts available now in Live!

Get 1:1 Help Now