Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How can I debug javascript?

    I downloaded the Microsoft Javascript Debugger, or whatever it's called. I installed it, and it told me to restart. I was given the impression that it would alter IE's javascript error handling in some way to allow me to view the variables, step over, step in, step out, and such. But, it looks like nothing has changed in IE. Anyone else successfully gotten this MS debugger to work?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Don't waste your time on those Microsoft tools,IE sucks at JavaScript.Use Mozilla,which comes with a JavaScript console (displays detailed/precise information about the errors and warnings in your code) and a JavaScript debugger (stepping trough the code,watching variables etc.).Theres also the DOM inspector,which lets you view the current DOM tree of the page and all the properties of each node.
    You can find these tools in the Tools>Web Development menu.
    Last edited by Bosko; 12-17-2002 at 03:17 PM.

  • #3
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Woah, it worked! And I fixed my problem.

    I finally figured out how to use that silly Mozilla debugger. The UI is somewhat non-intuitive, but once I figured it out, I was able to plainly see what was wrong with my code. My code was setting the "visiblity" property rather than the "visibility" property. I wish there was some way to get warnings when setting non-existent properties of objects.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Remember though ... mozilla's debugger can only help you debug in Mozilla ...


    IE does have built-in debugging; in the advanced options you check "Display a notification for every script error" and uncheck "Disable script debugging"

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    joelr,have you looked in the JavaScript console,it should show all errors/warnings (make sure to turn on Strict Warnings)?

    brothercake,I suppose IE's debugger can debug code in Mozilla,Opera and Konqueror?
    The JavaScript console/debugger are also 'built' in,all the errors/warnings are shown in the console,but you can choose what the debugger should do in case of an error in the debugger preferences.

  • #6
    New Coder
    Join Date
    Nov 2002
    Location
    philippines
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hi joelr

    can you please help me, where did you download mozilla debuger.

    i use the visual studio interdev version 6. its very hard it debuger wont works


    thanks

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: hi joelr

    Originally posted by basic3572002
    can you please help me, where did you download mozilla debuger.

    i use the visual studio interdev version 6. its very hard it debuger wont works


    thanks
    It comes with Mozilla => http://www.mozilla.org

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ugh, that visual interdev debugger isn't even as helpful as using Netscape 4, regarding javascript... which is no surprise.

    BTW, I quit using InterDev after about 2 weeks of learning ASP since I thought it was completely unwieldy as an IDE... I'm starting to think the same thing about ASP.NET and Visual Studio .NET as well...

    Are you an ASP programmer, or what?
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •