如何通过-v";PyIDE中python的参数

如何通过-v";PyIDE中python的参数,python,pycharm,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 3526134268-v /home/user1/my_codings/gitStuffs/Cura_Debian_Release/usr/share

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

/usr/bin/python2.7 /home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py 3526134268-v /home/user1/my_codings/gitStuffs/Cura_Debian_Release/usr/share/Cura/Cura.py 回溯(最近一次调用上次):文件 “/home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py”, 第71行,输入 globals=run_file(file,None,None)file“/home/user1/Downloads/pycharm-community-2016.1.4/helpers/pydev/pydev_run_in_console.py”, 第31行,在run_文件中 pydev_imports.execfile(file,globals,locals)#执行脚本IOError:[Errno 2]没有这样的文件或目录:'-v'正在运行-v


如果您这样运行它,它应该可以工作:

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

/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

在PyCharm中,您应该添加
-v/home/user1/Downloads/PyCharm-community-2016.1.4/helpers/pydev/pydev_run_在_console.py 35261 34268
解释器选项中

如果您这样运行它,它应该会工作:

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

/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

在PyCharm中,您应该在控制台py 35261 34268中添加
-v/home/user1/Downloads/PyCharm-community-2016.1.4/helpers/pydev/pydev_run_
内部
解释器选项

谢谢您的回答。但我想从pyCharm本身开始。我需要知道我能把钥匙放在哪里-v@PraveenMax请编辑您的问题并添加运行/调试配置中的信息。特别是
脚本参数
解释器选项
中的内容。感谢您的回答。但我想从pyCharm本身开始。我需要知道我能把钥匙放在哪里-v@PraveenMax请编辑您的问题并添加运行/调试配置中的信息。尤其是
脚本参数
解释器选项
中的内容。