.NET
  Home arrow .NET arrow Page 5 - Soup to Nuts Lab 1: A Tour of Visual Studi...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Soup to Nuts Lab 1: A Tour of Visual Studio.Net
By: MSDN Virtual Labs
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 27
    2006-02-09

    Table of Contents:
  • Soup to Nuts Lab 1: A Tour of Visual Studio.Net
  • Exercise 1: Create a Simple Windows Forms Application
  • Exercise 2 Using the Visual Studio .NET IDE Tools
  • Exercise 3: Write Some Code
  • Exercise 4: Basic Debugging
  • Exercise 5: Configuring the Visual Studio .NET IDE

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Soup to Nuts Lab 1: A Tour of Visual Studio.Net - Exercise 4: Basic Debugging


    (Page 5 of 6 )

    Scenario

    In this exercise, you will examine the different tools the Visual Studio .NET 2003 IDE has to offer.

            Tasks              Detailed Steps

    1. Set a breakpoint.

        1. In the code pane for the Customers.xx class, find the following line:

          C#
          Value = "You typed " + Value;

          Visual Basic .NET
          Value = "You typed " & Value 
        2. Left-click the above line to place the cursor there, right-click and choose Insert Breakpoint.

          The line becomes highlighted red by default, indicating a breakpoint is set on the line.

    2. Run the code.

        1. Press F5 on the keyboard.

          The Visual Studio IDE starts up and the Customers form displays.

        2. In the Customer ID text box type 1234. 
        3. Click Get Customer.

          The Hello Soup to Nuts message box displays.

        4. Click OK.

          The IDE enters Break mode, and the line on which the current breakpoint is hit is highlighted the default yellow. By default, the Autos, Locals, and Watch 1 windows are organized in the lower-left pane of the IDE in break mode and the Call-Stack, Breakpoints, Command Window and Output windows are displayed in the lower right. These are all powerful features of the .NET debugger and will be hugely helpful for you to debug your code.

    3. Step through the code.

        1. Click Debug and choose Step Over.

          The current line advances, indicated by the yellow highlight moving down one line.

        2. In the code pane, hover the mouse cursor over the word Value.

          A tool tip pops up showing the concatenated Value="You Typed 1234" .
        3. Click Debug and choose Step Into.

          A message box displays the text "You typed 1234" .

        4. Click OK.

          The IDE re-enters Break mode, and the line on which the current breakpoint is hit is highlighted the default yellow. 

        5. Click Debug and choose Continue.

          The IDE switches back to run mode and the Customers form comes to the foreground.

    4. Stop the run.

        1. In the IDE, click Debug and choose Stop Debugging.

    Take Microsoft software for a test drive. With MSDN Virtual Labs, you get full access to all available Microsoft products through 90-minute modules, each with its own downloadable manual. Try this lab out now.

    More .NET Articles
    More By MSDN Virtual Labs


       · We hope you found this article from MSDN Virtual Labs to be both educational and...
     

    .NET ARTICLES

    - Using CrystalReportViewer to Display Crystal...
    - Creating Summary .Net Crystal Reports
    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT