Discover dead code in your application using Code Analysis

Last weekend, I spent a good 30 minutes trying to figure out why I wasn’t hitting a breakpoint in a method. Admittedly, I wasn’t very familiar with the code since I hadn’t written it. It turned out that the method wasn’t being called from anywhere, so it was essentially "dead code". I wanted to remove…

Debugging 101: How to skip over code in the Visual Studio Debugger

One of the questions that comes up regularly on newsgroups is "How do I skip over a section of my code in the Visual Studio debugger?" The answer depends on the meaning of the word "skip" but in general, there are three ways that you can skip over a section of code in the debugger….


Use UML Sequence Diagrams in Team System 2010 to reverse engineer your code

One of the new features that we have added in Visual Studio Team System 2010 is the ability to create a new UML Sequence Diagram as well as generate one from existing code. I’m not going to go into too much detail on what a UML sequence diagram is since there is a plethora of…

Quick Tip: How to move a breakpoint in the Visual Studio debugger

Setting a breakpoint in the Visual Studio debugger is as simple as placing your cursor on a line of code and pressing F9. However, once you’ve set the breakpoint, how do you move it to a different location since clicking on the breakpoint will delete it? One workaround is to delete the breakpoint and set…

Visual Studio 2010 RIP List (Partial)

Like any software product, with every new release of Visual Studio, we add numerous new features to support additional scenarios, improve existing features based on customer feedback and occasionally, we remove some features based on a number of factors such as lack of customer demand, quality issues, retirement of legacy technologies, changing industry trends, etc….


Walkthrough: Measure the performance of your JScript code with Team System 2010

In Visual Studio Team System 2010, one of the new features that we have added to the Profiler is the ability to measure the performance of JScript code that runs in the browser. This means that if you have a web application that contains ASP.NET AJAX or plain old JScript, you can now measure how…

The anatomy of the Historical Debugger Navigation Bar (Navbar)

In a recent Channel 9 10-4 video, Brian Keller introduced the Historical Debugger in Visual Studio Team System 2010. One of the features that he described in his video was the Historical Debugger Navigation Bar (Navbar) which he used to step back in the application. In this post, I’m going to describe in detail what…

The Visual Studio Output window: It has more to offer than meets the eye

At first glance, the Visual Studio Output window appears to be a boring tool whose only role in life is to display status information. However, look more closely and you will find that it provides several features that can be extremely useful. Below, I’ve listed the most common scenarios where I use the Output window….


Use Code Analysis to measure the quality of sample code

Sample code is great because it allows you to quickly get up to speed with a new technology or learn how an API works and sometimes, you might even use some of the code in your own application. The major downside of reusing sample code is that most often, the code wasn’t written with production…


How to install and configure the 3.0 sample application [Video]

About two weeks ago, version 3.0 of the sample application was released and I covered the release in this blog. Since then, there have been close to 800 downloads of the application. To help people ramp up on DinnerNow, I’ve created a short video that shows how to install and configure 3.0. There…