Interested in Sitecore?

Apply for our Mentorship Program by emailing your resume to chris.williams@techguilds.com. Check out our ASP.NET QuickStart and C# QuckStart Libraries. Below is my latest articles.

Thursday, April 16, 2009

Debugging a windows service

It took me a while to find this again. If you place this line of code in your onstart event then it will launch the prompt to debug and you can run your service in visual studio.

System.Diagnostics.Debugger.Break()

Hope this helps you as well.

If you have any tips tricks, resources you would like to share with the group please email them to Susan Fischer at susan@clinchportal.com

2 comments:

Mister X. said...

I think it's annoying that Windows first tries to search for a solution and after that it asks you to attach the debugger. Better turn problem reporting off while debugging :) Good Luck

Web Hosting India said...

Well written article. It was very useful for me. Thanks for sharing with us. Keep it up. All the best.
Web Hosting India