输出和退出代码
🌐 Output and exit codes
探测模式只会把最终的探测报告打印到标准输出,其它情况下会屏蔽子进程的标准输出/标准错误。当探测会话结束时,探测进程通常会以代码 0 退出,并把最终报告打印到标准输出。如果子进程在探测会话结束前以非零代码退出,或者探测会话因其他原因无法完成,最终报告会记录一个终端 error 事件。
🌐 Probe mode only prints the final probe report to stdout, and otherwise silences
stdout/stderr from the child process. When the probing session ends,
the probing process typically exits with code 0 and prints a final report to
stdout. If the child process exits with a non-zero code before the probe
session ends, or the probe session cannot complete for another reason, the
final report records a terminal error event.
当 error.code 是 'probe_failure' 或 'probe_timeout' 时,探测过程会以非零代码退出,这表示记录的命中可能不完整。这种情况下,error.message 会包含恢复提示,而 error.probe(如果存在)是报告中 probes 数组的索引,用于在最大努力的基础上识别可能的问题探针,帮助调试。
🌐 When error.code is 'probe_failure' or 'probe_timeout', the probing process
exits with a non-zero code, indicating recorded hits may be incomplete.
In this case, error.message will contain recovery hints, and error.probe,
when present, is an index into the report's probes array that identifies
the possible culprit probe on a best-effort basis to help guide debugging.
无效的参数以及严重的启动或连接失败可能导致探测进程以非零代码退出,并在标准错误输出中打印错误信息,而不会生成最终的探针报告。
🌐 Invalid arguments and fatal launch or connect failures may cause the probing process to exit with a non-zero code and print an error message to stderr without a final probe report.