Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Local Variables unavailable
Local Variables unavailable [message #150591] Thu, 25 March 2004 09:22 Go to next message
Eclipse UserFriend
Originally posted by: mark.gargan.amdocs.com

Hi folks,

I'm remotely debugging into an application running on a hp unix
box. As I understand it's a 64 bit hp unix server. Is this the reason that
I get the statement local variables unavailable as I try to step through
the code?

Or perhaps is the code compiled in such way that it's not available?

Thanks,
Mark.
Re: Local Variables unavailable [message #150601 is a reply to message #150591] Thu, 25 March 2004 09:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

mark wrote:

> Hi folks,
>
> I'm remotely debugging into an application running on a hp unix
> box. As I understand it's a 64 bit hp unix server. Is this the reason that
> I get the statement local variables unavailable as I try to step through
> the code?
>
> Or perhaps is the code compiled in such way that it's not available?

Bingo. The code you're debugging must be compiled with debug info
enabled in order to access local variables. FYI, the standard Java
libraries (java.lang.*, com.sun.*) are NOT compiled this way.

HTH,
Eric
You must first have a lot of patience to learn to have patience.
-Stanislaw Lec
Re: Local Variables unavailable [message #150614 is a reply to message #150601] Thu, 25 March 2004 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.gargan.amdocs.com

Eric,

Thanks a million for your prompt reply. Could I ask a question? Is
there any javac or java function that you can run upon a class to see if
it's debug information has been included?

Thanks,
Mark.

> mark wrote:

> > Hi folks,
> >
> > I'm remotely debugging into an application running on a hp unix
> > box. As I understand it's a 64 bit hp unix server. Is this the reason that
> > I get the statement local variables unavailable as I try to step through
> > the code?
> >
> > Or perhaps is the code compiled in such way that it's not available?

> Bingo. The code you're debugging must be compiled with debug info
> enabled in order to access local variables. FYI, the standard Java
> libraries (java.lang.*, com.sun.*) are NOT compiled this way.

> HTH,
> Eric
> You must first have a lot of patience to learn to have patience.
> -Stanislaw Lec
Re: Local Variables unavailable [message #150641 is a reply to message #150614] Thu, 25 March 2004 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

mark wrote:

> Eric,
>
> Thanks a million for your prompt reply. Could I ask a question? Is
> there any javac or java function that you can run upon a class to see if
> it's debug information has been included?

You can run javap on the class with the -l option. That option will
print out line number and local variable info if it is present in the
..class file.

HTH,
Eric

I'm all in favor of keeping dangerous weapons out of the hands of fools.
Let's start with typewriters.
Re: Local Variables unavailable [message #150649 is a reply to message #150641] Thu, 25 March 2004 12:56 Go to previous message
Eclipse UserFriend
Originally posted by: mark.gargan.amdocs.com

Thanks for all your help Eric. I came across the javap tool and the jdb
tool just there. It could be a long night.

Mark.
Eric Rizzo wrote:

> mark wrote:

> > Eric,
> >
> > Thanks a million for your prompt reply. Could I ask a question? Is
> > there any javac or java function that you can run upon a class to see if
> > it's debug information has been included?

> You can run javap on the class with the -l option. That option will
> print out line number and local variable info if it is present in the
> ..class file.

> HTH,
> Eric

> I'm all in favor of keeping dangerous weapons out of the hands of fools.
> Let's start with typewriters.
Previous Topic:Comment out all System.err.println calls?
Next Topic:Programable templates
Goto Forum:
  


Current Time: Fri Jul 18 04:20:54 EDT 2025

Powered by FUDForum. Page generated in 0.08633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top