I am trying to set up a conditional breakpoint in decompiled code, but Eclipse keeps giving me the error:
Conditional breakpoint has compilation error(s)
Reason: Evaluations must contain either an expression or a block of well-formed statments
My case is pretty simple, just trying to compare against a string value. I've tried all of the following and I get errors with every single one:
myObj.toString() == "abc123"
myObj.toString().equals("abc123")
if(myObj.toString() == "abc123"){ return true; }
true == true
I've also tried every combination of having or not having a semicolon at the end of the line(s) and every combination of spacing and newlines and every combination of having or not having {} surrounding my condition. Basically, I have no idea why this isn't working...
The code I am trying to debug through is inside a jar that is decompiled with JD-Eclipse. Normal breakpoints work fine in this code.
Does anyone know what's going on here???