How to debug Windows services in Visual Studio?
Yo can find this solution from http://stackoverflow.com/questions/4678819/how-to-debug-windows-services-in-visual-studio or http://msdn.microsoft.com/en-us/library/7a50syb3(v=vs.110).aspx You can also try this. Create your Windows service and install and start…. That is, Windows services must be running in your system. While your service is running, go to the Debug menu, click on Attach Process (or process in old Visual Studio) Find your running service, and then sure the Show process from all users and Show processes in all sessions is selected, if not then select it. Click the Attach button Click OK Click Close Set a break point to your desirable location and wait for execute. It will debug automatic whenever your code reaches to that point. Remember, put your breakpoint at reachable place , if it is onStart (), then stop and start the service again If your debugger ...
Comments
Post a Comment