Debug mode

Prev Next

Zodoo’s new debug setup allows you to debug on a productive system without disturbing other users:

Setup:

1. Upgrade Zodoo:odoo upgrade

2. Start the production system up as usual

3. Start debug mode (without providing a port): odoo debug odoo_debug

Then type debug and hit ENTER.

4. Navigate to https://<prod-system-rootURL>/debugpython  

This sets a cookie in your browser which directs your network requests to a debug container on the backend.

5. Use the prod frontend as usual for debugging

6. Navigate to https://<prod-system-rootURL>/debugpython_off  to clear the cookie again

Outcome:

  • Websocket requests are redirected to default webcontainer —> no debug disturbances

  • Python code is executed in your debug container

  • All other requests are redirected to the default web container