简体   繁体   English

在命令行传递 arguments 时如何在 pycharm 中调试?

[英]How to debug in pycharm when passing arguments on the command line?

I usually use breakpoints in pycharm to debug my programme,as the picture shows debug picture Now my program is running with arguments passed from the command line (as shown below, using the parser module).我通常使用 pycharm 中的断点来调试我的程序,如图所示调试图片现在我的程序正在运行,使用从命令行传递的 arguments(如下图,使用解析器模块)。 I want to set breakpoints to debug it.我想设置断点来调试它。 What should I do?我应该怎么办? my program我的程序

Go to Run --> Run configurations and there you can specify the command line arguments that you want to pass to your program. Go 运行 --> 运行配置,您可以在此处指定要传递给程序的命令行 arguments。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM