Debugging Javascript in IE6

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Debugging Javascript in IE6 - Presentation Transcript

    1. Getting started - Open Tools > Internet Options > Advanced - Enable the “script debugging” option - Restart IE Now when IE6 runs into a javascript problem it will prompt you to debug the issue with Visual Studio. You can also use the free Express Edition
    2. Debugging Just seeing the cause of the problem highlighted is sometimes enough for us to work out what has gone wrong. In more complex cases we can use Visual Studio's debugging windows to help us get more information and diagnose the problem. The windows can be accessed via the Debug > Windows menu.
    3. Locals Window Shows us all the local variables, their type, and their value. Keyboard shortcut: Ctrl+D, L
    4. Call Stack Window Shows the current call stack, and allows us to step back through the stack. Keyboard shortcut: Ctrl+D, C
    5. Immediate Window By far the most powerful debugging tool that Visual Studio has to offer, allowing us to evaluate javascript expressions on the fly. We can inspect global variables, assign values to any variable within the current scope, and evaluate any expression we want! Keyboard shortcut: Ctrl+D, I
    6. Immediate Window Trick The immediate window displays object values but doesn't display anything for functions. Trick: “alert(function_variable)” will display the function's code in an alert message! Use “alert(argument.callee)” to display the code of the calling function.
    7. More Information These slides are based on a blog post available at Six Revisions, which includes far more detail and lots of examples. Also take a look at www.coderholic.com. Feedback or questions: ben@coderholic.com

    + bendowlingbendowling, 6 months ago

    custom

    767 views, 1 favs, 2 embeds more stats

    Microsoft’s Internet Explorer 6 is almost univers more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 767
      • 726 on SlideShare
      • 41 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 2
    Most viewed embeds
    • 40 views on http://www.coderholic.com
    • 1 views on http://feeds.feedburner.com

    more

    All embeds
    • 40 views on http://www.coderholic.com
    • 1 views on http://feeds.feedburner.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories