diff options
| author | Chris McDonough <chrism@plope.com> | 2014-04-07 09:55:11 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2014-04-07 09:55:11 -0400 |
| commit | bcf18220be9c21ff4b1af50f45b90aadfa7820f5 (patch) | |
| tree | 99232b448c08c5689117cb84c025efb349b50b0f /docs/quick_tutorial/debugtoolbar.rst | |
| parent | d7b647d27ebde9bc8203629b651e69d6e7ac7c38 (diff) | |
| parent | 32200c3af84c352c066eb2c402496305375912e4 (diff) | |
| download | pyramid-bcf18220be9c21ff4b1af50f45b90aadfa7820f5.tar.gz pyramid-bcf18220be9c21ff4b1af50f45b90aadfa7820f5.tar.bz2 pyramid-bcf18220be9c21ff4b1af50f45b90aadfa7820f5.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/quick_tutorial/debugtoolbar.rst')
| -rw-r--r-- | docs/quick_tutorial/debugtoolbar.rst | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/docs/quick_tutorial/debugtoolbar.rst b/docs/quick_tutorial/debugtoolbar.rst index d25588c49..1c540d8a2 100644 --- a/docs/quick_tutorial/debugtoolbar.rst +++ b/docs/quick_tutorial/debugtoolbar.rst @@ -39,7 +39,6 @@ Steps $ $VENV/bin/python setup.py develop $ $VENV/bin/easy_install pyramid_debugtoolbar - #. Our ``debugtoolbar/development.ini`` gets a configuration entry for ``pyramid.includes``: @@ -86,4 +85,29 @@ start to experience otherwise inexplicable client-side weirdness, you can shut it off by commenting out the ``pyramid_debugtoolbar`` line in ``pyramid.includes`` temporarily. -.. seealso:: See Also: :ref:`pyramid_debugtoolbar <toolbar:overview>` +.. seealso:: See also :ref:`pyramid_debugtoolbar <toolbar:overview>`. + +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? |
