Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when using conditional breakpoint with instanceof.Is it me or eclipse?

My condition for break :
event instanceof org.geomajas.gwt.client.widget.event.SearchEvent I have tried other variations like event instanceof SearchEvent / with parantheses and with/out ";"

The error : Evaluations must contain either an expression or a block of well-formed statements

The solution: ?

BTW I'm using jdk 1.6.25

like image 831
osh Avatar asked Jun 14 '13 18:06

osh


People also ask

Why Breakpoints are not working in Eclipse?

Check that your project is in the Source tab in Debug Configurations. If it's not then the breakpoints are ignored.

How do I apply conditional Breakpoints in eclipse?

To set a conditional breakpoint just set a breakpoint as normal then right click on the breakpoint and select Breakpoint Properties. In the window that opens click Enable Conditional. Then type in counter (or some variable name) == 303 (or whatever value you want to set).

How do I debug a breakpoint in eclipse?

To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint. Alternatively, you can double-click on this position. The Breakpoints view allows you to delete and deactivate Breakpoints and modify their properties.

How do you do a conditional breakpoint?

To set a conditional breakpointOn the Home tab, in the Breakpoints group, choose Set/Clear Condition. In the Debugger Breakpoint Condition window, enter a condition. On the Home tab, in the Breakpoints group, choose List. In the Debugger Breakpoint List window, enter a condition in the Condition column.


1 Answers

return event instanceof org.geomajas.gwt.client.widget.event.SearchEvent;

should do the trick

like image 171
Kristof Avatar answered Sep 28 '22 19:09

Kristof