Welcome to MSDN Blogs Sign in | Join | Help

July 2009 - Posts

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

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

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

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
Posted by habibh | 0 Comments

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
Posted by habibh | 6 Comments
Filed under:

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

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

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,
Posted by habibh | 2 Comments
Filed under:

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,

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

About two weeks ago, version 3.0 of the DinnerNow.net 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

Walkthrough: Debug a WPF window or Windows Form without running your application [Video]

Most Windows GUI applications share a common trait. They all have multiple forms and/or dialogs. In the screenshot below, this simple application alone has four WPF windows. If I want to debug the main window, that's easy. I just press F5 and the main
Posted by habibh | 0 Comments

Code Analysis and NaN (Not a Number)

Code Analysis in Visual Studio Team System can be extremely helpful when it comes to pointing out subtle bugs that are hard to detect even via code inspection. One example is dealing with NaN. NaN which stands for Not a Number , represents a constant
Posted by habibh | 0 Comments
Filed under:

Mixed Mode Debugging for 64-bit Applications

In Visual Studio 2008 and earlier releases, one of the key complaints is that the debugger doesn't allow you to debug 64-bit mixed mode (managed and native) applications. In fact, if you try to debug a 64-bit mixed mode application, you will see an error
Posted by habibh | 0 Comments

Debugging LINQ to SQL queries using the Historical Debugger

I've covered the Visual Studio 2010 Historical Debugger extensively in a few of the previous posts. In this post, I'll cover how the Historical Debugger makes debugging LINQ to SQL queries a lot more convenient. If you are trying to debug a LINQ to SQL

Fun with Breakpoints in the Visual Studio Debugger

Once in a while, I come across a feature in the debugger where I ask myself: "I wonder if anyone knows about this feature!" Yesterday, I came across just such a feature: Did you know that the debugger can play a sound when a breakpoint is triggered?
Posted by habibh | 1 Comments

Managing Breakpoints in Visual Studio 2010 using Breakpoint Labels

One of the new features that we've added to the Visual Studio 2010 debugger is the ability to manage breakpoints more effectively. You might say that the existing Breakpoints window is a fine tool for being able to manage your breakpoints. After all,

Debugging WPF applications in Visual Studio 2010 using WPF Tracing

In an earlier blog , I described how to use the new WPF Visualizer to debug WPF applications in Visual Studio 2010. We've added another feature that further improves the debugging experience for WPF applications. The Visual Studio 2010 debugger can now

Visual Studio Team System 2010 Profiler and Virtual Machines: Error VSP1454 is no more!

Prior to Team System 2010, if you try to profile an application on a virtual machine (e.g. Virtual PC, Hyper-V, VMWare) using sampling mode, this is the error that you will see: Unfortunately, if you want to use sampling mode, you're pretty much stuck!

New Visual Studio Debugger 2010 feature for C/C++ Developers: Using string functions in conditional breakpoints

This should make many C/C++ developers happy when Visual Studio 2010 becomes available (you can download Visual Studio 2010 Beta 1 right now). In previous versions of Visual Studio, one of the complains that we've received is that developers want to use

Troubleshooting Team Foundation Server 2010 Beta 1 error TF255275

When installing Team Foundation Server 2010 Beta 1, you might run across the following error during the readiness check: Error    [ Reporting ] TF255275: The following Web service for SQL Server Reporting Services could not be accessed:

DinnerNow.net 3.0 for Visual Studio 2008 SP1 and .NET Framework 3.5 SP1 is here!

It's been a very long time coming but the next version of DinnerNow.net is finally here! In case you haven’t heard of DinnerNow, it is a fictitious marketplace where customers can order food from local restaurants for delivery to their home or office.

Preventing SQL Injection Attacks with Visual Studio Team System 2010

There are numerous articles on the web that describe the perils of SQL Injection attacks and warn developers about the fact that "All Input is Evil!". If you are interested in reading more about what a SQL Injection attack is, Wikipedia has

The quickest way to edit a Visual Studio project file

Even though you are not supposed to manually edit a Visual Studio project file, there are times when you really don't have a choice. For example, sometimes upgrading a project from a previous version of Visual Studio fails and the only way to fix the
Posted by habibh | 0 Comments
Filed under:
 
Page view tracker