Debug query in C#

G

Guest

Hi,

I'm trying to follow Lab1 of the WF Hands On Labs.

Having created the project and set a breakpoint as per instructions, I press
F5 to compile and run the project. The instructions say that when the
breakpoint is reached I should select Step Into from the Debug menu. However,
Step Into does not appear as an option. I only see Step Over? On the Debug
toolbar, I can see the icon for Step Into but it is greyed out.

Can anyone tell me why?
 
L

Linda Liu [MSFT]

Hi,

If the "Step Into" command isn't present in the Debug menu, you could add
this command into the Debug menu manually or just reset the Debug menu
because the "Step Into" command resides in the Debug menu by default.

To add the "Step Into" command to the Debug menu manually, follow the steps
below:

1. Select menu Tools | Customize.
2. In the Customize dialog, switch to Commands tab and select the "Debug"
in the Categories list.
3. Select the "Step Into" in the Commands list and drag it among the sub
menu items of the menu Debug.

To reset the Debug menu, follow the steps below:
1. Select menu Tools | Customize.
2. In the Customize dialog, switch to Commands tab and click the Rearrange
Commands button.
3. In the Rearrange Commands dialog, select the option "Menu Bar" and
select "Debug" in the ComboBox on the right hand. Click the Reset button on
the bottom-left corner.
On the Debug toolbar, I can see the icon for Step Into but it is greyed
out.

The Step Into command is available only when the VS is in design or
debugging mode. If the Step Into icon in the Debug toolbar is greyed out,
the VS should be in running mode.

To make VS enter into debugging mode, set a breakpoint on one line of
source code that would definitely be executed and press F5 to run the
program. When the line of code that you set a breakpoint on is hit, you
should see this line of code is highlighted with a yellow line.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
L

Linda Liu [MSFT]

Hi John,

How about the problem now?

If you have any question, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top