# 多进程调试

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/idea/llms.txt).

> **TL;DR**
> 所需插件  :
>
>
>
> `JavaScript 和 TypeScript`  -  插件与 IntelliJ IDEA 捆绑在一起，并默认启用。
>
>
>
> `Node.js` ，  `JavaScript Debugger`  -  在   设置 | 插件   页面上安装插件。 插件仅在具有 Ultimate 订阅的 IntelliJ IDEA 中可用。

使用 IntelliJ IDEA，您可以调试由  Node.js  的 [child_process.fork() 方法](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options) 或 [cluster 模块](https://nodejs.org/api/cluster.html) 启动的其他进程。 此类进程显示为   线程  在   帧  窗格中   调试器选项卡   [调试工具窗口](debug-tool-window.html)。

![Node.js 应用程序：多进程调试](https://resources.jetbrains.com/help/img/idea/2026.3/ws_node_multiprocess.png)

Procedure:

1. 在这些流程中设置 [breakpoints](using-breakpoints.html)进行调试。

2. 请按照 [运行和调试 Node.js](running-and-debugging-node-js.html#Node.js_run)中的描述创建一个  Node.js 运行/调试配置。

3. 在工具栏的   运行   小部件列表中，选择新创建的    配置，然后点击其旁边的 ![调试按钮](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.run.debug.svg)。

[调试工具窗口](debug-tool-window.html)打开后，   帧  列表会在附加进程启动时将其显示为线程。

要检查进程的数据（变量、监视等），请在列表中选择其线程，并在   变量  和   监视  窗格中查看其数据。 当您选择另一个进程时，窗格的内容会相应更新。

