DEBUGGING JAVASCRIPT
WITH CHROME DEVTOOLS
Createdby /DipilSinghSaud @dipilsaud
HEADS UP
1. Devtools UI
2. Know the Console
3. Debugging
4. Share /Questions
DEVTOOLS
CMD+SHIFT+I
Panels
Settings
THE CONSOLE
Tips and Tricks
to give you the kicks
CONSOLE.LOG() WITH A TWIST
console.log("%cBIGRED MESSAGE", "font-size: 200%;
background-color: #C0FFEE;")
console.log(arg1, arg2, arg3)
CONSOLE.DIR()
ELEMENTS/CONSOLE
$0..$4 OR$n(x)
inspect(element)
CONSOLE.TABLE(ELEMENTS, FIELDS)
COPY()
Filters
Preserve Log
Scopinginto Frames
Store as GlobalVariable
FIREBUG API
https://getfirebug.com/wiki/index.php/Command_Line_API
DEBUGGING
SETTING BREAKPOINTS
Step Over /Step Into /Step Out
Scope Variables
Watch Expressions
Async
BREAKPOINTS ON XHR
DEBUG FROM UI
Break on Subtree Modification
Break on Event
TIMELINE TO DEBUG
LINKS
Docs
Presentation Framework
DebuggingAsynchronous Javascript
HAVE A QUESTION?
OR
SHARE YOUR PIECE
THANK YOU FOR YOUR
PATIENCE

Debugging javascript by dipil singh saud