I have a .NET service and I need to debug it.
I want it to stop when it reaches a place in the code and start the debugger. Can someone provide sample code?
UPDATE
Just adding
Debugger.Launch();
not working for windows service.
Try using Debugger.Break()according to this answer.
Debugger.Break()
Add Debugger.Launch();to the place of your code where you want to start debugging.
bool f = true; () {//< -
}
:
1) 2) 2) 3) 4) 5) Visual studio 6) - > 7) , 8) ,
Source: https://habr.com/ru/post/1767851/More articles:PHP echoing jpeg image fails, but writing the same image to a file works fine. What for? - phpВ приложении photoscroller (приложение для iPhone WWDC-104 Photos) изображения uiscrollview сдвигаются вправо при вызове с помощью presentModalviewController - iphoneWCF REST: case-insensitive query string parameters, proposed naming convention - use underscore or? - restHow to remove duplicates based on level in hierarchy? - duplicate-removalMySql stores procedures, deletes a record logically or physically depending on existing table links - sqlEscaping characters in batch scripts - batch-fileКак настроить непрерывное развертывание для решения SharePoint 2010 Visual Studio? - visual-studio-2010android-opencv cvCanny communication error - androidPreventing Doctrine 1 creating foreign key constraints - phpCreating a new jQuery plugin - jqueryAll Articles