javascript debugger for MIE 6.0

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

    #1

    javascript debugger for MIE 6.0

    I am working on a piece of javaScript code and using MIE 6.0. I have and
    error and I would like to use a debugger to locate the error. Is there a
    debugger for MIE? How do I turn the debugger on for MIE? Where can I
    locate the debugger for MEI 6.0? I am using WIN 98 operating system.


  • Michael Winter

    #2
    Re: javascript debugger for MIE 6.0

    On Wed, 18 Feb 2004 02:06:38 GMT, alonzo <lepue1@aol.com > wrote:
    [color=blue]
    > I am working on a piece of javaScript code and using MIE 6.0. I have and
    > error and I would like to use a debugger to locate the error. Is there a
    > debugger for MIE? How do I turn the debugger on for MIE? Where can I
    > locate the debugger for MEI 6.0? I am using WIN 98 operating system.[/color]

    Script debugging with IE (any version) is quite difficult to do. It tends
    not to indicate where the error occurred properly, and the messages it
    gives are vague.

    To access script debugging, open "Internet Settings" from the Control
    Panel, click the "Advanced" tab and make sure that the option "Disable
    script debugging" under "Browsing" is unchecked. When an error occurs, a
    yellow warning icon will appear in the bottom left part of the status bar.
    Double click this to display a pop-up, then click the "Details" button for
    the information.

    If you have the option, use Opera, Netscape or Mozilla (all free) to debug
    your pages. You're more likely to catch errors (they are more
    standards-compliant), and they show much more detailed information. For
    Opera, the JavaScript debugging console is under "Window" > "Special" >
    "JavaScript console". With Netscape and Mozilla, the console is under
    "Tools" > "Web Development" > "JavaScript Console". Netscape and Mozilla
    also provide other tools for page debugging.

    Mike

    --
    Michael Winter
    M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

    Comment

    • Douglas Crockford

      #3
      Re: javascript debugger for MIE 6.0

      > I am working on a piece of javaScript code and using MIE 6.0. I have and[color=blue]
      > error and I would like to use a debugger to locate the error. Is there a
      > debugger for MIE? How do I turn the debugger on for MIE? Where can I
      > locate the debugger for MEI 6.0? I am using WIN 98 operating system.[/color]

      Microsoft's Visual Studio contains a very good JavaScript debugger. I
      use it every day. There is a free version available at
      msdn.microsoft. com, but it is crippled. You might be able to find and
      old, cheap copy of Visual J++ 6 or Interdev 6.

      Comment

      • kaeli

        #4
        Re: javascript debugger for MIE 6.0

        In article <OMzYb.1952$J84 .1878@fe1.texas .rr.com>, lepue1@aol.com
        enlightened us with...[color=blue]
        > I am working on a piece of javaScript code and using MIE 6.0. I have and
        > error and I would like to use a debugger to locate the error. Is there a
        > debugger for MIE? How do I turn the debugger on for MIE? Where can I
        > locate the debugger for MEI 6.0? I am using WIN 98 operating system.
        >
        >
        >[/color]

        There is a debugger for download at microsoft. You need to set IE to
        display errors and to offer the debug option after you install it.

        Big link:
        http://www.microsoft.com/downloads/d...E606E71F-BA7F-
        471E-A57D-F2216D81EC3D&di splaylang=en

        --
        --
        ~kaeli~
        A plateau is a high form of flattery.



        Comment

        • kaeli

          #5
          Re: javascript debugger for MIE 6.0

          In article <opr3j895a55vkl cq@news-text.blueyonder .co.uk>,
          M.Winter@blueyo nder.co.invalid enlightened us with...[color=blue]
          >
          > Script debugging with IE (any version) is quite difficult to do.[/color]

          No it's not. You just need their debugger for anything useful.

          http://www.microsoft.com/downloads/d...E606E71F-BA7F-
          471E-A57D-F2216D81EC3D&di splaylang=en

          --
          --
          ~kaeli~
          A plateau is a high form of flattery.



          Comment

          • Michael Winter

            #6
            Re: javascript debugger for MIE 6.0

            On Wed, 18 Feb 2004 08:37:47 -0600, kaeli <tiny_one@NOSPA M.comcast.net>
            wrote:
            [color=blue]
            > In article <opr3j895a55vkl cq@news-text.blueyonder .co.uk>,
            > M.Winter@blueyo nder.co.invalid enlightened us with...
            >[color=green]
            >> Script debugging with IE (any version) is quite difficult to do.[/color]
            >
            > No it's not. You just need their debugger for anything useful.[/color]

            Hopefully, they'll integrate it into the next release of IE. It would
            certainly make a lot of sense: I expect that *relatively* few people know
            it's available.

            Mike

            --
            Michael Winter
            M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

            Comment

            • Alan Zhong

              #7
              Re: javascript debugger for MIE 6.0

              I am sorry to post a message here not related to the first topic.

              I wonder what other method I can use to replace javascript as the
              client side scripting. I am not using ASP.NET for the server side, and
              try to use javascript for the client side. Is it a good combo and are
              they working well with each other? sometimes i am confused if i should
              use the server or the client to program a task.

              Any opinions are appreciated.


              Michael Winter <M.Winter@bluey onder.co.invali d> wrote in message news:<opr3j895a 55vklcq@news-text.blueyonder .co.uk>...[color=blue]
              > On Wed, 18 Feb 2004 02:06:38 GMT, alonzo <lepue1@aol.com > wrote:
              >[color=green]
              > > I am working on a piece of javaScript code and using MIE 6.0. I have and
              > > error and I would like to use a debugger to locate the error. Is there a
              > > debugger for MIE? How do I turn the debugger on for MIE? Where can I
              > > locate the debugger for MEI 6.0? I am using WIN 98 operating system.[/color]
              >
              > Script debugging with IE (any version) is quite difficult to do. It tends
              > not to indicate where the error occurred properly, and the messages it
              > gives are vague.
              >
              > To access script debugging, open "Internet Settings" from the Control
              > Panel, click the "Advanced" tab and make sure that the option "Disable
              > script debugging" under "Browsing" is unchecked. When an error occurs, a
              > yellow warning icon will appear in the bottom left part of the status bar.
              > Double click this to display a pop-up, then click the "Details" button for
              > the information.
              >
              > If you have the option, use Opera, Netscape or Mozilla (all free) to debug
              > your pages. You're more likely to catch errors (they are more
              > standards-compliant), and they show much more detailed information. For
              > Opera, the JavaScript debugging console is under "Window" > "Special" >
              > "JavaScript console". With Netscape and Mozilla, the console is under
              > "Tools" > "Web Development" > "JavaScript Console". Netscape and Mozilla
              > also provide other tools for page debugging.
              >
              > Mike[/color]

              Comment

              • kaeli

                #8
                Re: javascript debugger for MIE 6.0

                In article <b09c98a8.04021 81012.7a6df0bf@ posting.google. com>,
                alanchinese@yah oo.com enlightened us with...[color=blue]
                > I am sorry to post a message here not related to the first topic.
                >[/color]

                Then why didn't you start a new thread? ;)
                [color=blue]
                > I wonder what other method I can use to replace javascript as the
                > client side scripting.[/color]

                Unless all your users have IE, there isn't a replacement for client-side
                javascript. By that I mean that only IE supports other client-side
                scripting languages. IE supports VBScript. Other browsers do not.
                If you meant replacing client-side scripting with server-side scripting,
                that depends on the task.
                [color=blue]
                > I am not using ASP.NET for the server side,[/color]

                You're NOT using it?
                What ARE you using, if anything, for server-side scripting?
                [color=blue]
                > and
                > try to use javascript for the client side. Is it a good combo and are
                > they working well with each other?[/color]

                There is no connection between the server-side scripting language of
                choice and javascript. One runs on the server. The client never even
                sees it. The client code never sees the server code. It doesn't care
                what generated the page. It sees plain html (or css, javascript, etc)
                text.

                (note: runat=server is not all that common and the client doesn't do
                anything with it besides make a request to the server to get the block
                processed)

                client request -> server -> server gets page and runs it through
                processing if needed -> client gets page -> client-side script runs

                The client can't even tell that the page was generated via server-side
                scripting, much less what language did it. YOU can tell because it is
                convention to use .asp, .php, etc extensions, but those are certainly
                not a requirement. If I configured my server a certain way, I could have
                PHP pages that have a .html extension. You'd have no idea they were PHP
                pages.
                [color=blue]
                > sometimes i am confused if i should
                > use the server or the client to program a task.[/color]

                Unless the script deals with changing existing content on the client or
                depends on the client for something, there is no need to use client-side
                scripting. Your server is much faster, more than likely, than someone's
                browser. If you have a server-side scripting capability, use it.

                The server knows nothing about the client, thus, you cannot use server-
                side scripting for anything that *dynamically* (that is, it doesn't post
                back to the server) changes client content (DHTML stuff like moving
                layers around or client-side validation) or anything that relies on
                client information (positioning content based on resolution, etc).

                There is a difference between dynamically generating html, which is done
                server-side most commonly (like generating content based on DB queries),
                and dynamic html (DHTML), which usually refers to things moving or
                changing on the page without server interaction.

                Note that javascript cannot by itself talk to the server. ActiveX or COM
                can, but just your "normal" garden-variety cross-browser javascript
                cannot.

                --
                --
                ~kaeli~
                No one is listening until you make a mistake.



                Comment

                • Robert

                  #9
                  Re: javascript debugger for MIE 6.0

                  For a simplistic way of "printing" out debug information that work in
                  HTML & Javascript, see my article:


                  Re: Debug - Your own console
                  & be sure to use the second article.

                  Robert

                  Comment

                  • Thomas 'PointedEars' Lahn

                    #10
                    Re: javascript debugger for MIE 6.0

                    kaeli wrote:
                    [color=blue]
                    > The client can't even tell that the page was generated via server-side
                    > scripting, much less what language did it. YOU can tell because it is
                    > convention to use .asp, .php, etc extensions, but those are certainly
                    > not a requirement. If I configured my server a certain way, I could have
                    > PHP pages that have a .html extension. You'd have no idea they were PHP
                    > pages.[/color]

                    True, see for example <http://pointedears.de. vu/mozilla/nightly/buggy>.
                    The best way to access resources is not what you call "convention " but
                    to omit any "extensions " (i.e. suffixes) in URIs that may indicate the
                    technology used since a) such information could be exploited, attacking
                    known security vulnerabilities and b) "Cool URIs don't change", even if
                    the server-side technology changes:

                    <http://www.w3.org/QA/Tips/uri-choose>


                    PointedEars

                    Comment

                    Working...