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

I use VS Code extension Python version 2.2x, Python interpreter version 2.7x, and use Odoo 10 of the latest version. I'm using WSL with Ubuntu 18.4 LTS.


I cannot debug the custom modules my company creates. I've specified the module's path in the argument, and it does run but it's not breaking at the breakpoints I specified.


Here's my launch.json:

{

"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "/home/ihsansfd/odoo/odoo-bin",
"python": "/usr/bin/python",
"args": [
"--db_port=5434",
"--addons-path=/mnt/d/kuliah/odoo/repo/MUK/base,/mnt/d/kuliah/odoo/repo/MUK/core,/mnt/d/kuliah/odoo/repo/MUK/modifier",
],
"console": "integratedTerminal",
"justMyCode": true
},

Aside from request launch, I also tried attach and using a pip library debugpy for that but it's still only running without debugging.

I am really sure that it should hit the breakpoint because I've set a print statement there and it printed!


Any help would be appreciated. If you need any further detail please do ask.

Ả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 25
771
0
thg 7 25
509
1
thg 7 25
735
0
thg 6 25
652
1
thg 5 25
1292