Mark's Stuff

My Foray Into Weblogging. Using this to store interesting items for later review.

Monday, August 07, 2006

Debugging Services

Been having a little conniption trying to figure out how to debug a service app I was writing. Ended up pretty simple to work for me. Put this as the first statement in the OnStart sub, or where you want to start the debugger.

#If DEBUG Then
System.Diagnostics.Debugger.Launch()
System.Diagnostics.Debugger.Break()
#End If


Here are some links to pages that helped.

Dave's Place
Debugging a .Net Windows Service the "easy way"
Pick A Bar: Three little tips for debugging .Net Windows Services

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home