Debug ODOO using pdb on localhost

Check this video for debugging ODOO using pdb on localhost

  1. At line intended to debug add import pdb pdb.set_trace()
  2. From terminal start odoo python /usr/bin/odoo -c /etc/odoo.conf
  3. Take appropriate action on ODOO.
  4. On reaching the break point, browser will stop and terminal will show line number with pdb prompt
  5. Use pdb commands to step, continue etc. Check pdb commands

Of course, other more interactive debuggers like pycharm can also be tried.

1 Like