Open project file in pycharm
Make sure to install the python environment
At this time, the python3.7 version is used. If not, you need to add the environment: add interpreter
Select the base environment (base) in anaconda (installation reference https://blog.csdn.net/m0_67357141/article/details/123633490 ), or select the newly created environment under the envs folder
The interface of the 2021 version is as follows, and the 2022 version has slightly changed
After setting up the environment, click Run to start, if the button is gray, you can run run xxx by right-clicking
3. Set command line parameters
Right-click to run the file, select configuration, you can set command line parameters, format -- parameter name 1 parameter value 1 -- parameter name 2 parameter value 2
4.debug
Put a red dot in front of the statement you want to stop in main, and select the debug mode to run
Continue to run a line of code; jump into the function involved in this line; jump to the next breakpoint
5. Solve the error
You can find the source code in github, see issues