Answered by:
Debugging WHS Add-ins?

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
-
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
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.aspxTuesday, December 18, 2007 1:21 PM -
-
Thanks! I completely forgot about the remote debugging capabilities in VS...Tuesday, December 18, 2007 7:42 PM