DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Trending

  • File Upload Security and Malware Protection
  • Real-Time Presence Platform System Design
  • AI Technology Is Drastically Disrupting the Background Screening Industry
  • Enriching Kafka Applications With Contextual Data
  1. DZone
  2. Data Engineering
  3. Data
  4. Pin features while debugging in Visual Studio 2010.

Pin features while debugging in Visual Studio 2010.

Jalpesh Vadgama user avatar by
Jalpesh Vadgama
·
Apr. 11, 11 · News
Like (0)
Save
Tweet
Share
3.90K Views

Join the DZone community and get the full member experience.

Join For Free

Visual Studio 2010 is one of most awesome tools used to debug Microsoft.NET related code. I have found one more interesting feature with the Visual studio 2010m, the Pin Data Tip feature. This feature can be very useful when you are debugging code with loops. Normally, when you debug the code, you have to put your curser on the variable if you want know the value of that variable.  Then, the tool tip will show the values of that variable.  The pin feature will pin that tool tip and you don’t have to put mouse over it again. Let’s take a simple example to examine the feature further. Code for the example is shown below. I have created a simple for loop and I am printing a variable value with Response. Write on the asp.net page.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace Blogging
{
  public partial class _Default : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          for (int i = 1; i <= 20; i++)
          {
              Response.Write(i.ToString());
          }
        
      }
  }
}


Now let’s put the break point on for loop as follows, and then start debugging by pressing F5.

BreakPoint

Now I have started debugging, and the first time code execution came to my break point. Now you can see when I put mouse pointer on that value it will show a variable I want. Here's an example:

VaraibleValue

Now as you can see there is one Icon in above code so once you click on that pin Icon that it will pin the DataTip for that variable like following.

Pindatatip

So now whatever you debug in that loop you can see the the value of variable I at any time like following.

VaraibleValue

So, that’s it. Life is easy thanks to the new debugging features in Visual Studio 2010. Hope you enjoyed the tutorial! Stay tuned for more. Happy Programming!
Debug (command) Icon Printing Awesome (window manager) Execution (computing) Pointer (computer programming) Data (computing)

Published at DZone with permission of Jalpesh Vadgama, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • File Upload Security and Malware Protection
  • Real-Time Presence Platform System Design
  • AI Technology Is Drastically Disrupting the Background Screening Industry
  • Enriching Kafka Applications With Contextual Data

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: