Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
11094 Lượt xem

Hello,

I installed PyCharms which is on my local Windows OS machine. I have odoo server running on some IP. I configured remote debugging in pycharms and configured the interpeter to be the one on server. This is all easily done with PyCharms online tutorials.


But what do I have to configure on odoo server side? Do I have to change some files, enable debugging or so? Has anybody successfuly used PyCharms to debug odoo remotely?                    

Ảnh đại diện
Huỷ bỏ

you may get some help from here: http://stackoverflow.com/questions/10240018/how-to-use-pycharm-to-debug-python-script

Câu trả lời hay nhất

Teoreticaly it can be done.. but much easier way is to setup local development environment, debug/write code and deploy code to server...

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I use pudb and pdb .

For use it . You must "import pudb" and when you want have your debug console you must use "pudb.set_trace()"

.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Guys in order to be able of debug on odoo 8 or later. We have to edit something first on the main __init__.py file. Check this post here by Axel.

https://www.odoo.com/forum/help-1/question/pycharm-4-odoo-debug-not-working-port-8072-96628#answer-99051

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 17
5120
6
thg 3 23
35390
6
thg 4 20
17295
0
thg 2 18
6933
2
thg 3 15
5166