A simple plugin to use when debugging your Leaflet app. Adds a .debug to Leaflet classes to make debug tasks simpler.
http://aaronr.github.io/Leaflet.debug/example/
In a debug console:
>>> map.debug.numLayers()
4
Leaflet.debug is free software, and may be redistributed under the MIT license.