Skip to main content



      Home
Home » Newcomers » Newcomers » Debugging question..
Debugging question.. [message #23111] Tue, 01 February 2005 22:53 Go to next message
Eclipse UserFriend
Originally posted by: gtg843y.mail.gatech.edu

I've been trying to write a small applet for a class at school and I'm
having trouble with debugging it.

Basically I have a (long) array of points that I'm trying to do a simple
graph of. I'm fairly sure that my code is working to generate the
correct points, but I still cannot get it to draw to the specified
Graphics object.

To check this, I thought I could run in Debug perspective and see the
list of variables that my applet is using. Specifically, I want to see
the raw array of points to find out if the algorithm is the problem, or
otherwise, see if my GUI code is the problem.

The Variables view in Debug perspective contains no data whatsoever when
I run via debug. Is there something I need to do to see this? Or am I
wishfully thinking?

I've been digging around the eclipse help docs with no luck. Thank you
for the help in advance :)


Sam
Re: Debugging question.. [message #23265 is a reply to message #23111] Wed, 02 February 2005 00:19 Go to previous messageGo to next message
Eclipse UserFriend
Did you set a breakpoint where you want your program's execution to
stop? There are no known bugs that cause the variables view to be empty
(I use it every day).
Kevin

Sam wrote:
> I've been trying to write a small applet for a class at school and I'm
> having trouble with debugging it.
>
> Basically I have a (long) array of points that I'm trying to do a simple
> graph of. I'm fairly sure that my code is working to generate the
> correct points, but I still cannot get it to draw to the specified
> Graphics object.
>
> To check this, I thought I could run in Debug perspective and see the
> list of variables that my applet is using. Specifically, I want to see
> the raw array of points to find out if the algorithm is the problem, or
> otherwise, see if my GUI code is the problem.
>
> The Variables view in Debug perspective contains no data whatsoever when
> I run via debug. Is there something I need to do to see this? Or am I
> wishfully thinking?
>
> I've been digging around the eclipse help docs with no luck. Thank you
> for the help in advance :)
>
>
> Sam
Re: Debugging question.. [message #23273 is a reply to message #23265] Wed, 02 February 2005 00:36 Go to previous messageGo to next message
Eclipse UserFriend
I'm getting a similar problem. With just some of my classes, when the
debugger reaches the class, I get a popup error, the title of the popup
window is "Update Debug View" and the content is a red cross and the
word "error". Not the most informative of errors.

After this happens, the variable view is blank (although the scroll bars
get bigger or smaller as the amount of variables change) and I have to
manualy click on the topmost item in the Debug view to get to the
current location of the debugger.

Dan.

Kevin Barnes wrote:
> Did you set a breakpoint where you want your program's execution to
> stop? There are no known bugs that cause the variables view to be empty
> (I use it every day).
> Kevin
>
> Sam wrote:
>
>> I've been trying to write a small applet for a class at school and I'm
>> having trouble with debugging it.
>>
>> Basically I have a (long) array of points that I'm trying to do a
>> simple graph of. I'm fairly sure that my code is working to generate
>> the correct points, but I still cannot get it to draw to the specified
>> Graphics object.
>>
>> To check this, I thought I could run in Debug perspective and see the
>> list of variables that my applet is using. Specifically, I want to
>> see the raw array of points to find out if the algorithm is the
>> problem, or otherwise, see if my GUI code is the problem.
>>
>> The Variables view in Debug perspective contains no data whatsoever
>> when I run via debug. Is there something I need to do to see this?
>> Or am I wishfully thinking?
>>
>> I've been digging around the eclipse help docs with no luck. Thank
>> you for the help in advance :)
>>
>>
>> Sam
Re: Debugging question.. [message #23420 is a reply to message #23265] Wed, 02 February 2005 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gtg843y.mail.gatech.edu

This is probably it. I'm new to this whole thing (not just eclipse), so
if setting breakpoints is part of the process, then this is probably the
problem?

Kevin Barnes wrote:
> Did you set a breakpoint where you want your program's execution to
> stop? There are no known bugs that cause the variables view to be empty
> (I use it every day).
> Kevin
Re: Debugging question.. [message #23714 is a reply to message #23420] Wed, 02 February 2005 15:00 Go to previous messageGo to next message
Eclipse UserFriend
Double click in the vertical ruler in your applet/java file to create a
breakpoint.

For variables to show, you have to ensure you are compiling with the
appropriate debug attributes (but they are on by default). To ensure, select
your project in the navigator, select "Properties..." from the context menu,
select the "Java Compiler" page, and see if "Add variable attributes to
generated class files" is checked.

Darin

"Sam" <gtg843y@mail.gatech.edu> wrote in message
news:ctqk2m$1jr$1@www.eclipse.org...
> This is probably it. I'm new to this whole thing (not just eclipse), so
> if setting breakpoints is part of the process, then this is probably the
> problem?
>
> Kevin Barnes wrote:
>> Did you set a breakpoint where you want your program's execution to stop?
>> There are no known bugs that cause the variables view to be empty (I use
>> it every day).
>> Kevin
>
Re: Debugging question.. [message #23756 is a reply to message #23273] Wed, 02 February 2005 15:01 Go to previous message
Eclipse UserFriend
This is unexpected. If there is an error in your log, or you have a
reproduceable test case, please file a bug against the JDT debugger.

Thanks,

Darin

"Dan Simmonds" <danoxster@gmail.com> wrote in message
news:ctpot0$1u5$1@www.eclipse.org...
> I'm getting a similar problem. With just some of my classes, when the
> debugger reaches the class, I get a popup error, the title of the popup
> window is "Update Debug View" and the content is a red cross and the word
> "error". Not the most informative of errors.
>
> After this happens, the variable view is blank (although the scroll bars
> get bigger or smaller as the amount of variables change) and I have to
> manualy click on the topmost item in the Debug view to get to the current
> location of the debugger.
>
> Dan.
>
> Kevin Barnes wrote:
>> Did you set a breakpoint where you want your program's execution to stop?
>> There are no known bugs that cause the variables view to be empty (I use
>> it every day).
>> Kevin
>>
>> Sam wrote:
>>
>>> I've been trying to write a small applet for a class at school and I'm
>>> having trouble with debugging it.
>>>
>>> Basically I have a (long) array of points that I'm trying to do a simple
>>> graph of. I'm fairly sure that my code is working to generate the
>>> correct points, but I still cannot get it to draw to the specified
>>> Graphics object.
>>>
>>> To check this, I thought I could run in Debug perspective and see the
>>> list of variables that my applet is using. Specifically, I want to see
>>> the raw array of points to find out if the algorithm is the problem, or
>>> otherwise, see if my GUI code is the problem.
>>>
>>> The Variables view in Debug perspective contains no data whatsoever when
>>> I run via debug. Is there something I need to do to see this? Or am I
>>> wishfully thinking?
>>>
>>> I've been digging around the eclipse help docs with no luck. Thank you
>>> for the help in advance :)
>>>
>>>
>>> Sam
Previous Topic:Problems on Red Hat Enterprise 3
Next Topic:Can I contribute code to Eclipse that is derived from BSD-licensed code?
Goto Forum:
  


Current Time: Fri May 09 14:16:56 EDT 2025

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

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

Back to the top