settings.json:
{
"python.pythonPath": "C:\\VirtualEnvs\\odoov12\\Scripts\\python.exe",
"python.autoComplete.extraPaths": [
"${workspaceRoot}/odoo/addons",
"${workspaceRoot}/odoo",
"${workspaceRoot}/odoo/openerp/addons" ],
"python.linting.enabled": true,
"python.linting.pylintArgs": ["--load-plugins", "pylint_odoo"],
"python.formatting.provider": "yapf",
"python.linting.pycodestyleEnabled": true,
"python.linting.pylintEnabled": false,
"python.linting.pylamaEnabled": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 500,
"files.exclude": {
"**/*.pyc": true
},
}
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": "Odoo-Zea",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"program": "${workspaceFolder}/odoo/odoo-bin",
"pythonPath": "C:\\VirtualEnvs\\odoov12\\Scripts\\python.exe",
"args": [
"--config",
"${workspaceFolder}/environments/zaeelektronik/zae-odoo.conf",
"-u",
"zae_elektoronik",
"-u",
"tcmb_currency_rate_live"
"-d",
"zae_local",
],
"console": "integratedTerminal",
},
]
}
Here is my settings.json and launch.json. I start to debugging (Pressing F5) debugging is started and after 2 sec later debug has finished. The status bar is orange when i m pressing F5 but after that the status bar immadiately blue again. I use Odoo v12. By the way I can develop Odoo using Pycharm. It works on it . But it doesn't work on VS Code. Can you help me ? What I am doing wrong ?