Creativity, Innovation... Failure



Microsoft .NET Debugging

Since its introduction in Visual Studio 2005 I got kind of used to it.
But when I started using Visual Studio 2008 the feature failed to work properly.

So I waited (as Ira Lukhezo did) until Microsoft fixed the problem. Check his post.

You will need to install Visual Studio 2008 SP1 and follow some updated tutorial (which seems no longer available but can be retrieved through google's cache from here).


Visual Studio 2005: Annoyance #1

We are all doing it!  We code then press 'F5' to test. But then on, especially when you are programming with C# you certainly use from time to time the 'Edit and Continue' feature. Right? I am but sometimes it gets annoying: upon pressing the pause button, you're always prompted to the main() function.

When using it extensively it turns out to be a pain in the ass ... Yell   So I decided to share how I resolved this issue.   First I took a look into the Tools>Options menu but found nada so I asked myself what can be done?   A MACRO!   So I simply had to find out how to break (1st line) and then how to prompt to the last document (2nd line).

Public Module RecordingModuleSub PAUSE_AND_CURRENT()
     DTE.Debugger.Break(True)
    
DTE.ExecuteCommand ("Window.NextDocumentWindowNav")
End Sub

So now we need this macro to be called when we pause.

  • Open up the "Macro explorer" from the Tools>Macro menu.

  • Create a macro and copy-paste the code above.

  • Save.

  • Go in the toolbar customization and a button with this macro.

  • Draw a nice icon for your button.

  • Enjoy!

If you know a better way let me know.


VS Intellisense

Here's a very interesting blog entry I found about how Visual Studio's Intellisense works and some of its seemingly bizarre behaviors..

http://blogs.msdn.com/cyrusn/archive/2005/05/13/417344.aspx