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 window or form starts up. However, if I want to debug…


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 where the result of an arithmetic operation is undefined. Examples of…


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 that is similar to the following. —————————Microsoft Visual Studio—————————Error while…


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 query, often it helps to look at the generated T-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? Watch this short video and then continue reading…

1

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, you can create, modify and delete breakpoints using the Breakpoints window which…

2

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 automatically display tracing information from a WPF application. Let’s walk through a simple example…


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! The only "workaround" is to profile your application using instrumentation mode…


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 string manipulation functions like strcmp() and strlen() in a conditional breakpoint and have…


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: http://<machine_name>/ReportServer/ReportService2005.asmx. Warning    [ Project Collection ] TF255331: The existence of the following folder on the report server could…