pycharm debug command line program with parameters

background:

This is the case when the program is executed using the command line, but the final result is directly obtained after running.

It is impossible to see how the program is executed at each step. For this reason:

Solution:

1. Open Run->Edit Configurations

2. Fill in the parameters, pay attention to only fill in the parameters, python does not need to fill in the command line execution.

3. OK, you can interrupt and debug.

Guess you like

Origin blog.csdn.net/Answer3664/article/details/103460640