java / eclipse中的数据断点 [英] data breakpoints in java/eclipse

查看:118
本文介绍了java / eclipse中的数据断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您使用VS开发C ++时,您有这个惊人的数据断点功能,当内存中某个地址的数据发生变化时触发。



有类似的功能在eclipse中开发java时?



谢谢!



编辑:关于值更改时暂停功能:我的印象是,执行仍然必须到达断点的行。事情是我希望它可以随时随地触发。

解决方案

你可以在一个字段上设置一个观察点:将光标放在要声明的字段的行上,并选择菜单 Run - >切换观察点

或者通过双击该行的左边距来设置断点。



您可以更改观察点的属性,如暂停使用现场访问挂起添加后添加字段修改。只需右键单击左边距的观察点,然后选择断点属性...



搜索帮助观察点获取更多信息:


观察点是一个特殊的断点,只要给定表达式的值发生更改,就会停止应用程序的执行,而不指定可能发生的位置。 ...



when developing C++ with VS you have this amazing feature of data breakpoints, which trigger when the data at a certain address in memory changes.

is there a similar feature when developing java in eclipse?

thanks!

edit: about the "suspend when value changes" feature: i have the impression that the execution must still reach the line where the breakpoint is. the thing is i want it to trigger anywhere as soon as the value changes.

解决方案

You can set a watchpoint on a field: put the cursor at the line where the field is being declared and select the menu Run -> Toggle Watchpoint
or just set a breakpoint by double-clicking at the left margin on that line.

You can change the properties of the watchpoint like suspend on field access or suspend on field modification after adding it. Just right-click on the watchpoint at the left margin and select Breakpoint Properties...

Search the help for watchpoint to get more information:

A watchpoint is a special breakpoint that stops the execution of an application whenever the value of a given expression changes, without specifying where it might occur. ...

这篇关于java / eclipse中的数据断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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