Skip to main content
property ClusterSettings.inspectPort

Sets inspector port of worker. This can be a number, or a function that takes no arguments and returns a number. By default each worker gets its own port, incremented from the primary's process.debugPort.

Type

number
| (() => number)
| undefined
Back to top