From 2e595b52b46a9a2b4673e7f532173f9041259f92 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 11 Sep 2023 07:50:42 +0200 Subject: [PATCH] [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) --- content/developer/reference/frontend/qweb.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/content/developer/reference/frontend/qweb.rst b/content/developer/reference/frontend/qweb.rst index 8830ac44d..863454308 100644 --- a/content/developer/reference/frontend/qweb.rst +++ b/content/developer/reference/frontend/qweb.rst @@ -1,4 +1,3 @@ - .. highlight:: xml .. _reference/qweb: @@ -439,12 +438,12 @@ Debugging .. rst-class:: o-definition-list ``t-debug`` - invokes a debugger using PDB's ``set_trace`` API. The parameter should - be the name of a module, on which a ``set_trace`` method is called:: + with an empty value, invokes the :func:`breakpoint` builtin + function, which usually invokes a debugger (:mod:`pdb` by + default). - - - is equivalent to ``importlib.import_module("pdb").set_trace()`` + The behaviour can be configured via :envvar:`PYTHONBREAKPOINT` or + :func:`sys.breakpointhook`. Rendering cache: ----------------