You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by e-Denton Subscriber <su...@e-denton.com> on 2004/07/04 01:40:37 UTC

Sysdeo, Eclipse, Tomcat

I am trying to figure out how to debug servlets and JSPs. I am running
Windows ME,
Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1.

So, how should Sysdeo be set up?

Should I be able to set a breakpoint normally in a servlet?

How do I set a breakpoint in JSP?

Where is my soruce (and binaries) supposed to be?

Miscellaneous questions:

1. What is Tomcat base? (Preferences/Tomcat)
2. Any JVM settings needed? (Preferences/Tomcat/JVM settings)

Thanks for your help. I have already tried to find a tutorial on the Web,
but nothing has helped.




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Sysdeo, Eclipse, Tomcat

Posted by Kunthar <ku...@gmx.net>.
A better way to test JSP's at runtime is using Netbeans.
To do this, you should have total control over your server as root/admin.
1. Install Netbeans to server. www.netbeans.org
2. Installation of Tomcat + Ant (necessary jars + Apache httpd etc.) should be ready.
3. When you run Netbeans from your Linux client woila, you got Netbeans working on your 
local comp by strong Xserver abilities. If you sadly use Windoze try VNC Server-Client and do not call me :=)
4. Since Netbeans has its own HTTP Monitor you can see all passing parameters to Tomcat. This is quite good.
5. You can add break points, evaluate values and see whats up really at runtime as you do in other IDEs. 
6. Eclipse is good but as far as i compare Netbeans, Eclipse and IntelliJ, Netbeans hits.

Final Note: 90% percent of the compilation errors are arising from the ignorance of programmer.
Sometimes it is better to spend time for reading then spend time for trying to find a good debugger. 
I was using holly Homesite before i totally moved to Linux several days ago :=)

Take care all,

Gokhan



Harry Mantheakis wrote:

>Hello
>
>
>  
>
>>Should I be able to set a breakpoint normally in a servlet?
>>    
>>
>
>
>Yes, as long as you have started Tomcat using the Sysdeo plugin (from within
>Eclipse).
>
>
>  
>
>>How do I set a breakpoint in JSP?
>>    
>>
>
>
>AFAIK that is not possible, at least not with the Sysdeo plugin. Something
>like the 'MyEclipse' plugin might be able to help you there, though that is
>a commercial plugin which you can test for a month or so.
>
>
>  
>
>>Where is my source (and binaries) supposed to be?
>>    
>>
>
>
>Source can be anywhere you like - as long as Eclipse knows where it is, and
>can compile your project, the (servlet and object) debugging will work.
>
>Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW.
>
>I cannot help with the other two miscellaneous questions, though I do not
>think you need be concerned with the Tomcat 'base' attribute if you have a
>simple setup, and again, to begin with at least, I do not think you need be
>concerned with JVM settings. (There are several JVM settings that you have
>to consider on a production server, but that is another story.)
>
>My solution to debugging JSPs is not to put any code in them at all (!)
>
>I do everything with custom tags, which of course, are just objects that can
>debugged in the usual way.
>
>Good luck!
>
>Harry Mantheakis
>London, UK
>
>
>  
>
>>I am trying to figure out how to debug servlets and JSPs. I am running
>>Windows ME,
>>Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1.
>>
>>So, how should Sysdeo be set up?
>>
>>Should I be able to set a breakpoint normally in a servlet?
>>
>>How do I set a breakpoint in JSP?
>>
>>Where is my soruce (and binaries) supposed to be?
>>
>>Miscellaneous questions:
>>
>>1. What is Tomcat base? (Preferences/Tomcat)
>>2. Any JVM settings needed? (Preferences/Tomcat/JVM settings)
>>
>>Thanks for your help. I have already tried to find a tutorial on the Web,
>>but nothing has helped.
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Sysdeo, Eclipse, Tomcat

Posted by Harry Mantheakis <ha...@mantheakis.freeserve.co.uk>.
Hello


> Should I be able to set a breakpoint normally in a servlet?


Yes, as long as you have started Tomcat using the Sysdeo plugin (from within
Eclipse).


> How do I set a breakpoint in JSP?


AFAIK that is not possible, at least not with the Sysdeo plugin. Something
like the 'MyEclipse' plugin might be able to help you there, though that is
a commercial plugin which you can test for a month or so.


> Where is my source (and binaries) supposed to be?


Source can be anywhere you like - as long as Eclipse knows where it is, and
can compile your project, the (servlet and object) debugging will work.

Binaries go in WEB-INF/classes. It is safer to *package* your classes, BTW.

I cannot help with the other two miscellaneous questions, though I do not
think you need be concerned with the Tomcat 'base' attribute if you have a
simple setup, and again, to begin with at least, I do not think you need be
concerned with JVM settings. (There are several JVM settings that you have
to consider on a production server, but that is another story.)

My solution to debugging JSPs is not to put any code in them at all (!)

I do everything with custom tags, which of course, are just objects that can
debugged in the usual way.

Good luck!

Harry Mantheakis
London, UK


> I am trying to figure out how to debug servlets and JSPs. I am running
> Windows ME,
> Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1.
> 
> So, how should Sysdeo be set up?
> 
> Should I be able to set a breakpoint normally in a servlet?
> 
> How do I set a breakpoint in JSP?
> 
> Where is my soruce (and binaries) supposed to be?
> 
> Miscellaneous questions:
> 
> 1. What is Tomcat base? (Preferences/Tomcat)
> 2. Any JVM settings needed? (Preferences/Tomcat/JVM settings)
> 
> Thanks for your help. I have already tried to find a tutorial on the Web,
> but nothing has helped.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org