doc/book/en/annexes/rql/debugging.rst
branchstable
changeset 7529 2fdc310be7cd
parent 7079 6024de6094f6
child 8626 e2ba137b2bf9
equal deleted inserted replaced
7528:11659cbe5eea 7529:2fdc310be7cd
     6 -------------
     6 -------------
     7 
     7 
     8 Available levels
     8 Available levels
     9 ~~~~~~~~~~~~~~~~
     9 ~~~~~~~~~~~~~~~~
    10 
    10 
    11 :DBG_NONE:
    11 Server debugging flags. They may be combined using binary operators.
    12     no debug information (current mode)
       
    13 
    12 
    14 :DBG_RQL:
    13 .. autodata:: cubicweb.server.DBG_NONE
    15     rql execution information
    14 .. autodata:: cubicweb.server.DBG_RQL
    16 
    15 .. autodata:: cubicweb.server.DBG_SQL
    17 :DBG_SQL:
    16 .. autodata:: cubicweb.server.DBG_REPO
    18     executed sql
    17 .. autodata:: cubicweb.server.DBG_MS
    19 
    18 .. autodata:: cubicweb.server.DBG_MORE
    20 :DBG_REPO:
    19 .. autodata:: cubicweb.server.DBG_ALL
    21     repository events
       
    22 
       
    23 :DBG_MS:
       
    24     multi-sources
       
    25 
       
    26 :DBG_MORE:
       
    27     more verbosity
       
    28 
       
    29 :DBG_ALL:
       
    30     all level enabled
       
    31 
    20 
    32 
    21 
    33 Enable verbose output
    22 Enable verbose output
    34 ~~~~~~~~~~~~~~~~~~~~~
    23 ~~~~~~~~~~~~~~~~~~~~~
    35 
    24 
    38 .. sourcecode:: python
    27 .. sourcecode:: python
    39 
    28 
    40     from cubicweb import server
    29     from cubicweb import server
    41     server.set_debug(server.DBG_RQL|server.DBG_SQL|server.DBG_ALL)
    30     server.set_debug(server.DBG_RQL|server.DBG_SQL|server.DBG_ALL)
    42 
    31 
       
    32 .. autofunction:: cubicweb.server.set_debug
       
    33 
    43 
    34 
    44 Detect largest RQL queries
    35 Detect largest RQL queries
    45 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    36 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    46 
    37 
    47 See `Profiling and performance` chapter (see :ref:`PROFILING`).
    38 See `Profiling and performance` chapter (see :ref:`PROFILING`).
    48 
    39 
    49 
    40 
    50 API
    41 API
    51 ~~~
    42 ~~~
    52 
    43 
    53 .. autofunction:: cubicweb.server.set_debug
       
    54 
       
    55 .. autoclass:: cubicweb.server.debugged
    44 .. autoclass:: cubicweb.server.debugged
    56 
    45