I have one little silly question.
How can I print something into debug console from XXXPear.js?
Thanks for any advice.
Core.Debug.consoleWrite("blabla"); and to display the console add ?debug=true to your url
When you are using FireFox + FireBug you can create a simple function
myLog = function(param) { if(window.console != undefined) { console.log(param); } }
within your code you can call
myLog("my debug code");
and log into the console from FireBug
debug
Core.Debug.consoleWrite("blabla");
and to display the console add ?debug=true to your url
Log with FF
When you are using FireFox + FireBug you can create a simple function
myLog = function(param) {
if(window.console != undefined) {
console.log(param);
}
}
within your code you can call
myLog("my debug code");
and log into the console from FireBug