Does anyone know of an existing library for inspecting elements in the template?

Currently I usually end up doing this in the view:

```
show_me = dir(the_deets_on_this_object)
raise ValueError()

```

Then I can inspect the value of show\_me in the debugger stack trace. 

However, this is really ugly. I'd love to be able to do this inspection in the template, like is done in php with the print\_r

```
{% load development_show_me %}
{{the_deets_on_this_object|show_them_to_me}}

```

I know that this doesn't exist in the django standard template library, but I'm hoping someone has already written this template filter so I can just happily use it. 

Bonus behaviors:

* Checks for settings.DEBUG and raises an error that isn't trapped if it is false
* wraps the output in < pre >

I'll write it if I have to, but hopefully someone else has already done this.