Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to write debug code for nt service(c#)

how to write debug code for nt service(c#)

Scheduled Pinned Locked Moved C#
csharpdebuggingtoolstutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    williamchou
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • W williamchou

      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.

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Sure, a log file comes to mind. Or writing to the event log (but then the messages shouldn't be too long). Regards, mav

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups