Remote Debugging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rick

    Remote Debugging

    We have a web site that was built as an ASP.Net Web Site, I am unable to
    remote debug, when build ing the web site there is not a dll or PDB file
    generated. I can debug on my local machine but unable to attach to the
    process when running from the web server.

    Can someone tell me how to remote debug an ASP.Net Website that does not
    genate a dll or PDB file?

    Thanks in advance!
    Rick


  • Alex Meleta

    #2
    Re: Remote Debugging

    Hi Rick,

    Have you ever dialing with the Remote Debugging Tools located at C:\ProgramData\ Microsoft\Windo ws\Start
    Menu\Programs\M icrosoft Visual Studio 2005\8\Visual Studio Tools? Briefly,
    you can install them at remote host, configure and use just as local service.
    These link helps you to config: http://msdn.microsoft.com/en-us/library/xf8k2h6a.aspx
    and http://support.microsoft.com/kb/910448/en-us
    By using the tools you can connect directly to the aspnet process on remote
    host.

    But, anyway, consider a production deployment. You cannot install this stuff
    there. So, that's better to have a log fairly enough for understanding the
    bug by text description (EventLog, log4net and so on).

    Regards, Alex



    RWe have a web site that was built as an ASP.Net Web Site, I am unable
    Rto remote debug, when build ing the web site there is not a dll or
    RPDB file generated. I can debug on my local machine but unable to
    Rattach to the process when running from the web server.
    R>
    RCan someone tell me how to remote debug an ASP.Net Website that does
    Rnot genate a dll or PDB file?
    R>
    RThanks in advance!
    RRick


    Comment

    • Rick

      #3
      Re: Remote Debugging

      Thanks Alex! I'll look into it. I went back to the old days and used ASP
      debugging by putting response.writes in the function that was failing to
      narrow down the issue I was having, I was able to figure out the issue, it
      turned out to be a machine.config problem.

      Thanks,
      Rick

      "Alex Meleta" <ameleta@gmail. comwrote in message
      news:2013d8257d 7f08ca88f20f6fa 317@msnews.micr osoft.com...
      Hi Rick,
      >
      Have you ever dialing with the Remote Debugging Tools located at
      C:\ProgramData\ Microsoft\Windo ws\Start Menu\Programs\M icrosoft Visual
      Studio 2005\8\Visual Studio Tools? Briefly, you can install them at remote
      host, configure and use just as local service. These link helps you to
      config: http://msdn.microsoft.com/en-us/library/xf8k2h6a.aspx and

      By using the tools you can connect directly to the aspnet process on
      remote host.
      But, anyway, consider a production deployment. You cannot install this
      stuff there. So, that's better to have a log fairly enough for
      understanding the bug by text description (EventLog, log4net and so on).
      >
      Regards, Alex
      >
      >
      RWe have a web site that was built as an ASP.Net Web Site, I am unable
      Rto remote debug, when build ing the web site there is not a dll or
      RPDB file generated. I can debug on my local machine but unable to
      Rattach to the process when running from the web server.
      RRCan someone tell me how to remote debug an ASP.Net Website that does
      Rnot genate a dll or PDB file?
      RRThanks in advance!
      RRick
      >
      >

      Comment

      • Steven Cheng [MSFT]

        #4
        Re: Remote Debugging

        Hi Rick,

        Yes, for remote debugging, you need to start the remote debugger monitor at
        the target server (which running your ASP.NET application). You can install
        only the remote debugging tools instead of the entire visual studio.

        BTW, as for PDB of the asp.net application, I'm wondering have you
        performed precompilation of your ASP.NET web site application?
        Precompilation should be able to produce a central assembly and the PDB
        file. If you use dynamic compilation(did not perform precompile), the pages
        are dynamically compiled at runtime and the pdb files are also generated
        with the dynamic page classes (in the Temporary ASP.NET folder).

        here is a good article which mentioned details about the compilation model
        and the debugging symbols of ASP.NET 2.0 application:

        #Debug and Release Builds in ASP.NET 2.0


        Hope this also helps some.

        Sincerely,

        Steven Cheng

        Microsoft MSDN Online Support Lead


        Delighting our customers is our #1 priority. We welcome your comments and
        suggestions about how we can improve the support we provide to you. Please
        feel free to let my manager know what you think of the level of service
        provided. You can send feedback directly to my manager at:
        msdnmg@microsof t.com.

        =============== =============== =============== =====
        Get notification to my posts through email? Please refer to
        Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

        ications.

        Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
        where an initial response from the community or a Microsoft Support
        Engineer within 1 business day is acceptable. Please note that each follow
        up response may take approximately 2 business days as the support
        professional working with you may need further investigation to reach the
        most efficient resolution. The offering is not appropriate for situations
        that require urgent, real-time or phone-based interactions or complex
        project analysis and dump analysis issues. Issues of this nature are best
        handled working with a dedicated Microsoft Support Engineer by contacting
        Microsoft Customer Support Services (CSS) at
        http://msdn.microsoft.com/subscripti...t/default.aspx.
        =============== =============== =============== =====
        This posting is provided "AS IS" with no warranties, and confers no rights.
        --------------------
        >Reply-To: "Rick" <rfemmer@newsgr oups.nospam>
        >From: "Rick" <rfemmer@newsgr oups.nospam>
        >References: <#3cjeIquIHA.52 88@TK2MSFTNGP06 .phx.gbl>
        <2013d8257d7f08 ca88f20f6fa317@ msnews.microsof t.com>
        >Subject: Re: Remote Debugging
        >Date: Tue, 20 May 2008 16:32:59 -0500
        >
        >Thanks Alex! I'll look into it. I went back to the old days and used ASP
        >debugging by putting response.writes in the function that was failing to
        >narrow down the issue I was having, I was able to figure out the issue,
        it
        >turned out to be a machine.config problem.
        >
        >Thanks,
        >Rick
        >
        >"Alex Meleta" <ameleta@gmail. comwrote in message
        >news:2013d8257 d7f08ca88f20f6f a317@msnews.mic rosoft.com...
        >Hi Rick,
        >>
        >Have you ever dialing with the Remote Debugging Tools located at
        >C:\ProgramData \Microsoft\Wind ows\Start Menu\Programs\M icrosoft Visual
        >Studio 2005\8\Visual Studio Tools? Briefly, you can install them at
        remote
        >host, configure and use just as local service. These link helps you to
        >config: http://msdn.microsoft.com/en-us/library/xf8k2h6a.aspx and
        >http://support.microsoft.com/kb/910448/en-us
        >By using the tools you can connect directly to the aspnet process on
        >remote host.
        >But, anyway, consider a production deployment. You cannot install this
        >stuff there. So, that's better to have a log fairly enough for
        >understandin g the bug by text description (EventLog, log4net and so on).
        >>
        >Regards, Alex
        >>
        >>
        >RWe have a web site that was built as an ASP.Net Web Site, I am unable
        >Rto remote debug, when build ing the web site there is not a dll or
        >RPDB file generated. I can debug on my local machine but unable to
        >Rattach to the process when running from the web server.
        >RRCan someone tell me how to remote debug an ASP.Net Website that
        does
        >Rnot genate a dll or PDB file?
        >RRThanks in advance!
        >RRick
        >>
        >>
        >
        >
        >

        Comment

        Working...