Debugging with PyCharm terminal arguments

Liondancer

I have been using PyCharm for a bit so I am not an expert.

How I normally ran my programs was with the terminal like so:

program.py -t input1 -t1 input2

I was wondering how can I debug this?

For other programs I wrote, I did not have any arguments so debugging was simply setting break points and pressing debug.

Andrew_Lvov

Menu: Run -> Edit configurations -> "+" (add new config) -> Python.

Script name: program.py

If you need to debug a script from installed packages, such as tox, you can specify the full path too. For example: Script name: /home/your_user/.envs/env_name/bin/tox

Above /home/your_user/.envs/env_name is a path to virtual environment containing tox package.

Script params: -t input1 -t1 input2

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related