跳至內容
選單
此問題已被標幟
1 回覆
4719 瀏覽次數

Hi, I am trying to debug python code in terminal, to see what values my variables are getting etc. I am working with odoo version 12.0 . I am not running odoo through docker container.

I have tried with launch.json . When i am running debugger , the error is : no module named odoo found

Here is the configuration I added.

"name": "Python: Odoo",
"type": "python",
"request": "launch",
"pythonPath": "/home/shringarg/Desktop/flux_project/project-env/bin/python",
"console": "integratedTerminal",
"program": "${file}",           
"args": ["-r shringarg -w shringarg --dev xml,qweb,reload --addons-path /home/shringarg/Desktop/project/odoo-12.0/addons,/home/shringarg/Desktop/project/odoo-12.0/odoo/addons,/home/shringarg/Desktop/project/odoo-12.0/custom-addons,/home/shringarg/Desktop/project/odoo-12.0/custom_addons",],
"cwd": "${workspaceRoot}",           
"env": {},            
"envFile": "${workspaceRoot}/.env",

Please let me know what can i do for debugging.  

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
7
8月 20
35489
4
5月 24
6892
1
7月 23
2195
3
6月 23
3010
4
6月 22
4665