50 * add a new '-t/--toolbar' option the pyramid command to activate the pyramid debugtoolbar |
50 * add a new '-t/--toolbar' option the pyramid command to activate the pyramid debugtoolbar |
51 |
51 |
52 * allow to specify the instance id for any instance command using the |
52 * allow to specify the instance id for any instance command using the |
53 CW_INSTANCE global variable instead of or giving it as a cli argument |
53 CW_INSTANCE global variable instead of or giving it as a cli argument |
54 |
54 |
|
55 * a series of pyramid debugtoolbar panels specifically made for CW, see bellow |
|
56 |
|
57 Pyramid debugtoolbar and custom panel |
|
58 ------------------------------------- |
|
59 |
|
60 The pyramid debugtoolbar is now integrated into CubicWeb during the development |
|
61 phase when you use the 'pyramid' command. To activate it you need to pass the |
|
62 '-t/--toolbar' argument to the 'pyramid' command. |
|
63 |
|
64 In addition, a series of custom panels specifically done for CW are now |
|
65 available, they display useful information for the development and the |
|
66 debugging of each page. The available panels are: |
|
67 |
|
68 * a general panel which contains the selected controller, the current |
|
69 settings and useful links `screenshot <../_static/debugtoolbar_general_panel.png>`_ |
|
70 * a panel listing all decisions taken in registry for building this page `screenshot <../_static/debugtoolbar_registry_decisions_panel.png>`_ |
|
71 * a panel listing the content of the vreg registries `screenshot <../_static/debugtoolbar_registry_content_panel.png>`_ |
|
72 * a panel listing all the RQL queries made during a request `screenshot <../_static/debugtoolbar_rql_panel.png>`_ |
|
73 * a panel listing all the SQL queries made during a request `screenshot <../_static/debugtoolbar_sql_panel.png>`_ |
|
74 |
|
75 Furthermore, in all those panels, next to each object/class/function/method a |
|
76 link to display its source code is available (shown as '[source]' `screenshot |
|
77 <../_static/debugtoolbar_show_source_link.png>`_) and also every file path shown |
|
78 is a traceback is also a link to display the corresponding file (`screenshot |
|
79 <../_static/debugtoolbar_traceback_source_link.png>`_). For example: `screenshot |
|
80 <../_static/debugtoolbar_show_source.png>`_. |
|
81 |
55 Backwards incompatible changes |
82 Backwards incompatible changes |
56 ------------------------------ |
83 ------------------------------ |
57 |
84 |
58 * Standardization on the way to launch a cubicweb instance, from now on the |
85 * Standardization on the way to launch a cubicweb instance, from now on the |
59 only way to do that will be the used the ``pyramid`` command. Therefore: |
86 only way to do that will be the used the ``pyramid`` command. Therefore: |