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
756 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

DevOps Toolchain Recommendations

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

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

786 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