Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » current selected stack frame
current selected stack frame [message #161554] Tue, 25 November 2003 11:12 Go to next message
Eclipse UserFriend
Originally posted by: albertodemichelis.NO_S_P_A_M_hotmail.com

Hi all,
I'm developing a debugger and I just finished the "watch expression"
evaluation. My debugger evaluates all expressions for each
stack frame so every stack frame has its own results. My desired behaviour
is: every time the user clicks on a stack frame in the debug view, the
expression view will be refreshed and display the values associated to the
current stack frame.

My questions are:
How do I know which stack frame has been selected and when?
How do I trigger a refresh in the Expression view?(also I do I retrieve
it)

thanks for your time

ciao
Alberto
Re: current selected stack frame [message #162940 is a reply to message #161554] Thu, 27 November 2003 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Which version of Eclipse? In 3.0, there is a new IWatchExpression debug
model element. It is passed a stack frame in which to evaluate its value.
Debug models may contribute a delegate to evaluate watch expression values
as applicable. Each time a stack frame is selected, the watch expression is
passed the new context. In 2.1, you have to listen to selection changes in
the debug view.

Darin

"Alberto Demichelis" <albertodemichelis@NO_S_P_A_M_hotmail.com> wrote in
message news:bpvutd$msf$1@eclipse.org...
> Hi all,
> I'm developing a debugger and I just finished the "watch expression"
> evaluation. My debugger evaluates all expressions for each
> stack frame so every stack frame has its own results. My desired behaviour
> is: every time the user clicks on a stack frame in the debug view, the
> expression view will be refreshed and display the values associated to the
> current stack frame.
>
> My questions are:
> How do I know which stack frame has been selected and when?
> How do I trigger a refresh in the Expression view?(also I do I
retrieve
> it)
>
> thanks for your time
>
> ciao
> Alberto
>
>
Re: current selected stack frame [message #162948 is a reply to message #161554] Thu, 27 November 2003 10:50 Go to previous message
Eclipse UserFriend
As well, see DebugUITools.getDebugContext().

Darin

"Alberto Demichelis" <albertodemichelis@NO_S_P_A_M_hotmail.com> wrote in
message news:bpvutd$msf$1@eclipse.org...
> Hi all,
> I'm developing a debugger and I just finished the "watch expression"
> evaluation. My debugger evaluates all expressions for each
> stack frame so every stack frame has its own results. My desired behaviour
> is: every time the user clicks on a stack frame in the debug view, the
> expression view will be refreshed and display the values associated to the
> current stack frame.
>
> My questions are:
> How do I know which stack frame has been selected and when?
> How do I trigger a refresh in the Expression view?(also I do I
retrieve
> it)
>
> thanks for your time
>
> ciao
> Alberto
>
>
Previous Topic:IProcess
Next Topic:CVS 1.12.2 and Eclipse 3.0 M5: Errors
Goto Forum:
  


Current Time: Tue Apr 29 03:05:35 EDT 2025

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

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

Back to the top