Debug
“Debug” 最初指清除设备中的虫子(bug),现主要指在软件或系统中查找并修复缺陷。作动词时常与 code、app、issue 搭配,如 debug the login flow(调试登录流程)。名词形式 debugging 更常见,debug 也可作名词指调试过程本身。
- “She spent the afternoon debugging the payment module.” (她花了一下午调试支付模块。)
- “The team needs to debug this crash before the release.” (团队需要在发布前排查这次崩溃。)
- “Can you help me debug why the API returns null?” (你能帮我查查 API 为什么返回 null 吗?)
“Debug” 由 de-(去除)与 bug(虫子、程序错误)合成,20 世纪 40 年代在计算机领域流行,Grace Hopper 的“飞蛾进继电器”故事让 bug 与程序错误紧密关联。
“de-” 表示“去除、解除”;“-bug” 在此为计算机俚语中的“程序缺陷”,整体即“除错、排错”。
在欧美软件文化中,debug 是日常高频词,常与 breakpoint、log、stack trace 连用;强调系统化排查而非盲目改代码。
- 固定搭配: “debug mode” (调试模式), “debug a script” (调试脚本), “debug step by step” (逐步调试)
- 名词: debugging
- 工具: debugger
“de + bug”:把 bug(虫子/错误)从代码里 de 掉——就是 debug。
“After the demo failed, the engineer stayed late to debug the config file and found a missing comma.” (演示失败后,工程师加班调试配置文件,发现少了一个逗号。)