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.'label')
  console.log('another message')

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

🚀 I just relaunched my Vanilla JS Pocket Guides with new code examples and real projects to help tie everything you’ll learn together. Check it out.

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

Get Daily Developer Tips