click the run tab in menu. u will get popup with some options . select debug. u will be popped with a dialog box. select Remote java Application in configurations list. on the right side give some name in the name textbox. in the connection properties add the host and port details u wan t to connect to.eg: host:locahost , port:8080. thats all.
click debug. before doing this ur server should be started.
I already did that. I'm not sure if debug is really running...but when i run "Debug..." it will connect to the VM and several threads will run but when I press F6 or F8 to start debugging...it seems nothing is happening...I don't understand it. It has been 3 days since I try to figure this out. Hope you can help me.
P.S. Thank you for your reply.
So sorry for the late reply...Anyway thank you for the help...I have browsed on the link that you gave me and I have read the part on Remote Debug. I followed the instructions there but I still don't see something like that on "Figure3 Breakpoint Hit in Eclipse Debugger". I don't understand why. I have already specified breakpoints in my code. I have read from other forums and they say something about the main method()...I don't have a main method in my java application...Is that the reason why Remote Debug won't work? Please help...Your prompt reply will really be greatly appreciated. Thank you.
You do not have to have a main() method in the application. In fact you can have a breakpoint in any Java component. It just has to be in debugger's scope and it'll get visited.
Example: Let's say you're rinning a Tomcat app. You can have a breakpoint inside a servlet's doGet() methof and when you invkoke the servlet from Firefox, Eclipse will pause the excution and will bring the debugger perspective up.
From the article "Eclipse Debug window should automatically pop-up with the stack pointer on your first breakpoint (See Figure 3: Breakpoint hit in Eclipse's debugger). After that, you can use all the various functions that the debugger has to offer, namely variable assignments, step-into, drop to frame, etc."
If you're not seeining anything, chances are that you're not executing that piece of code. Double check that and let me know.
Levent Gurses