Skip to Content
Menu
This question has been flagged
5 Replies
15041 Views

I would like to debug and develop ODOO 10 in Visual Studio Code on MS Windows.

Is this possible. Is there any guides on how to do this?


Thank you in advance for any help or guidance.


Jaf

Avatar
Discard
Best Answer

Hi 

Yes there is a video in this regard

https://www.youtube.com/watch?v=_v6fzGlr0LY


But Visual studio can't be use because it works with iron-python which not work with Odoo (OpenERP).


look here 

https://www.odoo.com/forum/help-1/question/openerp-and-python-tools-for-visual-studio-5564

 

Avatar
Discard
Best Answer

I am using odoo11. But I am pretty sure vscode debug config is the same for odoo 10. To debug in vscode, create `launch.json` file inside `.vscode` folder. The following is simple configuration inside `launch.json` for my windows machine. In fact, I use very similar config for ubuntu. This script assume odoo is in project folder.
```

{
    // 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",
            "type""python",
            "request""launch",
            "program""${workspaceFolder}/odoo-bin",
            "args": [
                "-r",
                "odoo",
                "-w",
                "odoo",
                "--addons-path",
                "addons",
            ],
            "console""integratedTerminal"
        }
    ]
}


```

vscode version: 1.39.2 (September 2019)

odoo version: 11

My related answer on SO: https://stackoverflow.com/a/58805517/8211573

Avatar
Discard
Author Best Answer

Thank you Bouabaker Abdallah...., unfortunately it is in Spanish and for Visual Studio.

Am looking for assistance in English and Visual Studio Code.


"Not able to debug in Visual Studio". Is this still valid for ODOO 10? (The link you provided was in 2013 and for OpenERP)


BTW, would appreciate if you could upvote this reply for me to get 8 karma. So that I can comment in your reply stream instead :-)



Avatar
Discard

Thank

You can watch the video in English subtitles

Author

You are right. Went to settings and select subtitles, Auto-translate.