Intellij Debugger不会在条件断点处停止

时间:2017-10-04 10:08:19

标签: java debugging intellij-idea breakpoints

当我将条件断点放在此循环中时

for(Site site :sites)
{
    //something
    //something
    //conditional breakpoint here
    //something
}

条件site.getCode().equals("1234");

我收到了消息:

Problem processing VM event:
Breakpoint: Error: Failed to evaluate breakpoint condition
'site.getCode().equals("1234")'
Reason: Cannot find local variable 'site'
Would you like to stop at the breakpoint?

有人可以帮我解决吗?

感谢。

0 个答案:

没有答案