Debugging Windows Services with Visual Studio 2005

Wednesday, April 19, 2006 5:59:46 AM (Central Standard Time, UTC-06:00)
Couple of months ago I stumbed across an approach for debugging windows services on MSDN (http://www.sysknowlogy.com/2006/01/28/Better+Way+For+Debugging+Windows+Services.aspx)
 
With Visual Studio 2005 you can use the vsjitdebugger.exe and managed code.  Here is the registry entry.
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ServiceHost.exe]
"debugger"="vsjitdebugger.exe"
 
Replace ServiceHost.exe in the reg entry with the name of your executable.  You no longer have to edit the environment path variable.

Comments are closed.