在 Pycharm 中并行运行两个脚本 [英] Running two scripts in parallel in Pycharm
问题描述
我有两个脚本,server.py 和 client.py.
I have two scripts, server.py and client.py.
我希望能够通过一个操作按顺序启动它们.
I want to be able to start them running, in that order, with one action.
如何在 Pycharm 中实现这一目标?请注意,我希望能够设置断点
How can achieve that in Pycharm? Please note that I want to be able to set breakpoints
推荐答案
你可以给 Multirun 试一试:
允许一次运行多个运行配置:分组多个运行配置并单击即可启动它们.不仅应用和测试运行配置可以分组,但其他 Multirun配置可以组织成单次运行配置.
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.
它将让您在 Debug
模式下运行所有配置并使用断点.
It will let you run all configurations in Debug
mode and use breakpoints.
这篇关于在 Pycharm 中并行运行两个脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!