Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-dev] SPThread clarification

Hui

I am using the following the trigger the Debugger view refresh;
						DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{
								new DebugEvent(src, DebugEvent.BREAKPOINT)
						});
but SPThread.getStackFrames() is not invoked following this. Any thoughts ?

Anthos
On 18/07/2007, at 6:34 PM, Hui.Cao@xxxxxxxxxx wrote:


Anthos,
        I missed your email. Sorry for the late reply.
updateGlobalVariables is defined to accommodate the need to show global variables in a view, which needs to call getGlobalVariables() explicitly. Note the variables view only shows local variables and parameters and there's no "Global variables view" defined in DTP now. updateStackFrames() will be called when the program is suspended. When it gets notified from server that a breakpoint is hit, your vendor-specific code should fire an Eclipse debug event so that the debug framework will in turn call SPThread.getStackFrames(). Although these 2 methods are prefixed with "update", they only update the model objects and know nothing about the views. Eclipse debug framework manages variables and debug views and will call our code when appropriate.

Best Regards!

Max (Hui) Cao
Sybase Shanghai RD


Anil Samuel <anil.samuel@xxxxxxxxxx>
07/09/2007 09:26 AM

To
DTP development mailing list <dtp-dev@xxxxxxxxxxx>
cc
Hui.Cao@xxxxxxxxxx
Subject
Re: [dtp-dev] SPThread clarification





Hui

Will you be able to comment on this ?

Thanks
Anthos
On 03/07/2007, at 8:22 AM, Anil Samuel wrote:

> Hi
>
> I dont see following methods from SPThread class being invoked
> during a debug session.
>
> protected Map updateGlobalVariables(Map oldVariables)
> protected List updateStackFrames(List oldStackFrames)
>
> I am expecting these methods to update the Call Stack and Variable
> views for Debug perspective.
>
> Any clues ?
>
> Anthos
> _______________________________________________
> dtp-dev mailing list
> dtp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dtp-dev






Back to the top