user5858
user5858

Reputation: 1221

Firebug Error:ReferenceError: debug is not defined

I want break in a javascript function. So on firebug console I've given:

debug(anchor_submit_form);

It's giving single line error:

ReferenceError: debug is not defined

How do I set the breakpoint in a function?

Upvotes: 1

Views: 2702

Answers (1)

Brett
Brett

Reputation: 8745

The firebug console is only defined when firebug is running. So, I would do this:

console.log(anchor_submit_form);

Then launch firebug and watch the console output. You can put a break point in the script using the firebug UI.

Upvotes: 1

Related Questions