Stopping runaway function

26 views
Skip to first unread message

Lawrence San

unread,
Sep 29, 2015, 6:26:12 PM9/29/15
to fir...@googlegroups.com
I have a very basic question... I'm working on defining a new function that's in a JS file, which is called from a very simple test web page. The new function contains a few console log items so I can see what it's doing. My Firebug console is open.

When I reload the web page, the first of the Firebug log calls -- which just tells me the incoming arguments length, and the typeof arguments[1] --  appears in the Firebug console, and gives me the result I expected, with no errors... but then repeats endlessly, thousands of times if I let it. (Unlike the bad old days, Firebug just rapidly increments the number to the left of the log item, it doesn't literally fill up the console repeating the whole log item.)

There are no loops in the function, but there is a recursion timer, so obviously I screwed that up somehow. But my question is: how can I make Firefox/Firebug just stop the runaway function? The web page itself looks fully rendered, which may be why the 'stop' button (X icon) is grayed out in Firefox -- anyway clicking it does nothing. Is there some command in Firebug (or Firefox) that simply means Stop Everything? Or Stop all scripts that are running, no matter what? Anything like that?

Sebastian Zartner

unread,
Sep 30, 2015, 3:50:45 AM9/30/15
to Firebug
Firefox/Firebug currently do not support this. There is already a request for this in the issue tracker, though.

Sebastian
Reply all
Reply to author
Forward
0 new messages