Search
Sunday, August 01, 2010 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  
May 13

Written by: Peter Henry
Wednesday, May 13, 2009 9:21 PM

Hopefully you know VS can debug your applications?!  Riiiiiiiiight?  haha  Ok, next, you know you can hit F5 to "debug into" your app right?  Well, when you hit F9 to setup a breakpoint, I hope you also know you can "interrogate" your variable values using a feature called QuickWatch (highlight the variable/method you want to peek into and hit SHIFT+F9).  You'll see something like this, when I highlight the whole age.ToString() then hit SHIFT+F9, I can see the value.

Quick watch showing value of age.ToString()

And that's fantastic!  But my complaint is, why can't VS just figure out when I put my cursor in the middle of the ToString() method call, THAT'S what I want to see in the QuickWatch?!

What do I mean?  When I try it, I place my cursor in the middle of the "To" and "String()" without selecting anything.  To me, it's pretty self-evident I want to see the value of the ToString() method call.  BUUUUUUUT to VS, it seems to be pretty ambiguous.

Quick watch doesn't auto select anything let alone the method I want to see the value for

But it's not ambiguous, AND EVEN IF IT IS AMBIGUOUS!!!!!!!!!!  Just give me something!!!!  I can see the Expression field and the Name column, and if VS automagicaly picks something incorrect, I can quickly see what its picked and either go change the expression here, or go back and highlight what I want. 

I want VS to work this way 95% of the time, I just put my cursor in the middle of the variable/method call/property I want to see and VS just figures it out!  It can do all the other intellisense, reformatting, background compiling, SURELY it can automagically figure out what I want to debug!

Now that my rants over, it's time to grab a coffee and get back to coding!

Copyright ©2009 Peter Henry

Tags:

Your name:
Title:
Comment:
Add Comment    Cancel  
     
  
Copyright 1999-2010 by PCHenry.com   Terms Of Use  Privacy Statement