How to debug windows services program in visual studio 2008

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p align=left><font face=Arial size=2></font> 
All,
<p align=left>I can debug windows service program in visual studio 2005, I write the line of code
<p align=left>#if DEBUG 
<p align=left>Debuuger.Lauch()
<p align=left>#endif
<p align=left>and when i start the service, visual studio launch the debugger, so I can debug the service prgoram
<p align=left>But in visual studio 2008, I cannot let it work. And when I attche service process, it asks me to run visual studio in admin privilege, when i run visual studio in admin priviledge, it still pompts the same error message.
<p align=left> 
<p align=left>Any help?
<p align=left> 
<p align=left>Bing

View the full article
 
Back
Top