c# - Windows service Debug Issue -


i have created windows service have try debug use under debug tab click on attach process select myservice.exe wont go through break point.

in service on start event write following code

     protected override void onstart(string[] args)     {          console.writeline("press enter terminate ...");     } 

please me how resolve issue....

use following method.on code. far easiest method set breakpoint on service library.

debugger.break();

protected override void onstart(string[] args)     {         debugger.break();         console.writeline("press enter terminate ...");     } 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -