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. Debugging the windows service

Debugging the windows service

Scheduled Pinned Locked Moved C#
helpdebuggingtutorial
6 Posts 4 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.
  • M Offline
    M Offline
    M J Jaya Chitra
    wrote on last edited by
    #1

    Hai Everybody, Can any one please tell me how to debug the windows service even though i used the try catch block i couldn't find out the error point please give me solution to overcome this problem.

    Best Regards, M. J. Jaya Chitra

    N O H 3 Replies Last reply
    0
    • M M J Jaya Chitra

      Hai Everybody, Can any one please tell me how to debug the windows service even though i used the try catch block i couldn't find out the error point please give me solution to overcome this problem.

      Best Regards, M. J. Jaya Chitra

      N Offline
      N Offline
      Nisar Inamdar
      wrote on last edited by
      #2

      :cool:Hi, Set the debugger in your code......... and then run your project...........use keys of F10 and F11... Nisar Inamdar Always For U.

      1 Reply Last reply
      0
      • M M J Jaya Chitra

        Hai Everybody, Can any one please tell me how to debug the windows service even though i used the try catch block i couldn't find out the error point please give me solution to overcome this problem.

        Best Regards, M. J. Jaya Chitra

        O Offline
        O Offline
        originSH
        wrote on last edited by
        #3

        When developing a windows service I'll normally make it as a self contained class library. I'll then develop most of it using a console frontend and only when I'm done transfer it into a windows service and test it in place. When you have to debug a windows service you can open a new Visual Studio and use Tools >> attach to process to attach the debugger.

        M 1 Reply Last reply
        0
        • M M J Jaya Chitra

          Hai Everybody, Can any one please tell me how to debug the windows service even though i used the try catch block i couldn't find out the error point please give me solution to overcome this problem.

          Best Regards, M. J. Jaya Chitra

          H Offline
          H Offline
          Harkamal Singh
          wrote on last edited by
          #4

          http://www.ondotnet.com/pub/a/dotnet/2003/09/02/debuggingsvcs.html?page=2[^]

          M 1 Reply Last reply
          0
          • H Harkamal Singh

            http://www.ondotnet.com/pub/a/dotnet/2003/09/02/debuggingsvcs.html?page=2[^]

            M Offline
            M Offline
            M J Jaya Chitra
            wrote on last edited by
            #5

            This link tells how i can test the service but i want to debug the service

            Best Regards, M. J. Jaya Chitra

            1 Reply Last reply
            0
            • O originSH

              When developing a windows service I'll normally make it as a self contained class library. I'll then develop most of it using a console frontend and only when I'm done transfer it into a windows service and test it in place. When you have to debug a windows service you can open a new Visual Studio and use Tools >> attach to process to attach the debugger.

              M Offline
              M Offline
              M J Jaya Chitra
              wrote on last edited by
              #6

              Can you please give me a link how to perform debugging usign "Attach Process"

              Best Regards, M. J. Jaya Chitra

              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