So once again to over come a small limitation in the Express edition of Visual Studio ,The specific limitation if you can even call it that is that the quick watch has been removed .This is something that i used alot in Visual Studio when i had it.
So to get around it i am going to discuss something that i see alot of my friends overlook , not even sure if some of them know it exists.What i am talking about is the immediate window. This to an extent does the same thing as the quick watch with out really displaying the results .How the immediate window works is that it will execute what ever code you type in against the current code that is running.
Example:
You need to test a new insert statement using code that you just wrote but you want to test it against a live server as a client is complaining it does not work.
Start stepping through the code till you get to command execute and pause processing , now switch to the immediate window and create a new transaction against the command.Once that is done execute the code as normal and once you are sure that all is fine , simply rollback the transaction .In this way no data is committed to the data base but you are still able to test your code .
I hope this helps some one with a bit of debugging as i know its saved me countless hours
No Comments Yet
No comments yet.
Comments RSS TrackBack Identifier URI
Leave a comment
