0

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?

1
  • 1
    you can define the Debug config in Pycharm, which gives you the option to define the command line options. Commented Oct 5, 2014 at 22:09

1 Answer 1

2

You can actually set a debug configuration in PyCharm:

enter image description here enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.