How to print into Debug console

I have one little silly question.

How can I print something into debug console from XXXPear.js?

Thanks for any advice.


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) {

within your code you can call

myLog("my debug code");

and log into the console from FireBug