how to write debug code for nt service(c#)
C#
2
Posts
2
Posters
0
Views
1
Watching
-
hi, generall we should use process attach tools when debuging service program, but it's not always available. could i write some extra code to enter into service main procedure directly, so i can gain some more debug information.
-
hi, generall we should use process attach tools when debuging service program, but it's not always available. could i write some extra code to enter into service main procedure directly, so i can gain some more debug information.
Sure, a log file comes to mind. Or writing to the event log (but then the messages shouldn't be too long). Regards, mav