Home > Microsoft, Visual Studio 2005, Visual Studio 2008 > Visual Studio Debugger Issues & Solutions

Visual Studio Debugger Issues & Solutions

August 10, 2007

You’re working on a 2000+ line, extensive business logic piece of code (if this is true, you need smacked and need to go refactor, but it’s just an example)… and you start to debug your code.  You set a few break points, and press Start in Visual Studio.

And then all sorts of wierd things happen—your code flow jumps around, variables don’t show up, or it just “doesn’t work.”  Microsoft’s Jim Gries has begun compiling a list of those odd issues and the solutions, articles, and further readings to help solve them.

You can find the full “Debugger FAQ” here.  It’s a work in progress, but a nice place to start when Visual Studio is just throwing dirt at you.


  1. August 11, 2007 at 12:33 pm

    I love nothing more than to check code out of SVN and refactor / optimize the entire solution with R#.

    Granted having 30 extra using statements never killed anyone but I kind of have OCD when it comes to tidy code.

    I haven’t experienced anything that you wrote about and posted simply to cosign your thoughts on refactoring.

  2. August 11, 2007 at 1:54 pm

    The new solution-based refactoring is VERY cool part of ReSharper–love that lots; though usually don’t let it get into SourceSafe without that. 😉

    The above was simply an example–I’d smack people who had 2000+ line methods… *shudder* It was simply a scenario. *grin*

    Tidy code is good; especially with code generators and such. I was looking for an article for you the other day that explains how the CLR handles the added using statements. I know that additional statements slows things down when you’re reflecting back in, but I think (think is the key word) that when you compile it down, that any using statements (references) that are not coded against, are simply stripped out. If I find the reference, I’ll shoot it over to ya.

    In the end, it’s most likely a matter of preference and standards. I’m a geek who runs test scenarios at the command prompt and pipes them into the compiler to test things… so… yeah.

  3. August 11, 2007 at 4:45 pm

    Yeah I would never check anything in to SVN without refactoring but working on a distributed team is a little different. Not everyone is using R# (yet!).

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: