RE: JSP Debug / IDE's
I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: JSP Debug / IDE's
At least parts of this can be accomplished using Cactus. It allows you to run tests and log information while the code is actually deployed in the container. It's not the same as attaching to a container and setting breakpoints, etc. but I think it will help to avoid the need for that work anyway. Why set a break point and visually inspect a variable when you can write a Cactus test that inspects all the variables you want while only flagging you when it finds one that's not what it expects? In addition, with Cactus tests, you can leave them in the codebase and rerun them periodically (or even with every build/deploy cycle during development and testing) and use them to perform ongoing regression testing of all your code. StrutsTestCase makes writng Cactus tests for struts pretty straightforward. I provide sample code along with instructions and a copy of Catus in my book. Kevin http://www.strutskickstart.com edgar [EMAIL PROTECTED] on 11/14/2002 12:36:20 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:'Struts Users Mailing List' [EMAIL PROTECTED] cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject:JSP Debug / IDE's I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. What am I missing? Thanks Edgar -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: JSP Debug / IDE's
If I am understanding you correctly, you can debug the java code, but not the jsp code simply by connecting to the webserver daemon. Thanks, I'll give it another go. Edgar -Original Message- From: Karr, David [mailto:david.karr;attws.com] Sent: Thursday, November 14, 2002 12:39 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Re: JSP Debug / IDE's
I don't debug jsps because I've never had the need to. If your jsp is that complicated then you've probably got scriptlets/business logic in there :-(. David From: edgar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: JSP Debug / IDE's Date: Thu, 14 Nov 2002 12:36:20 -0500 I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. What am I missing? Thanks Edgar -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: JSP Debug / IDE's
Why would you ever want to debug a JSP. I see the need to debug action classes and back end components, but not JSPs. -Original Message- From: edgar [mailto:edgar;blue-moose.net] Sent: Thursday, November 14, 2002 12:58 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's If I am understanding you correctly, you can debug the java code, but not the jsp code simply by connecting to the webserver daemon. Thanks, I'll give it another go. Edgar -Original Message- From: Karr, David [mailto:david.karr;attws.com] Sent: Thursday, November 14, 2002 12:39 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
RE: JSP Debug / IDE's
I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. I've debugged web applications with Netbeans 3.4/Weblogic 7.0 using the same way. It works fine.
RE: JSP Debug / IDE's
I finally found the Resin specific debug startup command to make the whole thing work. Much better. Thanks Edgar -Original Message- From: edgar [mailto:edgar;blue-moose.net] Sent: Thursday, November 14, 2002 12:58 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's If I am understanding you correctly, you can debug the java code, but not the jsp code simply by connecting to the webserver daemon. Thanks, I'll give it another go. Edgar -Original Message- From: Karr, David [mailto:david.karr;attws.com] Sent: Thursday, November 14, 2002 12:39 PM To: 'Struts Users Mailing List' Subject: RE: JSP Debug / IDE's I've been able to use Netbeans to debug web applications in Tomcat, simply by using the remote debugger feature, allowing me to attach to a java process started with the correct parameters to assume remote debugging. I just mount my source trees and set breakpoints. This will work with other application servers that allow you to just use a script to run java on a class to start the appserver. Other debuggers also use the same feature. Now if you want to directly debug JSP pages, or you want to use the embedded appserver in a debugger, that gets complicated, and is pretty different with debugger/appserver combination. -Original Message- From: edgar [mailto:edgar;blue-moose.net] I know this is not exactly the place for this question but most of you have a opionions and experience on this issue. If you have a standalone piece of Java code with a 'main' debugging is a piece of cake. If you are triing to run an iteractive debugger on the browser / jsp / java combination it is not so straight forward. I have tried with Codeguide and Eclipse (I am using Resin as my webserver) and I can't get it to do anything approaching usefullness. -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org