Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Javascript to open/activate Firebug

I've been looking for a solution to use Javascript to open or activate Firebug.

You see by default, Firebug is deactivated/closed at the corner of the status bar.

You need to click the icon to activate Firebug (the icon becomes coloured).

Is there a way to activate Firebug via Javascript in the javascript code?

see following:

 // check if firebug is installed and activated
if(window.console && window.console.firebug){
   // do firebug debugging and so on
}else{
   alert('Firebug is not installed or activated.');
}
like image 318
mauris Avatar asked Sep 12 '09 09:09

mauris


1 Answers

If you are trying to troubleshoot your own code, you can use the javascript "debugger" command to cause firebug to break on a given line of code. You will have to enable firebug debugging first for that web page. Maybe that's more along the lines of what you were looking for?

I don't think you want to trigger Firebug to open on an end user's browser; this would, at best, cause confusion for the average user.

like image 88
RMorrisey Avatar answered Oct 04 '22 15:10

RMorrisey