The KIRUPA orange logo! A stylized orange made to look like a glass of orange juice! Tutorials Books Videos Forums

Change the theme! Search!
Rambo ftw!

Customize Theme


Color

Background


Done

Debugging JavaScript by Using Breakpoints

by kirupa   |   15 December 2012

No matter how well you write your JavaScript, given its scripty nature, mistakes will happen. The mistakes that you run into will often be subtle. A great time saver when trying to figure out why your JavaScript isn't working is the ability to set breakpoints and step through your code line by line. Firebug makes it very easy for you to do that, and in this video, I show you how.

Hit Play below to get get rolling:

Going Further (or Backwards?)

If you don't want to use breakpoints, you can always fall back to the old methods of using console.log or peppering alert() functions throughout your code.

Just a final word before we wrap up. If you have a question and/or want to be part of a friendly, collaborative community of over 220k other developers like yourself, post on the forums for a quick response!

Kirupa's signature!

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright KIRUPA 2024 //--