aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Adding Breakpoints to JSP's in Eclipse 3.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Adding Breakpoints to JSP Watch "Adding Breakpoints to JSP New topic
Author

Adding Breakpoints to JSP's in Eclipse 3.5

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi Everyone,

I am using Eclipse 3.5 (Galileo) package and I would like to know that is it possible to put breakpoints in JSP's to debug them? I have tried adding breakpoints in some JSP's, but I get the error message of something like "Cannot add a breakpoint here" or something!!! Is there a plug in that can do it?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Have you created a server (within Eclipse) and associated your web application project with a server? Oh, and did you create a Dynamic Web Application project? I think all of those things have to be in place before you can debug JSPs.


JBoss In Action
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Yes I have created a JBoss and a Tomcat 6.0.20 server within eclipse. I also have created a Dynamic Web Project and still i am unable to add breakpoints to JSP's.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Just to double check, I tried it again and it works for me - Eclipse stops at the breakpoint in my JSP. If you want to know what I did, you can read the help text in Eclipse on debugging JSPs (it's under Web Tools Platform User's Guide, "Debugging a JSP file under a server")
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

I m separate user from the original thread originator -

I am using my own Ant script to build and deploy to Tomcat. I use Sysdeo plugin in Eclipse to start and stop Tomcat. But it is strange the debug does not work...
What can be the problem? The only thing I see different is that I do not use the Eclipse Server (Tomcat).

The strange part is that this worked some time back!!


===Vyas Sanzgiri===
My Blog
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Vyas, please post your question in a new topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding Breakpoints to JSP's in Eclipse 3.5
 
Similar Threads
how to retrace an unknown NullPointerException
DEBUG MAVEN PROJECT IN ECLIPSE
Eclipse is not puasing at debug points
Debugging in java j2ee
Debugging Servlets in Eclipse