Here is a link on setting conditional breakpoints in NetBeans: http://www.java-hair.com/?p=61
The relevant text:
In NetBeans, create a breakpoint, the
right click on the little pink square
that signifies the break. Click on
“Customize”. When the customize dialog
comes up, check “Condition” and fill
in the condition. Above is an example
of this dialog in NetBeans.
They also cover Eclipse and JDeveloper.
Edit: in response to your comment - no, this can't be done the way you want it. The way a debugger sets a breakpoint is by changing a byte in the instruction where the breakpoint is set. When the instruction is evaluated, the presence of that byte transfers control to the debugger, who replaces the byte with whatever was there before. When execution is resumed, the debugger moves the instruction pointer to the instruction where the breakpoint was set.
A conditional breakpoint on a single line is then easy to implement - when control transfers to the debugger, he simply checks the condition, and if it is not true then he resumes execution automatically.
So, how would it work if you didn't have to attach the conditional breakpoint to a line? It would have to be attached to every single line (just as you surmised you would need to do to achieve this effect otherwise). I haven't had the need to do this, but I imagine it would be undesirable as it would slow program execution considerably. A better approach might be to use your IDE to search through the code for all instances of currency to see where it might be set, and put conditional breakpoints around there.