You must Sign In to post a response.
  • Category: Windows

    How to debug the windows services

    Hi all,

    can you please tell me how to debug the windows services in .NET

    I have installed it on my system thr' command prompt and run it into the services window
    as following

    start-->run-->services.msc--> then start the service

    then attach the service in VS like

    in VS-->Debug-->processes-->attach services

    but I a getting following error

    msgbox will display this msg

    "there is no source code available for current location "

    can any one please tell me


  • #617605
    You cannot debug the service directly, instead you can debug the code you have in your local.

    You can only start or stop the service once you installed it to run across.

    Please mark this as Answer, if this helps

    Alwyn Duraisingh.M 
    << Database Administrator >>
    Jesus saves! The rest of us better make backups...

  • #617653
    [Response removed by Admin. Read forum policies.]

  • #617715
    Hi karthikeyan ,

    I have done the same but still I am facing problem,the serice is getting attach but not showing the debugger.

    Please rply me if you have any Idea

  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.