V2EX  ›  英汉词典

Watchpoint

定义 Definition

Watchpoint(名词):监视点。在计算机编程和调试中,指一种调试工具设置的断点类型,当特定变量或内存地址的值发生变化时,程序会自动暂停执行。在军事用语中,也指观察哨或监视点。

发音 Pronunciation

/ˈwɒtʃˌpɔɪnt/

例句 Examples

The debugger stopped at the watchpoint when the variable changed.
当变量发生变化时,调试器在监视点处停了下来。

By setting a watchpoint on the memory address, the developer was able to trace exactly when and where the data corruption occurred during the complex multithreaded operation.
通过在内存地址上设置监视点,开发者得以精确追踪数据在复杂的多线程操作中何时何地发生了损坏。

词源 Etymology

Watchpointwatch(监视)和 point(点)两个词组合而成。watch 源自古英语 wæccan,意为"保持警醒、看守";point 源自拉丁语 punctum,意为"刺出的点"。该词最初用于军事领域,指士兵设置的观察哨位。随着计算机科学的发展,20世纪后半叶被引入调试术语,特指当被监视的数据发生变化时触发暂停的调试机制,与 breakpoint(断点)相区别——断点在特定代码行暂停,而监视点在特定数据变化时暂停。

相关词汇 Related Words

文学与技术作品引用 Literary & Technical References

  • 在 Brian Kernighan 与 Rob Pike 合著的 The Practice of Programming 中,讨论了包括 watchpoint 在内的各种调试技术。
  • Richard Stallman 等人编写的 Debugging with GDB 手册中对 watchpoint 有详细的技术说明,是学习该概念的经典参考资料。
  • Steve Maguire 的 Writing Solid Code 中提到利用 watchpoint 来追踪难以复现的内存相关缺陷。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   949 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 20:38 · PVG 04:38 · LAX 13:38 · JFK 16:38
♥ Do have faith in what you're doing.