You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Edson Alves Pereira <Ca...@netscape.net> on 2000/12/31 01:06:03 UTC

Re: [How to debug?]

  Hey Mariano, my name's Edson. Well is very easy to debug servlet and JSP
too. For a servlet you must to intercept a class called SnoopServlet, like
this:


	$ jdb sun.servlet.http.HttpServer
	Initializing jdb...
	0xee2fa2f8:class(sun.servlet.http.HttpServer)
	> stop in SnoopServlet.doGet
	Breakpoint set in SnoopServlet.doGet
	> run
	run sun.servlet.http.HttpServer
	running ...
	main[1] servletrunner starting with settings:
	port = 8080
	backlog = 50
	max handlers = 100
	timeout = 5000
	servlet dir = ./examples
	document dir = ./examples
	servlet propfile = ./examples/servlet.properties


	I thing that it solve your problem, else send your doubt to us!

	With best wishes,
	Edson Alves Pereira
///////////////////////////////////////////////////////////////////////
Mariano Kamp <mk...@codamax.com> wrote:
Hi,

  I recently switched to Linux and therefore I am now using ant and emacs
instead of Visual Age Java. 

  I am not using VAJ on Linux, because IBM is not providing a recent
version of it on Linux. The second reason is that VAJ is based on a
database, the repository, which is pretty good, but makes it hard to
integrate with cvs etc. 

  Anyway. The only thing I am really missing is the debugger. How do you
guys debug your applications/servlets?

Regards,
Mariano

-- 
mariano kamp
codamax ag
hessenring 89

61348 bad homburg v.d.h.
germany

phone  +49 6172 182 473
fax    +49 6172 182 475
mobile +49 177 727 9468


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


____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at http://home.netscape.com/webmail

RE: [How to debug?]

Posted by Stephen <st...@webreserve.com>.
I use JBuilder 3.5 Foundation (the free version) and it works great for
debugging. If you have more memory then you can try 4.0 but I like 3.5
better right now. The good thing about JBuilder is it is highly
configurable. For example, I am able to put everything in the "webapps"
folder and create the application in the same place it will be deployed. VA
3.02 works OK but there is a caching problem if you add a new class or
change some of its once it has already been run. There are some workarounds
to this but I haven't gotten it to work. With JBuilder you just load all the
tomcat classes into your project and when its time to debug you just run the
main class that starts up tomcat. Since everything is running inside the
same jvm it will let you debug your servlets as they are run.

-----Original Message-----
From: Mariano Kamp [mailto:mkamp@codamax.com]
Sent: Sunday, December 31, 2000 7:19 AM
To: general@jakarta.apache.org
Subject: Re: [How to debug?]


Hello Edson,

  thanks very much for your answer. I just tried it with tomcat and it is
working alright for me.

  It seems quite powerful to me and I will go ahead and use it, still do
you know any *good* graphical frontend?

Mariano

On 30 Dec 2000, Edson Alves Pereira wrote:

>   Hey Mariano, my name's Edson. Well is very easy to debug servlet and JSP
> too. For a servlet you must to intercept a class called SnoopServlet, like
> this:
>
>
> 	$ jdb sun.servlet.http.HttpServer
> 	Initializing jdb...
> 	0xee2fa2f8:class(sun.servlet.http.HttpServer)
> 	> stop in SnoopServlet.doGet
> 	Breakpoint set in SnoopServlet.doGet
> 	> run
> 	run sun.servlet.http.HttpServer
> 	running ...
>
>   Anyway. The only thing I am really missing is the debugger. How do you
> guys debug your applications/servlets?
>

--
mariano kamp
codamax ag
hessenring 89

61348 bad homburg v.d.h.
germany

phone  +49 6172 182 473
fax    +49 6172 182 475
mobile +49 177 727 9468


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


Re: [How to debug?]

Posted by Mariano Kamp <mk...@codamax.com>.
Hello Edson,

  thanks very much for your answer. I just tried it with tomcat and it is
working alright for me. 

  It seems quite powerful to me and I will go ahead and use it, still do
you know any *good* graphical frontend?

Mariano

On 30 Dec 2000, Edson Alves Pereira wrote:

>   Hey Mariano, my name's Edson. Well is very easy to debug servlet and JSP
> too. For a servlet you must to intercept a class called SnoopServlet, like
> this:
> 
> 
> 	$ jdb sun.servlet.http.HttpServer
> 	Initializing jdb...
> 	0xee2fa2f8:class(sun.servlet.http.HttpServer)
> 	> stop in SnoopServlet.doGet
> 	Breakpoint set in SnoopServlet.doGet
> 	> run
> 	run sun.servlet.http.HttpServer
> 	running ...
> 
>   Anyway. The only thing I am really missing is the debugger. How do you
> guys debug your applications/servlets?
> 

-- 
mariano kamp
codamax ag
hessenring 89

61348 bad homburg v.d.h.
germany

phone  +49 6172 182 473
fax    +49 6172 182 475
mobile +49 177 727 9468


Re: [How to debug?]

Posted by Mariano Kamp <mk...@codamax.com>.

-- 
mariano kamp
codamax ag
hessenring 89

61348 bad homburg v.d.h.
germany

phone  +49 6172 182 473
fax    +49 6172 182 475
mobile +49 177 727 9468