If the service is started with the single argument "debug" eg by setting the Start parameters of the service in services.msc, we delayed startup in service_main() until the await_debugger variable is set to false. Attach to nssm.exe with your debugger of choice, set a breakpoint within that function and poke the variable when ready. Beware that the behaviour of the service manager when service_main doesn't complete operation promptly is undefined.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|