Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » observing values of variables during debugging(observing values of variables during debugging)
observing values of variables during debugging [message #941432] Fri, 12 October 2012 10:16 Go to next message
mampfe fred is currently offline mampfe fred
Messages: 2
Registered: October 2012
Junior Member
hi,
how can i observe values of variables during debug mode.
in one of my array elements my programm puts a strange value and i can't locate the line where that happens. so i want to ask, whether there is a possibility during debugging, where one can choose a variable, go through the code line by line and though finding the position in the code where this strange value is written in the variable. but i do not find where the settings i need are in the debugging mode.
hope anybody can help.
thx.
Re: observing values of variables during debugging [message #941443 is a reply to message #941432] Fri, 12 October 2012 10:24 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/12/2012 8:16 AM, mampfe fred wrote:
> hi,
> how can i observe values of variables during debug mode.
> in one of my array elements my programm puts a strange value and i can't
> locate the line where that happens. so i want to ask, whether there is a
> possibility during debugging, where one can choose a variable, go
> through the code line by line and though finding the position in the
> code where this strange value is written in the variable. but i do not
> find where the settings i need are in the debugging mode.
> hope anybody can help.
> thx.

I think what you want is called a Watch Expression in Eclipse.

Strangely, I don't do this in my present life. (Not sure at all why
'cause it's so obviously useful.) I did it A LOT back in the day when I
debugged the guts out of C and assembly code in an old assembly
debugger. Go figure.

Best of luck to you!
Re: observing values of variables during debugging [message #941449 is a reply to message #941443] Fri, 12 October 2012 10:30 Go to previous messageGo to next message
mampfe fred is currently offline mampfe fred
Messages: 2
Registered: October 2012
Junior Member
thx i found the possibility of watch expressions and that is exactly what i want. thanks!
but i can't found a button where i can go through the cody line by line... i can set breakpoints and let the code run until it reaches the breakpoint.
but is there a possibility to go there line by line without using breakpoints?
Re: observing values of variables during debugging [message #941527 is a reply to message #941449] Fri, 12 October 2012 12:04 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/12/2012 8:30 AM, mampfe fred wrote:
> thx i found the possibility of watch expressions and that is exactly
> what i want. thanks!
> but i can't found a button where i can go through the cody line by
> line... i can set breakpoints and let the code run until it reaches the
> breakpoint.
> but is there a possibility to go there line by line without using
> breakpoints?

When in Debug perspective (that's a tab in the upper-right hand of the
workbench, but it usually comes up when you launch something for debug),
there are little arrows that that step into, step over and step back out
of code.

To these correspond some keyboard mappings, F5-step into, F6-step over,
F7-step out of and F8-go/resume.

There's no "animated" step-by-step if that's what you mean.
Previous Topic:JRE or JDK?
Next Topic:Error Configuring Tomcat in Eclipse
Goto Forum:
  


Current Time: Fri Apr 18 10:20:12 EDT 2014

Powered by FUDForum. Page generated in 0.01699 seconds