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
754 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

759 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

19 Experts available now in Live!

Get 1:1 Help Now