|
Re: observing values of variables during debugging [message #941443 is a reply to message #941432] |
Fri, 12 October 2012 14:24 |
|
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 #941527 is a reply to message #941449] |
Fri, 12 October 2012 16:04 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.06827 seconds