debug in real time

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

    #1

    debug in real time

    is there a program that allows me to debug a webiste written in c# or vb in
    real time?
    It would provide me with the list of resources that the website is using.
    (varaibles name, type, size, value...)
    ie. see what variables are declared and what are the assign values as people
    visit the website?

    this would really help me to optimize my code.

    thanks,
    Aaron


  • Ken Cox [Microsoft MVP]

    #2
    Re: debug in real time

    You can do this in Visual Studio .NET but debugging takes complete control
    of ASP.NET. In other words, not a nice thing to do on a production site -
    you'd be the only user.

    Anyway, you'll need to attach to the process on the remote computer. (See
    Debug > Processes > Attach)

    For a production site you'd want to write trace data into an event log and
    then analyze the results.

    http://msdn.microsoft.com/library/de...classtopic.asp

    Ken

    "Aaron" <kuya789@yahoo. com> wrote in message
    news:usNmqMJiEH A.1384@TK2MSFTN GP10.phx.gbl...[color=blue]
    > is there a program that allows me to debug a webiste written in c# or vb
    > in real time?
    > It would provide me with the list of resources that the website is using.
    > (varaibles name, type, size, value...)
    > ie. see what variables are declared and what are the assign values as
    > people visit the website?
    >
    > this would really help me to optimize my code.
    >
    > thanks,
    > Aaron
    >[/color]

    Comment

    • Lucas Tam

      #3
      Re: debug in real time

      "Aaron" <kuya789@yahoo. com> wrote in
      news:usNmqMJiEH A.1384@TK2MSFTN GP10.phx.gbl:
      [color=blue]
      > is there a program that allows me to debug a webiste written in c# or
      > vb in real time?[/color]

      Visual Studios .NET will allow you to do this.

      --
      Lucas Tam (REMOVEnntp@rog ers.com)
      Please delete "REMOVE" from the e-mail address when replying.
      http://members.ebay.com/aboutme/coolspot18/

      Comment

      • Scott Allen

        #4
        Re: debug in real time

        Hi Aaron:

        As Ken pointed out running the debugger on a production site is not a
        nice thing to do. Instead of looking at the varialbes of individual
        users, consider making measurements of aggregate statistics with
        perfmon.

        There is some good, detailed information in the following documents:

        Measuring .NET Application Performance
        http://msdn.microsoft.com/library/de...netchapt15.asp

        How To: Use Custom Performance Counters from ASP.NET
        http://msdn.microsoft.com/library/de...nethowto12.asp

        Improving ASP.NET Performance
        http://msdn.microsoft.com/library/de...nethowto12.asp

        The rest of the guide is a good read too.

        --
        Scott





        On Sun, 22 Aug 2004 14:58:46 -0700, "Aaron" <kuya789@yahoo. com> wrote:
        [color=blue]
        >is there a program that allows me to debug a webiste written in c# or vb in
        >real time?
        >It would provide me with the list of resources that the website is using.
        >(varaibles name, type, size, value...)
        >ie. see what variables are declared and what are the assign values as people
        >visit the website?
        >
        >this would really help me to optimize my code.
        >
        >thanks,
        >Aaron
        >[/color]

        Comment

        Working...