Exforsys.com
 
Home Tutorials WebSphere
 

WebSphere V5.0 : Debugging - View variables

 

WebSphere V5.0 : Debugging - View variables

In this tutorial you will learn about WebSphere V5.0 : Debugging - View variables (e.g., display expressions and use inspectors), Variables view, Inspecting values and Evaluating expressions.



View variables (e.g., display expressions and use inspectors)

Variables view

This view displays information about the variables in the currently-selected stack frame.


Variables view


Inspecting values

When a thread suspends, the top stack frame of the thread is automatically selected. When stack frame is selected, you can see the visible variables in that stack frame in the Variables view.

The Variables view shows the value of primitive types. Complex variables can be examined by expanding them to show their members.


Evaluating expressions

When the VM suspends a thread (due to hitting a breakpoint or stepping through code), you can evaluate expressions in the context of that thread's stack frame.

1. Select the stack frame in which an evaluation is to be performed. For the detail panes of the Variables and Expressions views, the evaluation context will be a selected variable. If no variable is selected, the selected stack frame will be the context.


2. Expressions can be entered and evaluated in the following areas:


  • Display view

Display


Display


  • Detail pane of the Expressions view

Expressions


Expressions


  • Detail pane of the Variables view

Variables


Variables


  • Java editor when it is displaying source and it is not read-only

Java editor


Variables


3. Select the expression to be evaluated and select Display or Inspect from the context pop-up menu. The result of evaluating the expression is shown in the Display view (if Display was chosen), or in the Expressions view (if Inspect was chosen).


Java editor


Expressions



NOTE: Evaluations cannot be performed in threads that have been manually suspended.


_________________


Author: Mikalai Zaikin. Please Click Here to visit Authors site for any updates and changes to the study notes.



Read Next: WebSphere V5.0 : Debugging - Scrapbook Page



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape