title: how to setup odoo in visual studio 2019?
body: <p>I am currently a trainee as an odoo developer. There are multiple IDEs where we can use debug odoo like my team mates are doing. some on pycharm, some on eclipse and so on. I used to do development on Visual Studio code and run through Python interpreter.
  But now, I want to switch to proper IDE. I have downloaded visual studio 2019 for this purpose.</p>
  <p>My question is, how to create and edit debug configuration for odoo like we do in pycharm.
  what I did is</p>
  <ol>
  <li>created a new project of python application</li>
  <li>right click on <strong>solution &gt; add &gt; existing folder</strong> and then selected whole odoo folder that I have downloaded from github</li>
  <li>right click on <strong>solution &gt; properties</strong> and in general tab, I gave path of 'odoo-bin' against 'startup file' and in debug tab, gave configuration of odoo i.e. <br/>(<code>-r db_user -w db_password --addons-path=addons</code>).</li>
  </ol>
  <p>I saved this thing, but when I click on start button <kbd>F5</kbd> it starts debugging but breaks on function in 'api.py' file.</p>
  <p>The function I used is:</p>
  <pre><code>def __getitem__(self, model_name):
          &quot;&quot;&quot; Return an empty recordset from the given model. &quot;&quot;&quot;
          return self.registry[model_name]._browse((), self)
  </code></pre>
  <p>and the error shown is</p>
  <blockquote>
  <p>exception thrown (None,)</p>
  </blockquote>