Upgrade to Pro — share decks privately, control downloads, hide ads and more …

https://github.com/givanse/debug-and-report-a-bug-in-ember

 https://github.com/givanse/debug-and-report-a-bug-in-ember

debug and report a bug in Ember.js

Gastón Iván

August 24, 2016
Tweet

More Decks by Gastón Iván

Other Decks in Technology

Transcript

  1. Debug example Tools: • Ember inspector • Chrome developer tools

    Demo app: https://github.com/givanse/debuggin g-ember
  2. Chrome developer tools • Break point • Conditional break point

    • Continue until here Docs: Set a breakpoint on a particular line of code
  3. Minimal test case You always need a reproducible test case.

    - demonstrate the problem to others - add a test once a fix is found Good test cases: Minimal code, inputs and outputs. Isolation, test only one thing. Strip out business logic. Help us help you. Suggested reading: StackOverflow MCVE
  4. Twiddle examples Turns out: @each two levels deep is not

    supported However, we can still: Observe nested properties
  5. Bad documentation is a bug [BUGFIX beta] Add warning for

    “deep @each” usage in dependent keys > WARNING: Dependent keys containing @each only work one level deep. You cannot use nested forms like [email protected] or [email protected][email protected]. Please create an intermediary computed property.