在 Pycharm 中并行运行两个脚本 [英] Running two scripts in parallel in Pycharm

查看:78
本文介绍了在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆