Chiefy
Chiefy

Reputation: 119

Using the debugging features of pyCharm from the command line

So I'm trying to debug some python code in pyCharm, and I'm wondering how to do this from the command line, where I can specify inputs. For example, say I want to execute the following:

python pacman.py -l mediumMaze -p SearchAgent -a fn=bfs

I can't simply click the debug button in pyCharm, as that just runs the main method without the extra specifications. Could someone suggest a way to run this command inside pyCharm so I can use the debugging feature?

Upvotes: 0

Views: 405

Answers (1)

Nafiul Islam
Nafiul Islam

Reputation: 82470

You can actually set a debug configuration in PyCharm:

enter image description here enter image description here

Upvotes: 2

Related Questions