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

How can I debug own modules in odoo in realtime or the odoo modules? Without restarting or including the modules every time ?

Is there any way to debug python code like this? I mean to change a code part and then the chance is included automaticlly ?


Thank you

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

Start the server instance and append

--dev=all
/path/to/odoo-bin -d mydb --dev=all


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

Use PDB (Python Debugger) and run Odoo from command-line.

The debugger output will be visible in the terminal.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 18
7045
3
thg 2 25
3643
0
thg 5 24
46
1
thg 4 24
3401
3
thg 12 23
14774