Debugger
“Debugger” 是集成开发环境(IDE)或独立程序中的调试工具,支持设置断点(breakpoint)、单步执行(step over/into)、监视变量与调用栈。Chrome DevTools、GDB、LLDB 都是常见 debugger。
- “Attach the debugger to the running process to inspect memory usage.” (将调试器附加到运行中的进程以检查内存占用。)
- “The built-in debugger paused at the line where the exception was thrown.” (内置调试器在抛出异常的那一行暂停。)
- “She prefers using a graphical debugger over print statements.” (她更喜欢用图形化调试器而非打印语句。)
由 debug(调试)+ -er(执行者/工具)构成,表示用于 debug 的程序或设备。
“debug” + “-er”:表示执行调试动作的人或物,在计算机语境中多指工具。
从早期硬件开关面板到现代 IDE 内嵌调试器,debugger 是程序员日常工具;许多语言运行时都提供官方或第三方 debugger。
- 固定搭配: “attach a debugger” (附加调试器), “debugger breakpoint” (调试器断点), “remote debugger” (远程调试器)
- 动词: debug
- 过程: debugging
“debug” + “er”:帮你 debug 的那个 er(工具人/工具)——就是 debugger。
“The debugger highlighted the null pointer the moment he stepped into the function.” (他一单步进入函数,调试器就标出了空指针。)