cloudhead/less.js — pull request #834 by simonedeponti (2012-06-11 10:31:47+00:00)
Title: Added debugging support

Inspired by _SASS,_ I decided to add debugging support that can be leveraged by browser developer extensions.

I mimicked the _debug-info_ behaviour of _SASS_, which generates a bogus `@media -sass-debug-info {}` on top of every _CSS ruleset_ that is emitted, containing the originating file and line number.

This can then be picked up by a developer extension to help the developer identify where in the _LESS_ files a certain declaration was defined.

There was a Firebug extension, [FireSASS](https://github.com/nex3/firesass), that did this for _SASS_ and I forked it over and made it work with my modification of _LESS_ (https://github.com/abstract-open-solutions/fireless).

Right now, the debug info is emitted only if _LESS_ is in browser mode and development mode.