Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I check with Firebug if on a certain page a specific JavaScript function - jQuery based - is applied?

share|improve this question
up vote 5 down vote accepted

While Christopher's answer is somewhat correct, many times you won't want to use a tracepoint that interrupts execution and requires manual interaction to resume execution (at that point it's technically a breakpoint).

With Firebug or equivalent browser debug consoles, you can insert tracepoints into your code using console.log(). AFAIK, the console object isn't a standard JavaScript/ECMAScript construct, but it's supported in:

I believe you need to have the console window actually open/enabled in many of these environments before the object is actually accessible, and then there's the issue of browsers which don't support the window.console object or having debug code accidentally slip into a production application. But there are many solutions to these problems as well:

The point is, there are better ways to debug than just throwing an alert() box. And if you've got Firebug installed but aren't yet familiar with Firebug's JavaScript debugging facilities, this is a good overview.

share|improve this answer

JQuery or not, JavaScript will stop executing code after an error... most of the time on the entire page (There are a few exceptions though). Using Firebug is overkill when you can just toss in an alert("IT WORKS"); at the end of the suspect function. If the popup works, then the function is applied. Giving more information as to exactly what function you're referring to would help.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.