如何解决ModuleNotFoundError:在vscode中调试文件python时没有名为“odoo”的模块
嘿,我想在自定义模块中调试我的python文件以了解变量的值,我有这样的配置vscode launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0","configurations": [
{
// "name": "Python: Current File",// "type": "python",// "request": "launch",// "program": "${file}",// "console": "integratedTerminal"
"name": "Python: Odoo","type": "python","request": "launch","stopOnEntry": false,"python": "/opt/odoo12/odoo-venv/bin/python3",//"program": "${file}",use this to debug opened file.
//"program": "${workspaceRoot}/Path/To/odoo.py","program": "/opt/odoo12/odoo/odoo-bin","args": [
"--config=/etc/odoo12.conf"
],"cwd": "${workspaceRoot}","console": "externalTerminal",}
]
}
在这种情况下,不仅仅是自定义模块错误,但是当我尝试在odoo路径中的odoo默认模块中进行调试时也是如上所述的错误,在程序和应用程序中没有问题,应用程序运行流畅,但我想调试因为知道变量的值, 为了促进开发过程,有什么问题?谢谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。