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!

🔥 Level-up your JavaScript skills! All of the Vanilla JS Pocket Guides have been updated for ES6 with new methods, techniques, and browser APIs. Learn more →

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

Get Daily Developer Tips