I have some debugging fingerprints in my script with console.log(message) , but the messages do not appear in the Firebug console section.
What could be the reason for this?
UPDATE 1
None of console.warn , console.error and console.info work.
UPDATE 2
I have the following log function:
function log(message) { console.error(message); $("#log").append(message + "<br/>"); }
therefore, it is registered in both the Firebug console and the DIV on the page. I see that the DIV is working. Consequently, management reaches assertions.
UPDATE 3
- irrelevant -
UPDATE 4
Update 3 didn't matter: consoleBody in firebug.js was not always null. This later became valuable.
But I saw that the contents of consoleBody contains "div # log". Perhaps this interferes with my naming ...
UPDATE 5
Renaming the identifier of my DIV did not help ...
UPDATE 6
I do console.log("hehe") in the immediate firebug line, it prints undefined
UPDATE 7
It appears that console.log() does not work at all in the Liferay portlet; even the very simple hello world portlet does not cancel this command.
source share