Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Debugging local variables in JBoss/Tomcat using Eclipse

Reply
Thread Tools

Debugging local variables in JBoss/Tomcat using Eclipse

 
 
Ronald
Guest
Posts: n/a
 
      11-18-2003
Hi,

Currently I'm using Eclipse / Jboss / Tomcat to develop my Java web
applications. I'm using the JBoss plugin for eclipse. With this plugin
I manage quite nicely to debug my application, except for one thing.
I just can't get the debugger to let me inspect local variables in a
class method. Eclipse just gives me an evaluation error. It allows me
to inspect the globals the way I expect.
Has anyone experienced this problem before ? (and does anyone know how
to solve it? )

Cheers,

Xander
 
Reply With Quote
 
 
 
 
Sudsy
Guest
Posts: n/a
 
      11-18-2003
Ronald wrote:
> Hi,
>
> Currently I'm using Eclipse / Jboss / Tomcat to develop my Java web
> applications. I'm using the JBoss plugin for eclipse. With this plugin
> I manage quite nicely to debug my application, except for one thing.
> I just can't get the debugger to let me inspect local variables in a
> class method. Eclipse just gives me an evaluation error. It allows me
> to inspect the globals the way I expect.


Based on what you've written you are trying to access either:
- class (static) method variables, or
- class (static) variables

For the first, when you "Step Into" the class method then the
variables should be displayed in the "Variables" window. For
the second case, right click on the upper pane of the "Expressions"
window and select "Add Java Watch Expression" from the pop-up
menu. Enter the expression in the form of ClassName.variableName.
For example, I've got a class called LoginAction (a Struts Action)
with a class variable called count. My expression becomes
LoginAction.count. The variable name MUST be qualified by the
class name.
BTW, These instructions work as advertised on Eclipse 2.1.2
running with JBoss 3.2.2.

HTH

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can local function access local variables in main program? Sullivan WxPyQtKinter Python 10 11-08-2007 02:51 PM
different handling of local variables and instance variables when undefined Tammo Tjarks Ruby 2 09-13-2007 06:29 PM
viewing local variables while debugging TrevorBoydSmith@gmail.com Java 2 12-12-2006 06:38 PM
local variables and global variables king Perl Misc 2 06-27-2006 03:13 PM
Debugging core java sdk classes - local variables Halldor Isak Gylfason Java 0 12-22-2003 02:24 PM



Advertisments