在Eclipse中设置内存断点 [英] Setting Memory Breakpoints in Eclipse

查看:110
本文介绍了在Eclipse中设置内存断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Eclipse中设置内存断点?也就是说,我想设置一个条件断点,该断点在给定内存位置的数据发生更改时触发.

How do you set memory breakpoints in Eclipse? That is, I would like to set a conditional breakpoint that triggers when the data at a given memory location changes.

这个问题已经提出,但是仅提供的答案不会解决问题,并且基本上与

This question has been asked before, but the only provided answer doesn't address the question and is essentially the same information that can be found in the Eclipse Online help.

我正在寻找的是更详细的信息(或者一个示例将是很好的信息),用于在Eclipse中设置条件断点,该断点将在特定内存地址的数据更改时触发.

What I am looking for is more detailed information (or an example would be good) for setting a conditional breakpoint in Eclipse that will trigger when the data at a specific memory address changes.

推荐答案

您需要使用

You need to use a watchpoint. From the page:

  1. 在编辑器中突出显示该变量,或在大纲"中选择它 视图.
  2. 单击运行>切换监视点.
  3. 执行以下任一操作:
    • 要在读取监视表达式时停止执行,请选中读取复选框.
    • 要在写入监视表达式时停止执行,请选中写入复选框.
  1. Highlight the variable in the editor, or select it in the Outline view.
  2. Click Run > Toggle Watchpoint.
  3. Do any of the following:
    • To stop execution when the watch expression is read, select the Read check box.
    • To stop execution when the watch expression is written to, select the Write check box.

这篇关于在Eclipse中设置内存断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆