title: View error traceback when running commands from VS Code Python debugger
body: <p>When I use the VS Code debugger with Python to stop at some breakpoints, I often write some lines straight in the debug console (use it as interactive Python shell within my program).</p>
  <p>The problem is, when I have errors in these lines, when typed from the debug console, I don't see the full Python-style traceback of the error, but only the last line (&lt;Error_type&gt;: ), i.e., without references to code file where the error was raised, the line raised it, and the full stack trace.</p>
  <p>Is there any way to configure the VS Code debugger to show the full traceback for errors raised by lines executed from the debugger?</p>
  <p>I develop (and debug) on remote machine through ssh.</p>
  <p>Example:</p>
  <p>I wrote a file named tmp2.py, which contains:</p>
  <pre><code>class A:
      def __init__(self, val):
          print(val)
  
  a = A()
  </code></pre>
  <p>If I put debug point on line 5: <code>print('start')</code>,
  and then from the debug console type directly <code>a = A()</code>, I see this one line output:</p>
  <pre class="lang-none prettyprint-override"><code>TypeError: __init__() missing 1 required positional argument: 'val'
  </code></pre>
  <p>but if I run the full program I see the this elaborated output:</p>
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File &quot;/home/innereye/anaconda2/envs/py3tf2/lib/python3.7/runpy.py&quot;, line 193, in _run_module_as_main
      &quot;__main__&quot;, mod_spec)
    File &quot;/home/innereye/anaconda2/envs/py3tf2/lib/python3.7/runpy.py&quot;, line 85, in _run_code
      exec(code, run_globals)
    File &quot;/home/innereye/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/debugpy/__main__.py&quot;, line 45, in &lt;module&gt;
      cli.main()
    File &quot;/home/innereye/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py&quot;, line 430, in main
      run()
    File &quot;/home/innereye/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py&quot;, line 267, in run_file
      runpy.run_path(options.target, run_name=compat.force_str(&quot;__main__&quot;))
    File &quot;/home/innereye/anaconda2/envs/py3tf2/lib/python3.7/runpy.py&quot;, line 263, in run_path
      pkg_name=pkg_name, script_name=fname)
    File &quot;/home/innereye/anaconda2/envs/py3tf2/lib/python3.7/runpy.py&quot;, line 96, in _run_module_code
      mod_name, mod_spec, pkg_name, script_name)
    File &quot;/home/innereye/anaconda2/envs/py3tf2/lib/python3.7/runpy.py&quot;, line 85, in _run_code
      exec(code, run_globals)
    File &quot;/home/innereye/deeplearning/tmp2.py&quot;, line 6, in &lt;module&gt;
      a = A()
  TypeError: __init__() missing 1 required positional argument: 'val'
  </code></pre>
  <p>which directs me to the actual file and line where the error raises.</p>
  <p>I want the debugger to show me the second output also for lines executed directly from the debug console.</p>