跳转到内容

Debugging

“Debugging” 指通过日志、断点、单步执行等手段找出程序错误原因并修复的全过程。既可作不可数名词(the debugging process),也可指某次具体调试(a long debugging session)。

  1. “Debugging often takes longer than writing the original code.” (调试往往比写初版代码更耗时。)
  2. “Remote debugging lets you inspect a server-side error locally.” (远程调试让你在本地检查服务端错误。)
  3. “Good logging makes debugging production issues much easier.” (完善的日志让生产环境问题更易排查。)

来自 debug + -ing,debug 源于 de- + bug(程序错误),-ing 表过程或活动。

“debug” + “-ing” 构成动名词,表示持续的调试行为或调试这一技术活动。

软件工程中将 debugging 与 coding、testing、deploying 并列为核心环节;谚语 “Debugging is twice as hard as writing the code” 在开发者社区广为流传。

  • 固定搭配: “debugging session” (调试会话), “debugging tools” (调试工具), “pair debugging” (结对调试)
  • 动词原形: debug
  • 相关: debugger, breakpoint

“bug” 在代码里 “ing”(进行中)——正在抓虫排错,就是 debugging。

“During debugging, she traced the bug to a race condition that only appeared under heavy load.” (调试过程中,她把问题追查到仅在高压下出现的竞态条件。)