JP
Upload

This video is unavailable.

Become a Javascript Console Power-User

GoogleDevelopers GoogleDevelopers·2,135 videos
344,531

Subscription preferences

Loading...

Loading icon Loading...

Working...
62,365
Like     Dislike 13

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like GoogleDevelopers's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike GoogleDevelopers's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add GoogleDevelopers's video to your playlist.

Uploaded on Sep 28, 2011

Level up on the Javascript console in the Chrome DevTools. Look at XHR requests, learn console helper functions to monitor events or explore objects better. Paul Irish from the Chrome team gives you a rundown.

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Top Comments

  • Piotr Zalewa

    Just a warning about using /show/ - please do not share or click on links with /show/ on jsfiddle.net, their undocummented and I will block them sooner or later.

    For accessing unframed result please use draft feature (read docs about it).

    For sharing result use an embedded link with the result panel ( add /embedded/result/ to the URL, check the embedded docs).

    Enjoy using jsFiddle

    · 16

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Piotr Zalewa's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Piotr Zalewa's comment.
  • Richard Bronosky

    My notes on this video part 2 of 2

    3:05 $0 - references the object selected in the elements tab

    3:18 $​$ - convenience wrapper around document.querySelectorAll.appl­y(document, arguments)

    3:44 monitor(el) - monitors all events on a dom element

    4:14 monitor(el, 'key|mouse') - monitors key or mouse events on a dom element

    4:35 keys(obj) - shows all the keys of an object

    4:52 values(obj) - shows all the values of an object

    5:12 copy(obj) - copies to your clipboard

    …stuff for other browsers

    · 4

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Richard Bronosky's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Richard Bronosky's comment.
    in reply to Richard Bronosky (Show the comment)

All Comments (50)

Sign in now to post a comment!
  • Martin Charles

    Hj

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Martin Charles's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Martin Charles's comment.
  • Martin Charles

    Hj

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Martin Charles's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Martin Charles's comment.
  • Richard Bronosky

    My notes on this video part 1 of 2

    0:48 Log XMLH𝚝𝚝pRequests - console context menu option to log URL of all finished XHR loads

    1:02 Preserve Log upon Navigation - console context menu option to prevent the log from clearing

    1:18 console.time('name');console.t­imeEnd('name') - convenience methods for timing

    1:44 console.dir(obj) || dir(obj) - "DOM level" view similar to the "Tree level" view of console.log(object)

    2:42 inspect(el) - locates a dom object in the elements tab

    · 3

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Richard Bronosky's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Richard Bronosky's comment.
  • Richard Bronosky

    One thing that Paul Irish didn't mention here was console.dirxml

    Compare these in the console for this very page...

    // Replace f with double dollar sign - "Thanks YouTube!"

    console.log(f('.comment'))

    console.dir(f('.comment'))

    console.dirxml(f('.comment'))

    The last one is the same as doing a simple:

    f('.comment')

    ...except that you can use it in the middle of a really complex jQuery.each loop for debugging!

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Richard Bronosky's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Richard Bronosky's comment.
  • Remco Peggeman

    It can be done using Facebook Query Language, Google FQL for more info.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Remco Peggeman's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Remco Peggeman's comment.
    in reply to Geovani Gonzalez (Show the comment)
  • Loading comment...
Loading...
Loading...
Working...
Sign in to add this to Watch Later