当我将条件断点放在此循环中时
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?
有人可以帮我解决吗?
感谢。