I am new to jboss and myeclipse.
I want to debug my web app using **jboss 4.0.4** 
I am using MyEclipse.

I gone through various links and found we need to uncomment following line in **run.bat** file

```
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

```

then after starting run.bat console shows 

```
Listening for transport dt_socket at address: 8787 

```

Then next how do I tell MyEclipse to attach to port 8787 and run my application in debug mode.