Exceptions Dialog explained (or what does ‘User-Unhandled’ mean)

We recently had some questions on our internal Visual Studio Debugger forum about the exceptions dialog. So I decided to take a stab at explaining it.   Just My Code The first step to understanding this dialog is to understand a feature called ‘Just My Code’ (enabled/disabled with ‘Tools->Options->Debugging->Enable Just My Code’). Just My Code…

1

Attaching a debugger at startup

Sometimes you need to debug a process, and you need to attach the debugger right away, but you cannot launch the process under the debugger. For example, if the process you need to debug is a Windows Service, the Windows Service Manager must launch the process. How can you debug it? Here are the two…

3

Writing a script debugger without using the MDM

Today’s blog is about writing your own script debugger. Visual Studio has provided ‘Script’ debugging for a long time. In this context, ‘Script’ refers to script run by jscript.dll or vbscript.dll such as the script code in Internet Explorer, classic ASP scripting, or the cscript/wscript programs. Long long ago, someone provided a sample for creating…

1

Reporting a Visual Studio crash to Microsoft

Background Sometimes Visual Studio crashes. It would be nice if this wasn’t the case, but unfortunately it happens. However, like many Microsoft applications, Visual Studio has Error Reporting so that when a problem happens, you can tell us about it in one click. However, sometimes you would like to actually tell a live human about…

3

Visual Studio 2008 SP1 Beta

In case you missed it, Visual Studio 2008 SP1 Beta has been released:http://www.microsoft.com/downloads/details.aspx?familyid=CF99C752-1391-4BC3-BABC-86BC0B9E8E5A&displaylang=en For the debugger, Visual Studio 2008 SP1 contains: As with all service packs, fixes for all the significant bugs that we found since Visual Studio 2008 RTM. Improved support for downloading symbols and PDBs for the .NET Framework and other Microsoft products….

1

Visual Studio Remote Debugger Service user account requirements

I was asked today — Why does the Visual Studio Remote Debugger Service need to be run as an administrator? Since it doesn’t appear that this information is documented, I figured I would provide an answer. Running the remote debugger service as an administrator is really a recommendation rather than a requirement. The actual requirement…

1

Exception Filter Inject

Recently I have found the need to have an exception filter in some C# code that I have written. Since there is no language support for this, I wrote an IL instrumentation tool: http://code.msdn.microsoft.com/ExceptionFilterInjct For debugging scenarios, the value of this tool is to make it easier to save a minidump of exceptions. Unfortunately, there…

1

Advice on creating a code generator

I have been spending some time recently creating a custom code generator that outputs C++ and C# code from a custom XML format. This blog is about some of what I have learned while working on this. Advice #1: Use ‘#line’ There is a really cheap way to get a debugging experience for your custom…

1

Automatically reading source files from TFS

I recently stumbled upon  a blog that explained how to use the Source Server technology to enable the debugger to automatically download source files from TFS. This is useful when you work on a software project that is large enough that you debug against modules that are built by your build lab instead of being…

2

The debugger team is expanding

The Visual Studio Debugger team is expanding, and is looking for candidates. If you are interested in applying for a position, we have openings in Dev, Test and PM. Some great things about working on the debugger: You are helping to improve a tool which millions of developers use every day. There are few software development…

2