What are the best debugging tips you have?

  • 4
    Change one thing at a time.
  • 1
    +1 for shaking 😀
  • 6
    Lots of printlns or console.logs. 😎
  • 2
    Sleep, wake up get coffee & a stress ball/ rubber duck [what ever works] & squeeze the damn life out of it.
  • 5
    When in doubt print it out
  • 1
    Don't write long statements. Define useful variables before the statement, so they are easy to watch.

    So no 10 line lambda's if you can avoid it. Define as much as you can before the lambda.
Add Comment