[IMP] developer reference: update t-debug doc
The value of `t-debug` is now optional, and leaving it out means the directive just invokes the `breakpoint` builtin, which was added in 3.7 and is configurable via an envvar or a hook callable. closes odoo/documentation#5800 Related: odoo/odoo#134842 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
38b50bb081
commit
2e595b52b4
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
.. highlight:: xml
|
.. highlight:: xml
|
||||||
|
|
||||||
.. _reference/qweb:
|
.. _reference/qweb:
|
||||||
@ -439,12 +438,12 @@ Debugging
|
|||||||
.. rst-class:: o-definition-list
|
.. rst-class:: o-definition-list
|
||||||
|
|
||||||
``t-debug``
|
``t-debug``
|
||||||
invokes a debugger using PDB's ``set_trace`` API. The parameter should
|
with an empty value, invokes the :func:`breakpoint` builtin
|
||||||
be the name of a module, on which a ``set_trace`` method is called::
|
function, which usually invokes a debugger (:mod:`pdb` by
|
||||||
|
default).
|
||||||
|
|
||||||
<t t-debug="pdb"/>
|
The behaviour can be configured via :envvar:`PYTHONBREAKPOINT` or
|
||||||
|
:func:`sys.breakpointhook`.
|
||||||
is equivalent to ``importlib.import_module("pdb").set_trace()``
|
|
||||||
|
|
||||||
Rendering cache:
|
Rendering cache:
|
||||||
----------------
|
----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user