Remote Debug in eclipse

Hello!I am new to eclipse...Can someone tell me how to use remote debug? I thought it is done by running "Debug..." after selecting the java file...Sorry for being so ignorant about this...I will really appreciate your help. Thank you.
[249 byte] By [september_27a] at [2007-10-3 5:58:07]
# 1
No its not! you already did it! The execute is in the flow!
TheGamea at 2007-7-15 0:39:35 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2

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.

duggandlaa at 2007-7-15 0:39:35 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 3

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.

september_27a at 2007-7-15 0:39:36 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 4
This one might help - http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134Let me know if you have any questions.
gursesla at 2007-7-15 0:39:36 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 5

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.

september_27a at 2007-7-15 0:39:36 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 6

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

gursesla at 2007-7-15 0:39:36 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 7
Remote Debug is working now... :) I'm so happy. The codes were not executed because some settings are not configured well. It's okay now...Thank you for the help. :)
september_27a at 2007-7-15 0:39:36 > top of Java-index,Archived Forums,Debugging Tools and Techniques...