Subscribe: Bug Babble
Preview: Bug Babble

Bug Babble

Bugs, debuggers, stuff

Last Build Date: Wed, 21 Dec 2005 14:41:00 +0000


Simple VS Addin (updated)

Wed, 21 Dec 2005 14:41:00 +0000

Back during the PDC for Whidbey I wrote a post about Creating a Simple Addin.  Recently I was looking to update it and found a horrible bug in it.  First, here is the corrected code:   public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom){    _applicationObject = (DTE2)application;    _addInInstance = (AddIn)addInInst;    _debuggerEvents = _applicationObject.Events.DebuggerEvents;   ...

Naming threads in Win32 And .Net

Tue, 20 Dec 2005 00:25:00 +0000

When you are debugging an application with multiple threads it can be handy to have a better name than just the thread id.  This is simple to do in managed code.  There is a property on the Thread object that you can set.  It is also possible to do this for native code. However, there...

FuncEvil, the Clipboard, and Deadlocks

Fri, 09 Dec 2005 02:22:00 +0000

Mike Stall has a great post that, for a debugger dev, is the moral equivalent of sticking a fork in a toaster.  The basic problem he addresses is that once you are stopped in the debugger the UI for your application will no longer paint.  What if you need to see something on that UI?...

Change Debugger behavior with Attributes

Sat, 03 Dec 2005 16:54:00 +0000

Certain metadata attributes modify the stepping, breakpoint, and callstack behavior of the VS managed Debugger.  This is useful if you are creating an interpreter, language runtime, or a tool that modifies the code in a managed assembly.  There are three flavors of these attributes that affect execution control.  Each behaves slightly differently, and I always...

Netmodules: Sort of like a lib

Sun, 27 Nov 2005 22:19:00 +0000

I first ran into netmodules before VS 2002 was shipped. The netmodule gave me precisely what I asked for, without actually solving my problem.  I wanted to use multiple languages (C#, and C++ /clr) in a single assembly.  It turns out a single assembly can be multi-module.  Multi-module means a single .Net assembly is spread across...

XSLT debugging in Visual Studio

Thu, 17 Nov 2005 02:40:00 +0000

Visual Studio is a big tool.  It's easy to miss some useful features.  Hopefully the XSLT debugger won't get missed.   If you want to learn how to use XSLT debugging take a look at Neetu Rajpal's msdn article Introducing Xml tools in VS 2005.  Below you can see the debugger in action as an xslt...

Edit and Continue on 64 bit Windows

Tue, 15 Nov 2005 13:10:00 +0000

Pascal writes about the joy of x64 Windows XP, and some drawbacks.  One drawback is no Edit and Continue using the 64 bit CLR.  You can, however, use E&C against the 32 bit CLR on a x64 machine.  Here's how you do it:   You need to compile your managed assembly with a target CPU of...

Make DataTips Transparent

Sat, 12 Nov 2005 12:08:00 +0000

Enhanced datatips are my favorite new debugger feature. However, sometimes you want to see underneath the tip without losing your spot. Fortunately, JimGries thought of that. You can make the DataTip transparent by pressing the ctrl key or middle mouse button. Here is an Enhanced DataTip In Visual Studio 2005: Here is the same DataTip with the...

Post Mortems

Thu, 10 Nov 2005 12:18:00 +0000

I won the guess the murderer contest.   Shai and I compete to guess who the real murderer is on Law and Order Criminal Intent.  Last night we watched Sunday's two hour show.  It's a toss up who wins, but one of us always gets it by two thirds of the way through.  That's the point...

Perf Awareness is not Premature

Sun, 06 Nov 2005 18:38:00 +0000

I've found myself adding a timer to each of the unit test frameworks I use so I can see how long my tests take.  I am not trying to do anything complex.  I just want to be aware of the perf.  The same way pass and fail are visible, 1ms vs 90ms is visible.   Premature optimization...