This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello: 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. Thanks, Bradley
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 Mark.