Sunday, May 19, 2024
166
rated 0 times [  171] [ 5]  / answers: 1 / hits: 24498  / 13 Years ago, wed, august 17, 2011, 12:00:00

For some reason, the prototype framework (or another JavaScript code) that is shipped with Magento is replacing standard console functions, so I can't debug anything. Writing down in JavaScript console console I get the following output:



> console
Object
assert: function () {}
count: function () {}
debug: function () {}
dir: function () {}
dirxml: function () {}
error: function () {}
group: function () {}
groupEnd: function () {}
info: function () {}
log: function () {}
profile: function () {}
profileEnd: function () {}
time: function () {}
timeEnd: function () {}
trace: function () {}
warn: function () {}


I'm using Google Chrome version 13.0.782.112 on Linux.



Prototype JavaScript framework, version 1.6.0.3



Is there a quick way to solve this?


More From » google-chrome

 Answers
18

For example,



delete console.log


would also restore console.log:



console.log = null;
console.log; // null

delete console.log;
console.log; // function log() { [native code] }

[#90575] Monday, August 15, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mckaylab

Total Points: 311
Total Questions: 120
Total Answers: 93

Location: Montenegro
Member since Thu, Jun 16, 2022
2 Years ago
;