diff -r 7ee0752178e5 -r e2ba137b2bf9 doc/book/en/annexes/rql/debugging.rst --- a/doc/book/en/annexes/rql/debugging.rst Fri Dec 14 14:08:14 2012 +0100 +++ b/doc/book/en/annexes/rql/debugging.rst Tue Dec 11 18:20:00 2012 +0100 @@ -15,6 +15,8 @@ .. autodata:: cubicweb.server.DBG_SQL .. autodata:: cubicweb.server.DBG_REPO .. autodata:: cubicweb.server.DBG_MS +.. autodata:: cubicweb.server.DBG_HOOKS +.. autodata:: cubicweb.server.DBG_OPS .. autodata:: cubicweb.server.DBG_MORE .. autodata:: cubicweb.server.DBG_ALL @@ -31,6 +33,14 @@ .. autofunction:: cubicweb.server.set_debug +Another example showing how to debug hooks at a specific code site: + +.. sourcecode:: python + + from cubicweb.server import debuged, DBG_HOOKS + with debugged(DBG_HOOKS): + person.cw_set(works_for=company) + Detect largest RQL queries ~~~~~~~~~~~~~~~~~~~~~~~~~~~