Skip to main content Accessibility Feedback

Debugging tips and tricks

One thing that often trips up newer developers (and sometimes seasoned ones) is debugging code.

At it’s heart, debugging is a trial-and-error process of starting with the last working piece of code and working your way backwards.

Calvin Koepke has put together an awesome set of tips and tricks to help make debugging a little easier. I didn’t realize you can group a set of console logs together like this:

// Group console data together for better viewing. Nice to group console logs together.
console.group('label')
  console.log('message')
  console.log('another message')
console.groupEnd()

Go check out the whole thing. It’s awesome!


🔥 Hot off the press! I just launched a new pocket guide. Learn how to build interactive web apps with vanilla JavaScript.

Have any questions or comments about this post? Email me at chris@gomakethings.com or contact me on Twitter at @ChrisFerdinandi.

Get Daily Developer Tips