22

I have two scripts, server.py and client.py.

I want to be able to start them running, in that order, with one action.

How can achieve that in Pycharm? Please note that I want to be able to set breakpoints

Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551

3 Answers3

24

You can also do:

  1. Run -> Edit Configurations...
  2. Find and add a new "Compound" project
  3. Add your configurations into a single component
  4. Run it
user3360767
  • 868
  • 7
  • 18
19

Run -> Edit Configurations... Edit your script configuration Check the "Allow parallel run" checkbox at the top

Then just run then normally. You can also pin run tab to not be closed

TreantBG
  • 1,192
  • 6
  • 25
  • 44
9

You can give Multirun a try:

Allows to run multiple run configurations at once: group multiple run configurations and start them in a single click. Not only application and test run configurations can be grouped, but other Multirun configurations can be organized into single run configuration.

It will let you run all configurations in Debug mode and use breakpoints.

grundic
  • 4,641
  • 3
  • 31
  • 47