Solution is for ubuntu 13.10 but it's the same for all linux as well as windows.
(On windows you just need to change the export)
Next, run the catalina.sh
./catalina.sh jpda run
From eclipse, go to Run->Debug configuration -> select the Remote Java Application -> Add new
don't change anything except the port with the above port.
Select the web project in my case.