Skip to content
Browse files

EC: break the page and see the DBT traceback display.

  • Loading branch information...
1 parent f77c69c commit 76ff93079eac35d529a2a316248b8cca750ef5e4 @tseaver tseaver committed Feb 16, 2014
Showing with 19 additions and 0 deletions.
  1. +19 −0 docs/quick_tutorial/debugtoolbar.rst
View
19 docs/quick_tutorial/debugtoolbar.rst
@@ -92,3 +92,22 @@ Extra Credit
# Why don't we add ``pyramid_debugtoolbar`` to the list of
``install_requires`` dependencies in ``debugtoolbar/setup.py``?
+
+# Introduce a bug into your application: Change:
+
+ .. code-block:: python
+
+ def hello_world(request):
+ return Response('<body><h1>Hello World!</h1></body>')
+
+ to:
+
+ .. code-block:: python
+
+ def hello_world(request):
+ return xResponse('<body><h1>Hello World!</h1></body>')
+
+ Save, and visit http://localhost:6543/ again. Notice the nice
+ traceback display. On the lowest line, click the "screen" icon to the
+ right, and try typing the variable names ``request`` and ``Response``.
+ What else can you discover?

0 comments on commit 76ff930

Please sign in to comment.
Something went wrong with that request. Please try again.