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.
Here are some links to pages that helped.
#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: .Net
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home