locked
Debugging WHS Add-ins? RRS feed

  • Question

  • Other than writing some shim or using MessageBox.Show(...) for debugging, are there better ways of debugging custom written add-ins for WHS? (ie: some nice way to debug within VS without writing some shim?)

    Tuesday, December 18, 2007 7:24 AM

Answers

All replies

  • Hi!

    Have a look at Brendan Grants blog : http://ihatelinux.blogspot.com/search/label/WHS%20Dev%20Tips

    He gives some very valuable WHS development tips!

     

    Regards, Alex

    Tuesday, December 18, 2007 11:07 AM
  • Two things I did were:

    1)  I stuck my usercontrol on a plain old windows form and did some quick debugging there.  It allows you to easily see how your usercontrol is going to work.  Obviously if you have any WHS tie-ins they won't work.

    2)  If it is something quick, good old Debug.WriteLine statements to the rescue. Then have Mark Russinovich's DebugView on the server.  Open it up and you will see all your debug statements as they fire.

    http://technet.microsoft.com/en-gb/sysinternals/bb896647.aspx 
    Tuesday, December 18, 2007 1:21 PM
  • Thanks for the plug Alex.

     

    Specifically I'd take a look at the posts on Remote and Local debugging.

    Tuesday, December 18, 2007 1:42 PM
    Moderator
  • Thanks! I completely forgot about the remote debugging capabilities in VS...

     

    Tuesday, December 18, 2007 7:42 PM