Note that there are some explanatory texts on larger screens.

plurals
  1. PODebug a Windows Service
    primarykey
    data
    text
    <p>I have created one windows service which send an email notifications to users (list retrieved from db) every 2 minutes. I wish to check that everything is running ok in web service and hence I wish to debug the service. The service is installed in SMC (services.msc) when an server setup of application is done.</p> <p>My question: how to debug the windows service?</p> <p>I <strong>cannot</strong> see the service from </p> <ol> <li>Task Manager </li> <li>Attach to process</li> </ol> <p>I have tried from following links</p> <ul> <li><p><a href="https://stackoverflow.com/questions/1982636/debugging-windows-services">Debugging windows services</a> (CANNOT understood the FIRST COMMENT- making normal windows form)</p></li> <li><p><a href="https://stackoverflow.com/questions/3894019/debugging-a-windows-service-and-trying-to-see-what-it-sees">Debugging a Windows Service and trying to see what it sees</a></p></li> <li><p><a href="https://stackoverflow.com/questions/2629720/debug-windows-service">Debug Windows Service</a></p></li> </ul> <p>I have also given the rights of debugging from <a href="http://msdn.microsoft.com/en-us/library/aa291232%28VS.71%29.aspx#vxtskdebuggerpermissionsdebuggingasystemservice" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa291232%28VS.71%29.aspx#vxtskdebuggerpermissionsdebuggingasystemservice</a></p> <p>Let me know if any input required.</p> <p>Thanks!</p> <p><strong>EDIT:</strong> @maycil</p> <p>I wrote your <code>If(!Debug)</code> code but I guess there is some problem as I don't see proper color of Visual Studio.</p> <p><img src="https://i.stack.imgur.com/Vicy7.png" alt="alt text"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload