如何通过" -v" pyCharm IDE中python的参数

时间:2016-09-08 13:32:31

标签: python pycharm

我想在pycharm IDE中以详细模式运行python程序。我指定了" -v"在“运行/调试配置”窗口下的“解释器”选项中。但它显示以下错误:

  

/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(最近一次调用最后一次):文件   " /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py" ;,   第71行,in       globals = run_file(file,None,None)File" /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py",   第31行,在run_file中       pydev_imports.execfile(file,globals,locals)#execute脚本IOError:[Errno 2]没有这样的文件或目录:' -v'正在运行-v

1 个答案:

答案 0 :(得分:0)

如果你像这样运行它应该有效:

    <service id="app.custom_factory.comment" class="App\Factory\CommentFactory" decorates="app.factory.comment">
        <argument type="service" id="app.custom_factory.comment.inner" />
    </service>

如果您需要调试器(或添加其他文件),那么/usr/bin/python2.7 -v /home/user1/my_codings/gitStuffs/Cura_Debian_Release/usr/share/cura/cura.py 应首先出现:

-v

在PyCharm中,您应该在/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 内添加-v /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py 35261 34268