I have tried this back and forth for a longer time, but somehow it does not work.
I have also tried with and without semicolon. I have also tried to run this line right before the breakpoint to make sure the condition really works,
logger.error("I am Here! " + "#PDU Elements: " + pdu.getVariables().size());
and it returns 13 as expected.
Does anyone know how to get this to work?
EDIT
On request I will add the lines of code run, at the breakpoint,
logger.error("I am Here! " + "#PDU Elements: " + pdu.getVariables().size());
Trap trap = Trap.createTrapFrom(variableMap, instanceIdentificationNumber); // Breakpoint in margin on this line.
EDIT 2
The problem seems to be related to that IDEA randomly misses some breakpoints. I have also tried some unconditional breakpoints (should always stop) and these only stops at specific times.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…