Run with ctrl-shift-f10 never finishes

Answered

I'm new to pycharm, and I don't understand why even a simple hello world program never finishes after ctrl-shift-f10:

   def main():
   print('hello worldx')
   return


   if __name__ == '__main__':
   main()

I have to hit ctrl-F2 every time to stop it, is that expected?

3 comments

Please check that "Show command line afterwards" option is disabled in your Run/Debug configuration.

0

Ah, that's what I was missing.  Thanks.

0

Note this option is now called "Run with Python console" in 2018.1

0

Please sign in to leave a comment.