Intellij Debugger doesn't stop at conditional breakpoint

Viewed 862

When I put my conditional breakpoint in this loop

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

with the condition site.getCode().equals("1234");

I have the message:

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?

Can somebody help me to solve it?

Thanks.

0 Answers
Related