Configure Pycharm to debug Odoo 8

I installed the pycharm community version 2016.

I tried to configure it to debug Odoo, as shown in capture

enter image description here

When I open a python file, set a breakpoint and click on the debug icon, I get an exception:

enter image description here

Also openerp, fields, api are underlined in red.

Any suggestions please. I am using Windows 8.1 as OS

Update

According to Mariusz Answer, I can now clic on the debug bud without any errors.

Now I put the breakpoint on the code to execute the execution, but the breakpoint is never reached (the code is inside the bud method) while this method is executing. I see the result on the page oode.

enter image description here

+4
source share
2

- exe , openerp-, odoo python. , , Odoo Python 3.4.1 : enter image description here : , PyCharm .

+1

, gevent. , openerp/__init__.py

import sys
evented = False
#if sys.modules.get("gevent") is not None:
#    evented = True
0

Source: https://habr.com/ru/post/1650800/


All Articles