Merge "Wordsmith and re-order the "I need help!" options"
diff --git a/klaxon/__init__.py b/klaxon/__init__.py
index d453c48..1b6c6ab 100644
--- a/klaxon/__init__.py
+++ b/klaxon/__init__.py
@@ -120,4 +120,10 @@
               'but it was sent.')
         return redirect('/')
 
+    # Two flavors of the debug handler, so we can inspect both not-logged-in and logged-in state.
+    @app.route('/_debug')
+    @app.route('/protected/_debug')
+    def debug():
+        return render_template('debug.html', vars=request.environ)
+
     return app
diff --git a/klaxon/templates/debug.html b/klaxon/templates/debug.html
new file mode 100644
index 0000000..0b054b2
--- /dev/null
+++ b/klaxon/templates/debug.html
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+
+{% block content %}
+<section class="section">
+    <div class="container block has-text-centered">
+        <h2 class="title is-4">Debug info</h2>
+    </div>
+    <div class="container block is-max-desktop">
+        <table class="table is-striped">
+            <tbody>
+                {% for k, v in vars.items() %}
+                <tr>
+                    <td>
+                        {{ k }}
+                    </td>
+                    <td>
+                        {{ v }}
+                    </td>
+                </tr>
+                {% endfor %}
+            </tbody>
+        </table>
+    </div>
+</section>
+{% endblock %}