I am not sure what you are doing.
I know I used the remote debugging option.
I modified the startofbiz.sh to turn on the debug and called it startofbizdebug.sh.
I turned on the wait command so I start it and then I start the remote debug in eclipse.
It lets me set break points and debug java.
I wish I could do the same for the other technologies, like groovy, FTL, minilang, etc.
If you need more info let me know, I got my stuff looking online for debugging under eclipse. One of the sites had remote as one of the options and it was the only one I got working.
Joel Fradkin