asp cade breakpoints does not stop code execution

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

    asp cade breakpoints does not stop code execution

    Hi eb
    I set some 'Stop' statements and also visual breakpoints
    in asp code (vbscript).
    I am doing that in Microsoft Script debugger.
    Than I refresh the original page and expect execution to halt
    at these breakpoints but unfortunatly it does not..
    I had allowed script debugging in both iis home directory and in internet
    explorer.
    Also i added everyone from active directory to be members of debugging group.
    Web Server is W2k sp4 and iis 5.?
    Any idea of how to step into asp code will be appriciated!!
  • Evertjan.

    #2
    Re: asp cade breakpoints does not stop code execution

    =?Utf-8?B?UmVh?= wrote on 27 mrt 2006 in
    microsoft.publi c.inetserver.as p.general:
    [color=blue]
    > Hi eb
    > I set some 'Stop' statements and also visual breakpoints
    > in asp code (vbscript).
    > I am doing that in Microsoft Script debugger.[/color]

    ASP code runs only on a server.

    stopping the code goes with:

    <%
    response.end
    %>
    [color=blue]
    > Than I refresh the original page and expect execution to halt
    > at these breakpoints but unfortunatly it does not..[/color]

    ASP (vbscript or jscript) renders html to be sent to the client browser.
    [color=blue]
    > I had allowed script debugging in both iis home directory and in
    > internet explorer.[/color]

    ASP does not reach the browser,
    so you can only debug with the resulting html, like this breakpoint:

    <%
    response.write "<br><br>variab le a = " & a
    response.end
    %>
    [color=blue]
    > Also i added everyone from active directory to be members of debugging
    > group. Web Server is W2k sp4 and iis 5.?[/color]

    Again, that has nothing to do with asp execution(!!) of vbscript or
    jscipt.
    [color=blue]
    > Any idea of how to step into asp code will be appriciated!![/color]

    "how to step into asp code" what do you mean?

    Do you perhaps single-step the code?
    That is imposible executing in ASP.


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Anthony Jones

      #3
      Re: asp cade breakpoints does not stop code execution


      "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
      news:Xns9793C33 01367Feejj99@19 4.109.133.242.. .[color=blue]
      > =?Utf-8?B?UmVh?= wrote on 27 mrt 2006 in
      > microsoft.publi c.inetserver.as p.general:
      >[color=green]
      > > Hi eb
      > > I set some 'Stop' statements and also visual breakpoints
      > > in asp code (vbscript).
      > > I am doing that in Microsoft Script debugger.[/color]
      >
      > ASP code runs only on a server.
      >
      > stopping the code goes with:
      >
      > <%
      > response.end
      > %>
      >[/color]

      Response.End kills all further processing of an ASP script.

      Stop raises a debug event, if an active debugger is configured execution is
      halted at that point and the debugger is invoked.
      [color=blue][color=green]
      > > Than I refresh the original page and expect execution to halt
      > > at these breakpoints but unfortunatly it does not..[/color]
      >
      > ASP (vbscript or jscript) renders html to be sent to the client browser.
      >[/color]

      No kidding? The refresh is being performed to cause the page to re-execute
      in the hopes that this time the debugger will be invoked.

      [color=blue][color=green]
      > > I had allowed script debugging in both iis home directory and in
      > > internet explorer.[/color]
      >
      > ASP does not reach the browser,
      > so you can only debug with the resulting html, like this breakpoint:
      >
      > <%
      > response.write "<br><br>variab le a = " & a
      > response.end
      > %>
      >[/color]

      The above is not a breakpoint and does not cause the client to invoke a
      debugger.
      [color=blue][color=green]
      > > Also i added everyone from active directory to be members of debugging
      > > group. Web Server is W2k sp4 and iis 5.?[/color]
      >
      > Again, that has nothing to do with asp execution(!!) of vbscript or
      > jscipt.
      >[/color]

      Yes it does. To perform debugging on the server (including the debugging of
      VBScripts running in ASP) the user under which the debugger runs often needs
      to be a member of the Debugger Users group.
      [color=blue][color=green]
      > > Any idea of how to step into asp code will be appriciated!![/color]
      >
      > "how to step into asp code" what do you mean?
      >
      > Do you perhaps single-step the code?
      > That is imposible executing in ASP.
      >[/color]

      Not it isn't. It is possible to both locally and remotely debug ASP.
      However remote debugging is a real faf and flaky at best.

      There are a couple of options.

      Simplest one is to Terminal Service on to the ASP server and run the
      debugger client on the server itself.

      Of course this isn't desirable (or possible) if your site is hosted by a
      third party or if your pages are in live use.

      The other option is to duplicate the site on a test server or locally in XP
      IIS.5.1 and do all your debugging/testing there.

      Anthony.


      Comment

      • Evertjan.

        #4
        Re: asp cade breakpoints does not stop code execution

        Anthony Jones wrote on 28 mrt 2006 in
        microsoft.publi c.inetserver.as p.general:
        [color=blue][color=green]
        >> <%
        >> response.write "<br><br>variab le a = " & a
        >> response.end
        >> %>[/color]
        >
        > The above is not a breakpoint and does not cause the client to invoke a
        > debugger.[/color]

        If that is your definition of a breakpoint, you are right,
        but the invocation of a debugger is not my primary idea of breakpoint and
        debugging.

        My idea:
        Debugging is the act of identifying and getting rid of bugs.
        On an interactive site this can best be done by human interaction.

        A breakpoint can, but does not have to have a continue function to be a
        breakpoint. [In a loop a breakpoint can be usefull, but as pressing
        continue 10000 times is not my idea of fun, I usually do not really break
        in a long loop, bur put in a temporary registration subroutine.]

        Of course you have a right to your idea's and definitions.
        I like mine better.


        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • Anthony Jones

          #5
          Re: asp cade breakpoints does not stop code execution


          "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
          news:Xns9794A6C 6C3477eejj99@19 4.109.133.242.. .[color=blue]
          > Anthony Jones wrote on 28 mrt 2006 in
          > microsoft.publi c.inetserver.as p.general:
          >[color=green][color=darkred]
          > >> <%
          > >> response.write "<br><br>variab le a = " & a
          > >> response.end
          > >> %>[/color]
          > >
          > > The above is not a breakpoint and does not cause the client to invoke a
          > > debugger.[/color]
          >
          > If that is your definition of a breakpoint, you are right,
          > but the invocation of a debugger is not my primary idea of breakpoint and
          > debugging.
          >
          > My idea:
          > Debugging is the act of identifying and getting rid of bugs.
          > On an interactive site this can best be done by human interaction.
          >
          > A breakpoint can, but does not have to have a continue function to be a
          > breakpoint. [In a loop a breakpoint can be usefull, but as pressing
          > continue 10000 times is not my idea of fun, I usually do not really break
          > in a long loop, bur put in a temporary registration subroutine.]
          >
          > Of course you have a right to your idea's and definitions.
          > I like mine better.
          >
          >[/color]


          Ask a hundred professional developers 'What is a breakpoint?'

          How many will give answers matching mine and how many will be closer to
          yours?

          Go ahead and like yours but keep it to yourself. In a public space such as
          this group it would be better if we used terms as they are general
          understood by the majority. Especially if we believe we are in a position
          to be giving advice.





          Comment

          • Evertjan.

            #6
            Re: asp cade breakpoints does not stop code execution

            Anthony Jones wrote on 28 mrt 2006 in
            microsoft.publi c.inetserver.as p.general:
            [color=blue]
            > Ask a hundred professional developers 'What is a breakpoint?'[/color]

            Oh, "profession al developers", do they have priority on a usenet group?
            [color=blue]
            > How many will give answers matching mine and how many will be closer
            > to yours?[/color]

            I doubt that, ... but go ahead and count if you think you must.
            [color=blue]
            > Go ahead and like yours but keep it to yourself.[/color]

            You seem not to understand usenet.
            Disagreeing and then ordering the other party to shut up ...
            [color=blue]
            > In a public space
            > such as this group it would be better if we used terms as they are
            > general understood by the majority.[/color]

            .... because you insist that your own idea is the mayority, wether or not
            that is true, will only make you the laughing stock of usenet.
            [color=blue]
            > Especially if we believe we are in a position to be giving advice.[/color]

            Do you? And why are you suddenly plural?
            Are there more Joneses thinking like you?


            --
            Evertjan.
            The Netherlands.
            (Please change the x'es to dots in my emailaddress)

            Comment

            • Mike Brind

              #7
              Re: asp cade breakpoints does not stop code execution


              Anthony Jones wrote:[color=blue]
              > "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
              > news:Xns9794A6C 6C3477eejj99@19 4.109.133.242.. .[color=green]
              > > Anthony Jones wrote on 28 mrt 2006 in
              > > microsoft.publi c.inetserver.as p.general:
              > >[color=darkred]
              > > >> <%
              > > >> response.write "<br><br>variab le a = " & a
              > > >> response.end
              > > >> %>
              > > >
              > > > The above is not a breakpoint and does not cause the client to invoke a
              > > > debugger.[/color]
              > >
              > > If that is your definition of a breakpoint, you are right,
              > > but the invocation of a debugger is not my primary idea of breakpoint and
              > > debugging.
              > >
              > > My idea:
              > > Debugging is the act of identifying and getting rid of bugs.
              > > On an interactive site this can best be done by human interaction.
              > >
              > > A breakpoint can, but does not have to have a continue function to be a
              > > breakpoint. [In a loop a breakpoint can be usefull, but as pressing
              > > continue 10000 times is not my idea of fun, I usually do not really break
              > > in a long loop, bur put in a temporary registration subroutine.]
              > >
              > > Of course you have a right to your idea's and definitions.
              > > I like mine better.
              > >
              > >[/color]
              >
              >
              > Ask a hundred professional developers 'What is a breakpoint?'
              >
              > How many will give answers matching mine and how many will be closer to
              > yours?
              >
              > Go ahead and like yours but keep it to yourself.[/color]


              If Evertjan had done that, this discussion would never have taken
              place. Personally, I found the points raised interesting and useful,
              FWIW.

              --
              Mike Brind

              Comment

              • Anthony Jones

                #8
                Re: asp cade breakpoints does not stop code execution


                "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
                news:Xns9794BDC DAB888eejj99@19 4.109.133.242.. .[color=blue]
                > Anthony Jones wrote on 28 mrt 2006 in
                > microsoft.publi c.inetserver.as p.general:
                >[color=green]
                > > Ask a hundred professional developers 'What is a breakpoint?'[/color]
                >
                > Oh, "profession al developers", do they have priority on a usenet group?
                >[color=green]
                > > How many will give answers matching mine and how many will be closer
                > > to yours?[/color]
                >
                > I doubt that, ... but go ahead and count if you think you must.
                >[color=green]
                > > Go ahead and like yours but keep it to yourself.[/color]
                >
                > You seem not to understand usenet.
                > Disagreeing and then ordering the other party to shut up ...
                >[color=green]
                > > In a public space
                > > such as this group it would be better if we used terms as they are
                > > general understood by the majority.[/color]
                >
                > ... because you insist that your own idea is the mayority, wether or not
                > that is true, will only make you the laughing stock of usenet.
                >[color=green]
                > > Especially if we believe we are in a position to be giving advice.[/color]
                >
                > Do you? And why are you suddenly plural?
                > Are there more Joneses thinking like you?
                >
                >[/color]

                Evertjan,

                I apologise.

                Anthony. :)
                [color=blue]
                > --
                > Evertjan.
                > The Netherlands.
                > (Please change the x'es to dots in my emailaddress)[/color]


                Comment

                • Evertjan.

                  #9
                  Re: asp cade breakpoints does not stop code execution

                  Anthony Jones wrote on 29 mrt 2006 in
                  microsoft.publi c.inetserver.as p.general:
                  [color=blue][color=green][color=darkred]
                  >> > Especially if we believe we are in a position to be giving advice.[/color]
                  >>
                  >> Do you? And why are you suddenly plural?
                  >> Are there more Joneses thinking like you?
                  >>
                  >>[/color]
                  >
                  > Evertjan,
                  >
                  > I apologise.
                  >
                  > Anthony. :)[/color]

                  Anthony, I love a good fight, and this was one. ;-}

                  Theads consisting of:
                  [color=blue][color=green][color=darkred]
                  >>> I agree[/color][/color]
                  > I agree[/color]
                  I agree

                  are not my cup of tea.


                  --
                  Evertjan.
                  The Netherlands.
                  (Please change the x'es to dots in my emailaddress)

                  Comment

                  • Evertjan.

                    #10
                    Re: asp cade breakpoints does not stop code execution

                    microsoft.publi c.inetserver.as p.general:
                    Hi eb
                    Who are you replying to, without quoting?
                    I set some 'Stop' statements and also visual breakpoints
                    in asp code (vbscript).
                    And where would you like to see those "visual" breakpoints?
                    On the server display?
                    I am doing that in Microsoft Script debugger.
                    Than I refresh the original page and expect execution to halt
                    at these breakpoints but unfortunatly it does not..
                    ASP does not have breakpoints in your sense, since asp only sends rendered
                    html to the client. ASP has no display by itself.
                    I had allowed script debugging in both iis home directory and in
                    internet explorer.
                    The internet explorer should and does not receive asp code.

                    [...]
                    Any idea of how to step into asp code will be appriciated!!
                    You cannot and shuld not, see above.

                    --
                    Evertjan.
                    The Netherlands.
                    (Please change the x'es to dots in my emailaddress)

                    Comment

                    Working...