What's the Javascript function that calls the console debug panel (CTRL+SHIFT+J
) on Firefox?
Here is how to open the console pannel
var win = event.target.ownerDocument.defaultView;
win.gDevToolsBrowser.selectToolCommand(win.gBrowser, "webconsole");
Also possible with
HUDConsoleUI.toggleBrowserConsole();