How to pass "-v" argument for python in pyCharm IDE
<p>I want to run a python program in verbose mode in pycharm IDE. I specified "-v" in Interpreter option under Run/Debug Configurations window. But it shows the following error:</p>

<blockquote>
  <p>/usr/bin/python2.7
  /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py
  35261 34268 -v
  /home/user1/my_codings/gitStuffs/Cura_Debian_Release/usr/share/cura/cura.py
  Traceback (most recent call last):   File
  "/home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py",
  line 71, in 
      globals = run_file(file, None, None)   File "/home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py",
  line 31, in run_file
      pydev_imports.execfile(file, globals, locals)  # execute the script IOError: [Errno 2] No such file or directory: '-v' Running -v</p>
</blockquote>

<p>It should work if you run it like this:</p>

<pre><code>/usr/bin/python2.7 -v /home/user1/my_codings/gitStuffs/Cura_Debian_Release/usr/share/cura/cura.py
</code></pre>

<p>If you need debugger (or to add other files) then <code>-v</code> should go first:</p>

<pre><code>/usr/bin/python2.7 -v /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py 35261 34268 /home/user1/my_codings/gitStuffs/Cura_Debian_Release/usr/share/cura/cura.py
</code></pre>

<p>In PyCharm you should add <code>-v /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py 35261 34268</code> inside <code>Interpreter options</code>.</p>

python pycharm