Tabs vs Spaces

Of course, there is only one answer to whether tabs should be allowed in a source file.  The utility of one is just so obvious I’ll simply avoid commenting on it.   🙂    If you must wander from sources written with one convention to those written in another, you should definitely set Visual Studio (or whatever editor you use)…

15

Data Breakpoints

The VS debugger allows two types of breakpoints. There are location breakpoints and data breakpoints.  Each has lots of bells and whistles.  However, sometimes people confuse a Location bp with a condition, for a data bp.  That’s unfortunate because a data bp solves a different problem.   A data breakpoint involves telling the debugger to…

6

Stop Mid Func Eval, Nested Break States

A coworker mentioned Func Eval sounds like “Funky-val”.  Stopping at a breakpoint in the middle of a function evaluation could be considered funky.  It is also useful.   VS Whidbey allows stopping at a BP or Exception during a function evaluation in C# or VB code.  To use it, you need to do the function…

3

More hours in the day

In the summer of ’94 I sketched a design for my ideal ‘mp3’ player.  I didn’t spec the compression format.  If I had, it would have been called a ‘bit’ player back then.  I wanted a walkman replacement.  However, the feature I most craved was understandable fast play, and rewind.  My motive was to record all my lectures for a…

7

PsuedoVariables and Format Specifiers

The VS debugger has a history of tiny but useful features hidden in the expression evaluator. These features are like the yellow shirted ensign in star trek.  They are useful, but unknown and expendable. Developer’s learn about them by attending a Power Debugging talk, or buying one of John Robbins very good books.   I started…

3

Login fun

Jeff Atwood argues that the Login dialog should infer the username from the password: http://www.codinghorror.com/blog/archives/000413.html.   That reminded me that many user’s of XP home don’t have a password, which is even simpler. If you are cringing at the thought of a blank password; Uncringe. The blank password is better than you think.  By default, an XP…

0

$env=0

Winning the award for the least understandable UI metaphor: the ability to view the environment variables in the target when native debugging.  This is yet another tiny undocumented feature of the native expression evaluator in VS.  $env falls under the same extravagant disclaimer from the @clk post.   Place $env in the watch window and you get…

2

Full Impact Dance Nostalgia

Shai is an artist in crunch mode, so I was a lone bachelor at the Dance Underground last night.  Lindy Hop is my Performance-Art-Sport relaxation.  Simple basics with a tentative newcomer, or stanzas of movement with a confident pro, are a joy after a long separation.    Back in the day, dancing five to six…

1

Assembly language survival guide (for Debugging … not writing)

Knowing just enough assembly is a really powerful aid in Debugging.  These are short articles that hit the sweet spot of enough information to be very useful, but not so much that it is a chore to learn:   Matt’s Just Enough Assembly Language to Get By: http://www.microsoft.com/msj/0298/hood0298.aspx http://www.microsoft.com/msj/0698/hood0698.aspx     GreggM also has some blog…

0

Devenv stealth feature, Poor Man’s Profiler

This feature is unsupported. It is undocumented. If you call help desk about it nice people will say “huh?”  If it breaks, people will nod knowingly and say “I told you so”. In later versions it may simply disappear.  It could decay right now as I speak and explode! (maybe not.)   One more disclaimer…

1