Java – is it possible to define a set of breakpoints in eclipse and trigger them only after a given event occurs?

I want to set a set of breakpoints in several tight loops But I just want them to trigger after a given event occurs

The problem is that all these breakpoints are defined in very low-level modules, so they can't know when to raise high-level events

If I can set a special conditional breakpoint in high-level code, it will be perfect, so that after the breakpoint condition is met, from that moment on, it will start to trigger any other breakpoint found in the program (I don't particularly care about that high-level breakpoint)

Is there any way to accomplish such a thing? If not, how to avoid this restriction? The only way I can think of is to define a temporary singleton to keep the state, and let my low-level breakpoints depend on the flag of the singleton

Solution

If you right-click the breakpoint property, you will see many options

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>