コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4411 ビュー

I install Odoo11 and Intellij 2017.3.2 on my PC(windows 10). I open the server directory of Odoo11 with Intellij and set the python framework. And install some requirements and VC++ 14 runtime. I want to use Intellij to debug odoo addons code and set the break point at odoo code. 

 

I use the parameter of Script Path as odoo-bin and Paraemeters as "-w openpgpwd -r openpg --addons-path=odoo/addons" in Intellij. And then run the Intellij project. 

 

I see the warn message of standard output. 

Use Intellij to run the server directory of Odoo11 , and then the porogram stop at the line as below: 

 

2018-04-02 07:58:34,476 20180 INFO ? odoo.addons.base.ir.ir_actions_report: Will use the Wkhtmltopdf binary at C:\Program Files (x86)\Odoo 11.0\thirdparty\wkhtmltopdf.exe 

 

The odoo web page[localhost: 8069 ] does not display? Does somebody know how to run in Intellij and debug with adding break? How can I run odoo source code to open the odoo web page and debug some break points? 

 

Error message in output windows as below: 

 

"C:\Program Files (x86)\Odoo 11.0\python\python.exe" odoo-bin -w openpgpwd -r openpg --addons-path=odoo/addons 

ERROR: couldn't create the logfile directory. Logging to the standard output. 

2018-04-02 07:58:33,874 20180 INFO ? odoo: Odoo version 11.0-20180302 

2018-04-02 07:58:33,874 20180 INFO ? odoo: Using configuration file at D:\tmp\server1\odoo.conf 

2018-04-02 07:58:33,874 20180 INFO ? odoo: addons paths: ['C:\\Users\\user1\\AppData\\Local\\OpenERP S.A.\\Odoo\\addons\\11.0', 'D:\\tmp\\server1\\odoo\\addons'] 

2018-04-02 07:58:33,874 20180 INFO ? odoo: database: openpg@localhost:5432 

2018-04-02 07:58:33,897 20180 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069 

2018-04-02 07:58:34,476 20180 INFO ? odoo.addons.base.ir.ir_actions_report: Will use the Wkhtmltopdf binary at C:\Program Files (x86)\Odoo 11.0\thirdparty\wkhtmltopdf.exe 

アバター
破棄
著作者 最善の回答

 I had solved this problem and write the article as below: 

Odoo Class 5 Integrate and Debug with Pycharm or Intellij 2018.1 

http://blog.xuite.net/akira32/home/574971104  

アバター
破棄
関連投稿 返信 ビュー 活動
2
7月 24
14093
4
3月 22
12686
1
7月 21
8274
0
4月 20
4770
1
5月 18
3088