File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse debugging help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse debugging help" Watch "Eclipse debugging help" New topic
Author

Eclipse debugging help

Dhaval J. Patel
Ranch Hand

Joined: Mar 10, 2011
Posts: 90

Hello Everyone,
I am currently trying to understand a web application code (that does not have any documentation unfortunately). I would like to know if i can display session attributes and the values of all the variables inside those objects (So basically the full map) in the variables view of eclipse, so that I can see what's cooking inside those attributes at run time. Is there any way of doing this ?? It would give me a really good view of whats going on in the web application and would also help me debug applications later on during development. If yes, then I could follow the same procedure for viewing other objects on the heap and would give a wonderful view of the web application.

Thanks,
Dhaval.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

In the debug view you will find an tab full of values. Or, if your want it, when your debug hits a line you can select the variable and press ctrl+shift+i.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Dhaval J. Patel
Ranch Hand

Joined: Mar 10, 2011
Posts: 90

Thanks for the reply.
I dont have anything in my debug window except a list of threads. I am a newbie to eclipse. It would be really helpful if you could elaborate a little.

Thanks,
Dhaval
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You could reset your view than. Because the default debug view will display to you tons of windows.

After you select the debug view you can reset the perspective in the menu Window > Reset Perspective.

Maybe this will help you.
Dhaval J. Patel
Ranch Hand

Joined: Mar 10, 2011
Posts: 90

Thanks. I have a lot of values in the variables view in the debug perspective. but it doesnt have the session attributes Is there a way to add session attributes to that list
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

If you want just to see what is inside you can put the code

HttpSession session = req.getSession();

You do not need to use it, but the session value will apear in the variables window.
Dhaval J. Patel
Ranch Hand

Joined: Mar 10, 2011
Posts: 90

I got it .. Thanks for your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse debugging help
 
Similar Threads
Thread Safe? Request Attributes and Local Variable
deploying and running web application in the home pc
Difference. between ServletContext and Session Attributes
How to save current state of variables in a flat file while debugging in eclipse
Need suggestion