Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
192
rated 0 times [  195] [ 3]  / answers: 1 / hits: 17464  / 13 Years ago, fri, august 12, 2011, 12:00:00

I am facing this weird problem. The WebApp I'm debugging right now, is invoking the javascript console.log/console.log/error/debug/etc., the Firebug console however, doesn't print them at all.
This application uses Dojo/Dijit toolkit. Not sure if there is anything special about it



It doesn't appear to be a problem with the Browser, I tried another simple web-page with a console.debug call, and the message appears on the console as expected.



Please advise about what should I look for. I have also tried Chrome/IE.



Thanks in Advance/


More From » console

 Answers
6

console is not write protected, it can be replaced with anything. You could try



alert(console.log.toString());


to find out what console.log really is



Edit:



A better method would be



var originalConsole = console;
// now include your library
// ...
originalConsole.log(console.log);


In Firebug, clicking on the function takes you directly to its definition.


[#90635] Thursday, August 11, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
danyelletyanah

Total Points: 204
Total Questions: 109
Total Answers: 108

Location: Vanuatu
Member since Fri, Oct 22, 2021
3 Years ago
;