How to debug prod systems
odoo debug odoo_debug --port 33284
Port 33284 is used as email word for 'debug' (old mobile phone language)
Then local forward the port:
ssh -nNT -L 33284:localhost:33284 user@odoohost
Then open browser locally:
http://localhost:33284/web/login
In the debug container in docker you have to start debugging BEFORE:
debug<enter>
You can set breakpoints() and use the pudb debugger.
CAUTION: system parameter web.base.url.freeze=1 must be set; otherwise admin login changes web.base.url