--inspect-port=[host:]port


设置检查器激活时使用的 host:port。在通过发送 SIGUSR1 信号激活检查器时很有用。除非传递了 --disable-sigusr1

¥Set the host:port to be used when the inspector is activated. Useful when activating the inspector by sending the SIGUSR1 signal. Except when --disable-sigusr1 is passed.

默认主机是 127.0.0.1。如果指定了端口 0,则将使用随机可用端口。

¥Default host is 127.0.0.1. If port 0 is specified, a random available port will be used.

有关 host 参数用法,请参见下面的 安全警告

¥See the security warning below regarding the host parameter usage.