You need to write a macro that opens ff (or any other browser) using a debug URL. You can then control it and close it when debugging is complete.
but I think this task is quite difficult to accomplish.
which mentioned here just set the debugging browser by default, does not answer your question at all, b / c it will not be closed ...
If Firefox is installed as your default browser and Firebug is installed, you can debug your script in Firefox. Choose Tools> Firebug> Open Firebug. Now the Firefox instance shows the debug console. To enable script debugging, go to the Console tab, select the script check box and click the "Apply settings for localhost" button.
Yuki
source share