wood burning stoves
The moose likes Servlets and the fly likes Debugging Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Debugging Servlets" Watch "Debugging Servlets" New topic

Debugging Servlets

Bradley Rintoul

Joined: Apr 01, 2003
Posts: 14
I'm trying to debug a servlet in NetBeans using its internal Tomcat server. The trouble I'm having stems from the inability to access a Session object... Is this possible? It seems insane that it's so easy to start debugging a servlet but then no Session object is available...?
Any help in debugging servlets - especially in the NetBeans IDE - would be greatly appreciated.
Mark Howard
Ranch Hand

Joined: Feb 14, 2001
Posts: 285
Hi Bradley
I've only recently started using NetBeans and have come across the same thing before - no session variables displaying in debug mode.
Yet the bizarre thing is I'm sure that I did see them at one stage. I haven't bothered much since but I'm sure I must've fiddled some or other preference setting which switched it off
You may need to resort to the old System.println routine.
(I don't know much about IDE's, but I find NetBeans great to use despite this 'please show me the session variables in debug mode' fiasco)
I'll have another look around and let you know if I find anything more helpful than this message
I agree. Here's the link: http://aspose.com/file-tools
subject: Debugging Servlets
It's not a secret anymore!