debugging and odoo 14 project with dap mode

118 Views Asked by At

I could use some help in setting up a solution for debugging a Odoo 14 project with Emacs dap mode

I have debug py in the dev dependencies of my odoo project but what am I supposed to do with it ?

I made this hypothesis

python -m debugpy --listen 1096 --wait-for-client  /path/to/odoo/odoo-bin -c ./plusinn.cfg

but then I read (in the issue tracker) that dap mode doesn't support requets of type "attach" for python processes

1

There are 1 best solutions below

3
On

Should work if you register like this,

(require 'dap-python)
(setq dap-python-debugger 'debugpy)
(dap-register-debug-template "attach debugpy"
  (list :type "python"
        :port <your debugpy port>
        :request "attach"
        :name "attach debugpy"))