Any Idea how I can debug using breakpoint in Eclipse while running CUBA studio
I’m sure it’s possible but I don’t use Eclipse. For debugging purposes, I usually use the logger. In your class, import the following:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Then in your class, add this line:
private Logger log = LoggerFactor.getLogger(.class);
Now in your code, you can add your log statements.
Hope this helps.
Hello, Harinder!
Yes, it’s possible to debug in Eclipse. Please follow this steps:
- Install CUBA Eclipse plugin as described in the [url=https://docs.cuba-platform.com/cuba/latest/manual/en/html-single/manual.html#ide_integration]docs[/url].
- Open Project Properties in CUBA Studio and set Eclipse as Java IDE.
- Run Build -> Create or update Eclipse project files
- Select Entity or Screen that you want to debug or just go to the Project Properties tab in CUBA Studio and click IDE (make sure Eclipse IDE is running)