When using Google Chrome, I want to debug some JavaScript code. How can I do that?
Windows: CTRL-SHIFT-J OR F12
Mac: ⌥-⌘-J
Also available through the wrench menu (Tools > JavaScript Console):