One interesting new feature I noticed in the Visual Studio 2010 beta 1 debugger: You can now turn watch expressions into little detached “post-it”-like notes that float around your debugger window. I’m calling them Watch Notes for now, since I have no clue what the feature is actually called.

vs10_bg_notes_1

You can create them by hovering the mouse over an expression. Like in previous versions, you’ll get the watch popup with the details and value of the expression, but notice the little Note-icon on the right:

vs10_bg_notes_2

If you click on it, the watch expression window will be moved to turn yellow and get detached. It keeps around during your debugging and works just like any expression in the real watch window (that is, it’s context sensitive and insensitive at the same time).

I think this is pretty nifty for some debugging helpers. They will even persist across debugger sessions! More interesting, you can add a brief descriptive text to each watch note and keep it visible (or hidden).

I think these will be very useful when debugging complex issues in small pieces of code, because for general debugging sessions when you go through lots of places in the code, they will get a bit in the way.


Something Fishy

Something I did not like, though, is that the note icon used to create these gets hidden away whenever you look into a complex expression that can be drilled down (i.e. one that has [+] next to it):

As soon as the expression properties is expanded, the note icon disappears, and since they always expand automatically as soon as you hover the the cursor over the expression and you need to move over it anyway to reach the note icon (otherwise, the whole popup disappears), then you have to go right away to collapse the properties before being able to create a watch note from the expression. This can get annoying real quick.


Tomas Restrepo

Software developer located in Colombia.