Stepping through Python Code in Pycharm

Completed

I have an game executable that calls a file called 'MyBot.py' and runs it against its own bot.

I can run the executable from the command file on MacOSX using the below command:

./the_file "python3 MyBot.py"

I am trying to debug the code i have written in Mybot. How do i run the executable from PyCharm so it calls MyBot and lets me step into my code and see the values i am generating?

Running the MyBot.py with the Run command doesnt invoke the executable or lets me step through in it.

0
1 comment

Duplicate of the support request in Zendesk.

You can run it from the command line and then use Attach to local process feature in PyCharm.

 

0

Please sign in to leave a comment.