Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Debugging   (RSS)

Looking for questions or feedback on IntelliTrace

During the last few months, I've been blogging extensively about a new Visual Studio 2010 feature called IntelliTrace (formerly known as the "Historical Debugger"). We are very excited about IntelliTrace and think that it's going to change how

Using IntelliTrace to view the return value of a VB or C# method

A few months ago, I blogged about how to view the return value of a C# or VB method in the Visual Studio debugger. As I explained in that blog post, the debugger does not support viewing the return value of a .NET method, so you have to apply a workaround

How to edit code when debugging a 64-bit application

One of the most popular features in the Visual Studio debugger is the ability to edit code during a debug session and have the changes apply without having to stop the debugger, recompile the application and then run the application to verify the changes.
Posted by habibh | 0 Comments

Debugging a COM object (Runtime Callable Wrapper) with Visual Studio 2010

If you have written managed code that uses a COM object, then you are probably familiar with System.__ComObject . When a COM object lacks a Runtime Callable Wrapper (RCW), the CLR provides a generic RCW which is an instance of the type "System.__ComObject".

Class Breakpoint: How to set a breakpoint on a C++ class in the Visual Studio Debugger

When debugging an application, there are times when you want the debugger to stop whenever any of the functions in a particular class are called. An example of this may be when you are trying to find out which object is calling your class. Of course,
Posted by habibh | 0 Comments

Troubleshooting common breakpoint problems in the Visual Studio debugger (Part I)

On the Visual Studio debugger team, one of the areas where we regularly receive feedback is when breakpoints don't work. Furthermore, some of the error messages that the debugger displays when a breakpoint fails are generic so it might be hard to diagnose

How to debug a 64-bit dump using the Visual Studio debugger

One of the questions that comes up about debugging dump files is how to debug a dump file that was created from a 64-bit process. The reason why this question comes up is because Visual Studio itself is a 32-bit application and therefore, cannot debug

How to debug an exception with the Visual Studio 2010 Historical Debugger

In a previous blog , I covered how to debug a LINQ to SQL query using the Historical Debugger. In this blog, I'll discuss using the Historical Debugger to debug an exception. The are a couple of reasons why the Historical Debugger is so useful when it

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

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

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

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,
More Posts Next page »
 
Page view tracker