documentcloud/backbone — pull request #1807 by jpka (2012-11-07 19:02:29+00:00)
Title: Debugability implemented -with tests.

I make this PR as part of an effort at work to improve Backbone for our own purposes. We thought of contributing it because we think it will add to the whole of the community even though it is minimal and not everyone will make use of it. And also because it will be great to have feedback from the core Backbone contributors and users. We got this idea of adding debugability-friendly features after our experience with Ember (we are in the process of researching and prototyping with every promising frontend framework we can find).

Basically, it makes use of named constructors and toString() to print out information about Backbone components, its subclasses and its instances while debugging. See the test file for details.

I get that this may not be something that everyone will see the point of, but I don't think it hurts anyone either.