![]() |
Developer tools | Built in | F12 |
![]() |
Developer Tools | Built in | F12 |
![]() |
FireBug | Plugin | F12 |
![]() |
DragonFly | Built in | Ctrl+Shift+I |
console.log("Log"); console.debug("Debug"); console.warn("Warning, be careful"); console.error("Error, oh no!");
console.time("my timer"); ... other code ... console.timeEnd("my timer"); // print elapsed time
console.log({a: "Hello", b: "World"});
![]() ![]() |
Object {a: "Hello", b: "World"} |
![]() |
[object Object] |
console.log("The object is", {a: "Hello", b: "World"});
![]() ![]() |
The object is Object {a: "Hello", b: "World"} |
![]() |
The object is[object Object] |
console.dir({a: "Hello", b: "World"});
![]() ![]() ![]() |
{ a : "Hello", b : "World" } |
console.group('group'); console.log('Some'); console.log('Stuff'); console.groupEnd('group');
if(...) { debugger; }
Search by file name
Ctrl + O (Windows) Cmd + O (Mac OSX)
Text search within the current file
Ctrl + F (Windows) Cmd + F (Mac OSX)
Text search across all files
Ctrl + Shift + F (Windows) Cmd + Opt + F (Max OSX)