Once in a while, especially when developing keywords, I need to debug the java code which implements these keywords.
I found the trick on this page.
This is what you need to do:
- On the command line
If you put suspend=y the maven jvm will wait for the debugger to connect
(or mvn integration-test or whatever)
The output is
Listening for transport dt_socket at address: 8000
- In Eclipse go to Debug Configurations -> Remote Java Application and create a new Configuration on the port 8000.
You’re done. Don’t forget to place your breakpoints.