V2EX  ›  英汉词典
Enqueued related words: Ptrace

Strace

定义 / Definition

strace:Linux/类 Unix 系统上的命令行调试工具,用来“跟踪(trace)”一个进程执行时发起的系统调用与接收的信号,常用于排查程序卡住、权限/文件路径错误、网络连接失败等问题。(也常写作工具名 strace。)

发音 / Pronunciation (IPA)

/ˈɛs.treɪs/

例句 / Examples

I used strace to see which file the program was trying to open.
我用 strace 查看程序到底想打开哪个文件。

By running strace with output redirected to a log, the team discovered the service was repeatedly failing on a permission-denied system call during startup.
通过运行 strace 并把输出重定向到日志,团队发现服务在启动时反复因一次“权限被拒绝”的系统调用而失败。

词源 / Etymology

strace 通常被理解为 “system trace(系统跟踪)” 的缩写:用“追踪”的方式记录程序与操作系统内核交互的细节(系统调用、信号等),从而帮助定位问题。

相关词 / Related Words

文学与著作中的用例 / Notable Works

  • The Linux Programming Interface(Michael Kerrisk)——讨论系统调用与调试时常提到使用 strace 观察程序行为。
  • UNIX and Linux System Administration Handbook——在故障排查与诊断章节中常将 strace 作为常用工具之一。
  • How Linux Works(Brian Ward)——介绍进程、系统调用与诊断工具时会提及 strace 的用途。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   692 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 21:33 · PVG 05:33 · LAX 13:33 · JFK 16:33
♥ Do have faith in what you're doing.