■ Break on Exception
■ Breakpoints
■ debugger;
PAUSING EXECUTION.
Slide 12
Slide 12 text
BREAK ON EXCEPTION.
Don’t Break (grey)
Slide 13
Slide 13 text
BREAK ON EXCEPTION.
Break on Exception (blue)
Slide 14
Slide 14 text
BREAK ON EXCEPTION.
Break on Uncaught
Exception (purple)
Slide 15
Slide 15 text
BREAKPOINTS.
Breakpoint
(click to set) All Breakpoints
Slide 16
Slide 16 text
// Why is this kicking
// puppies?!
if (shouldntBePossible) {
this.kickPuppies();
}
DEBUGGER STATEMENT.
debugger;
Slide 17
Slide 17 text
PAUSED EXECUTION.
Slide 18
Slide 18 text
CALL STACK.
Slide 19
Slide 19 text
STEP INTO
STEP OVER
STEP OUT
Slide 20
Slide 20 text
EXAM APP STATE.
Slide 21
Slide 21 text
JSHINT.
Slide 22
Slide 22 text
DEMO
Slide 23
Slide 23 text
■ Namespaces
■ Don’t fear the stack trace
■ Understanding common
errors
■ Logging
■ Advanced debug-foo
Tips & tricks speci c
to Ember.js apps.
DEBUGGING
EMBER.JS
■ Creating reduced test cases
with jsFiddle
■ Running and writing unit
tests
■ Better asserts
Making Ember.js
easier for you and
others.
HELP US HELP YOU