debugConsole: Javascript Debug Console
Debugging your script using the "alert()" function can be really painful and not all of your browsers come with debuggers built-in or add-on. The "classBehaviour" script, contains its own debugger for convenience.
Printing out Variables
Clicking the buttons below sends messages to the debugger. The debugger itself can always be called, using javascript, from any page with the "classBehaviour" functions.
To display variables from scripts using the debugger, the call "debug(myVariable, myVariable, myVariable)" can be used, with as many arguments as required.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.scrolllock.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: debugConsole.html
Comments on this Article