diff options
| author | Tres Seaver <tseaver@palladion.com> | 2014-02-16 22:28:33 -0500 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2014-02-16 22:28:33 -0500 |
| commit | 76ff93079eac35d529a2a316248b8cca750ef5e4 (patch) | |
| tree | d7eafb4cc6110d6449e90522bf478e3ba3601edd | |
| parent | f77c69c68665e81ffc89f4aa13f6e9af13df6cb0 (diff) | |
| download | pyramid-76ff93079eac35d529a2a316248b8cca750ef5e4.tar.gz pyramid-76ff93079eac35d529a2a316248b8cca750ef5e4.tar.bz2 pyramid-76ff93079eac35d529a2a316248b8cca750ef5e4.zip | |
EC: break the page and see the DBT traceback display.
| -rw-r--r-- | docs/quick_tutorial/debugtoolbar.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/quick_tutorial/debugtoolbar.rst b/docs/quick_tutorial/debugtoolbar.rst index 95cf229b2..1c540d8a2 100644 --- a/docs/quick_tutorial/debugtoolbar.rst +++ b/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? |
