콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2836 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
0
8월 25
703
0
7월 25
465
1
7월 25
688
0
6월 25
602
1
5월 25
1230