DSblizzard
DSblizzard

Reputation: 4149

Web development: how to show all errors (make errors verbose)?

For example in Django:

S = request.POST.get("NonexistentField") # There is no error, it fails silently

How to show all errors in html, javascript, django?

Upvotes: 0

Views: 454

Answers (3)

Vannen
Vannen

Reputation: 752

If you want to see the errors just for development purposes, you might want to take a look at Django debug toolbar. It is a great tool that show you data about http headers, sql queries,etc.

https://github.com/django-debug-toolbar/django-debug-toolbar

Upvotes: 0

Daniel Roseman
Daniel Roseman

Reputation: 599788

Why should there be an error there? In Python, dict.get('key') is specifically designed not to raise an exception if the key doesn't exist. If you want to cause an exception, do dict['key'] directly.

Upvotes: 5

Hayden Thring
Hayden Thring

Reputation: 1810

try firebug for firefox, it can help debugging

Upvotes: 0

Related Questions