Skip to content
a wrapper for the console object to avoid in browsers that don't include the console object
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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

Released under a GPLv3 license.


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


The default state for the debugger is off. There are two ways to turn the debugger on.

  1. Set the debug.on property to true. The default is false, debug.on = true;
  2. Add a query string to the URL of debug=true,


debug.log('This is a log message');

String Substituion

debug.log("The %s jumped over %d tall buildings", animal, count);

Debug History

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'

You can’t perform that action at this time.