A simple debugger for web sites using the browser's console. Based on the console wrapper from Paul Irish.
Author: Michael Turnwall
Copyright (c) 2012 Michael Turnwall
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
The default state for the debugger is off. There are two ways to turn the debugger on.
- Set the debug.on property to true. The default is false,
debug.on = true;
- Add a query string to the URL of debug=true, http://example.com?debug=true
debug.log('This is a log message');
debug.log("The %s jumped over %d tall buildings", animal, count);
All calls to the debug object will be saved in debug.history.
Supported Console Types
Here is a list of the current supported console message types: 'log','info','warn','error', 'debug', 'dir', 'group', 'groupEnd'