如何调试服务
Because a service must be run from within the context of the Services Control Manager rather than from within Visual Studio .NET, debugging a service is not as straightforward as debugging other Visual Studio application types. To debug a service, you must start the service and then attach a debugger to the process in which it is running. You can then debug your application using all of the standard debugging functionality of Visual Studio.

浙公网安备 33010602011771号