There are lots of debug configuration options in Eclipse. What specifically are you attempting to debug? JSPs? Use the Debug Perspective. There are also a number of Views available for this Perspective. The most commonly used are Variables and Breakpoints and each have their own options. Look also at Windows >> Preferences >> Run/Debug. Also, try searching for "debug" in Help >> Help Contents. [ September 19, 2007: Message edited by: Jay Damon ]
Joined: Jul 09, 2007
I do would like to debug both my JSP and my action classes. But I dont know much how to configure the debug perspective in eclipse.
I have tried netbeans and was able to set breakpoint that allows me to step into/over each of my JSP and Servlet class.
Just would like to find a resource on how to do the same in Eclipse
Which servlet container are you using? Tomcat, or something else?
Eclipse supports a number of different servlet containers, including Tomcat. If you go to Window / Preferences, and then to Server / Installed Runtimes, you can tell Eclipse where your servlet container is. If your project is a Java web project, you can then deploy your application to the servlet container from Eclipse, and start the server in debugging mode from Eclipse. You can put breakpoints in the code of your JSPs, servlets or other classes in your webapp and debug it while it's running in the servlet container.
What specifically do you want to configure in the Debug perspective? When you launch a Debug Perspective, it is essentially ready to go. As Jesper says, all you need to do is start your server in debug mode. The application will stop at any breakpoints you have set and, in the Debug VIEW of the Debug perspective, you will have options to Step Into, Step Over, Step Return, etc.
Your best bet for a debugging resource is to search for "debug" in Help >> Help Contents of Eclipse.
Joined: Jul 09, 2007
I tried looking for the Server Perspective in Window->Preferences->Server, but no entry for Server can be found. Also I tried Window->Show View->Other->Server but cant find it also.
I am using MyEclipse 3.2, am I missing some plugin here or forgot to make some coonfiguration? Also I used tomcat as my web server. I am quite a newbie in using Eclipse IDE.
Thanks for the help..
Joined: Jul 31, 2001
"Servers" is a View not a Perspective. From a Debug (or any other) perspective, select Window >> Show View >> Others >> Server >> Servers. Once a Servers view is open, right-click on the view body and select New >> Server. Follow the prompts to create a server for the appropriate version of Apache Tomcat.