Many a time happen that you are trying to connect your eclipse debugger through remote application server like JBOSS and it always shows waiting to connect.
This happens because the port you are trying to connect is bind to some another application.
Find and listening port
1. Go to run
2. Type cmd
3. Write this command -----------
netstat -ano | find "<port>"
*<port> you are trying to listen in my case this is 8080
you will get a list of process listening to that port
4. Kill all the task
write this command
taskkill /F /PID 7820
7820-- This is the Id which you can see in the last coloumn
That's it your port is free to use now.