Debugging Windows Service Tip

This is a quick tip on debugging Windows services or anything that runs as a seperate thread.  In other words, if you have to attach to that process to debug it, and you have the source code, the following tip will make it easy to debug.

A Windows service usually runs automatically, it is designed to run as a continuous service and, therefore, spawns one or more threads to do the actual work. This happens very quickly. As such, it is difficult to attach to the process (Alt+P) in time to properly debug the service and attach during a specific part of the execution. As a multi-threaded app, it becomes cumbersome and painful to debug. Fortunately since Visual Studio 2015 that we can vote invoke that allows us to attach to the process through the Visual Studio just-in-time debugger. It’s super simple, call:


Use this call anywhere in your code where you want the code to break into Visual Studio.  It will invoke a Visual Studio just-in-time debugger prompt:

Visual Studio 2015 Just-In-Time Debugger
Visual Studio 2015 Just-In-Time Debugger

Make your selection and debug.  Happy coding my friends.

For more information:

SharePoint 2010 Performance at the Houston SharePoint User Group

Hi All,

I did the technical presentation on Wednesday, Jan 19, 2011 at the Houston SharePoint User Group over SharePoint 2010: Boost the Performance of SharePoint Today!

The turn out was fantastic.  I can’t thank you enough for coming.  As requested by many, I am posting my slides and the scripts used during the demo.



View more presentations from Brian Culver.

Presentation Summary:

Is your farm struggling to serve your organization? How long is it taking between page requests? Where is your bottleneck in your farm? Is your SQL Server tuned properly? Worried about upgrading due to poor performance? We will look at various tools for analyzing and measuring performance of your farm. We will look at simple SharePoint and IIS configuration options to instantly improve performance. Mr. Culver will discuss advanced approaches for analyzing, measuring and implementing optimizations in your farm.

Here are the slides and scripts I used to demo:


Presentation at the San Antonio User Group – March 23 2010

How will SharePoint 2010 allow organizations to collaborate and share knowledge with clients and partners?

SharePoint empowers organization to build extranet sites and partner portals inexpensively and securely. Learn what exactly is claims based authentication and how you can use it.Learn about the new multi-authentication mode in SharePoint 2010. Learn how SharePoint 2010 can help your organization open its doors to its clients and partners securely.

Event details Here>>

Here is the SlideShare Presentation I made at the San Antonio SharePoint User Group:

SharePoint 2010 Extranets and Authentication: How will SharePoint 2010 connect you to your partners?

Slideshare_SP_techdives_SharePoint 2010 Extranets and Authentication

View more presentations from Brian Culver.