web app debugging in Eclipse
I have a Java Struts app in Eclipse and I'm looking for a way to see the values of request and session's variables (as the NetBeans display them), when running the app on Tomcat.
For some reason, the "Variable View" in debuggin mode is always empty, no way to fill it with variables I need to follow. Internal or external browser, no difference. Please give me some hints, thx ONE DAY LATER:Thank you for the answers. I will refine a little further my question, because still I'm not getting what I want. My reference is the table displayed in NetBeans (the "HTTP Monitor") were I can see the parameters and attributes associated with every Get or Post, ordered in "Request", "Session", "Context" tab. In Eclipse the closer I can get now is to display in the "Expressions" view the variables I need. The problem is that there are not updated! For example, a "_client" variable linked with a drop-down select control will not reflect the changes.开发者_高级运维 Rather than a snapshot of the variable, I need a dynamic overview. Any ideas?Run Tomcat with JPDA enabled and then you can attach the Netbeans debugger to it.
The variable view will be populated only when a thread is suspended. Put a breakpoint on a line of interest, wait for the debugger to suspend the thread, and then examine the variables.
精彩评论