Repository navigation
Debugging
rafageist edited this page Dec 3, 2026
·
2 revisions
Through debugpy and the Debug Adapter Protocol. debugpy runs from Turbodoo's own environment (or from inside the release binary) and debugs programs of any Python 3.8+ interpreter: the program's environment needs nothing installed.

- Ctrl+F8, or a click on a line number, sets or removes a breakpoint (the red bar).
- Ctrl+F9 runs the active Python file with the configured interpreter until a breakpoint, and goes on from one.
- F7 traces into, F8 steps over (both start the program stopped on its first line when it is not running yet), Shift+F8 steps out; Run > Pause stops a running program where it is.
- The line about to run is the cyan bar. While stopped, the Call stack (Enter shows a call and its variables) and Variables windows (Enter unfolds an object, a list or a dict) take the Outline's place, and Output shows what the program prints; Enter on a traceback's
File "…", line Ngoes there. -
Ctrl+F2 (program reset) ends the program; Run > Restart starts it again; Run > Program and arguments debugs another file, with arguments and a working directory. Arguments are split as a shell does: quotes keep spaces (
--name "two words") and are not passed on, on Windows too; a quote left open is refused with the reason. - The program never gets the terminal: it reads end-of-file from its standard input, so it cannot stop for a prompt. Exiting Turbodoo ends it, and every process it started.

Run > Odoo server asks for the database (Turbodoo never chooses one), an optional configuration file and more arguments (--http-port=8097 -u my_module...), then shows the whole command and starts only on Start: python odoo-bin [-c FILE] --addons-path=<custom>,<enterprise>,<community>/addons -d DB --db-filter=^DB$ ..., with the interpreter and folders of Options > Python and Odoo.
- The extra arguments may not carry a password (it belongs in the configuration file or
~/.pgpass) nor replace the database, the configuration file or the addons path, in any form Odoo accepts. - The confirmation shows the database, the configuration file Odoo will read and the database server, found as Odoo finds it. A server that cannot be known is shown as unverified; one that is not this computer is shown as REMOTE, Enter then cancels and starting needs the button that names it. No password is ever read or shown.
- Set breakpoints in your addons, open a page or call a route, and Odoo stops there.


Turbodoo · part of Divengine · report an issue