PinspectPort
Bun

property

cluster.ClusterSettings.inspectPort

inspectPort?: number | () => number

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.