How to use conditions in breakpoints in idea?

Viewed 18086

I have tried this back and forth for a longer time, but somehow it does not work.

enter image description here

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.

5 Answers

Just click Right Mouse Button on your breakpoint

enter image description here

CTRL+Shift+F8 or CMD+Shift+F8 to view all active breakpoints enter image description here

Related