Home » Eclipse Projects » Eclipse Platform » implement my own debug, only one step over by thread and frame
| | | |
Re: implement my own debug, only one step over by thread and frame [message #330013 is a reply to message #330011] |
Sat, 12 July 2008 15:48 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Julien,
I've never implemented a debugger so the best I can do, when no one else
seems to be providing help, is suggest something based on the problem
description (an explicit selection updates the buttons that otherwise
don't update). If that doesn't help, there's really nothing else I can
suggest. Hopefully someone else will suggest something...
julien wrote:
> Ed Merks a écrit :
>> Comments below.
>>
>> julien wrote:
>>> hi all
>>>
>>> I try to implement my own debug for a foreign language.
>>>
>>> I implmemented the launcher, the stack frame, the target and the
>>> debugelement (not value variable and breakpoint).
>>>
>>> but the problem is when I launch the debug, the debug perspective
>>> come and in the debug view I have the main trhead with a stack frame.
>>>
>>> the button step over is clickable but if I click it, he do what he
>>> has to do but the button come greys (I can't click it anymore). I
>>> have to click on the thread and reclick on the stack frame. it 's
>>> like I have to refresh it manualy.
>> It sounds like your stack frame view needs to produce a selection
>> event to select the top stack frame so that the buttons know the
>> value of the latest selection. Does the view have a setSelection
>> method you can call? Not that programatically setting the selection
>> of a widget doesn't fire the SWT event the same way as it does when
>> the user selects that same item in the widget, so likely you need to
>> select the right thing in the widget and ensure that the viewer-level
>> section event happens.
>
> heu... sorry I don"t understand everything.
> I based my debug on
> http://www.eclipse.org/articles/Article-Debugger/how-to.html
>
> and on code I found in google debug except for 1 differents, my debug
> is a executable and no a server-client debug.
>
>
> a++
>
>
>
>>>
>>>
>>> I have no idea why but it's un-usable , if someone has a idea.
>>>
>>> thanks.
>>>
>>>
>>> a+++
>>>
>>>
>>> PS: sorry for my english.
>>>
>>> a
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: implement my own debug, only one step over by thread and frame [message #330015 is a reply to message #330013] |
Sat, 12 July 2008 16:16 |
No real name Messages: 64 Registered: July 2009 |
Member |
|
|
Ed Merks a écrit :
> Julien,
>
> I've never implemented a debugger so the best I can do, when no one else
> seems to be providing help, is suggest something based on the problem
> description (an explicit selection updates the buttons that otherwise
> don't update). If that doesn't help, there's really nothing else I can
> suggest. Hopefully someone else will suggest something...
>
thanks a lot.
>
> julien wrote:
>> Ed Merks a écrit :
>>> Comments below.
>>>
>>> julien wrote:
>>>> hi all
>>>>
>>>> I try to implement my own debug for a foreign language.
>>>>
>>>> I implmemented the launcher, the stack frame, the target and the
>>>> debugelement (not value variable and breakpoint).
>>>>
>>>> but the problem is when I launch the debug, the debug perspective
>>>> come and in the debug view I have the main trhead with a stack frame.
>>>>
>>>> the button step over is clickable but if I click it, he do what he
>>>> has to do but the button come greys (I can't click it anymore). I
>>>> have to click on the thread and reclick on the stack frame. it 's
>>>> like I have to refresh it manualy.
>>> It sounds like your stack frame view needs to produce a selection
>>> event to select the top stack frame so that the buttons know the
>>> value of the latest selection. Does the view have a setSelection
>>> method you can call? Not that programatically setting the selection
>>> of a widget doesn't fire the SWT event the same way as it does when
>>> the user selects that same item in the widget, so likely you need to
>>> select the right thing in the widget and ensure that the viewer-level
>>> section event happens.
>>
>> heu... sorry I don"t understand everything.
>> I based my debug on
>> http://www.eclipse.org/articles/Article-Debugger/how-to.html
>>
>> and on code I found in google debug except for 1 differents, my debug
>> is a executable and no a server-client debug.
>>
>>
>> a++
>>
>>
>>
>>>>
>>>>
>>>> I have no idea why but it's un-usable , if someone has a idea.
>>>>
>>>> thanks.
>>>>
>>>>
>>>> a+++
>>>>
>>>>
>>>> PS: sorry for my english.
>>>>
>>>> a
|
|
|
Re: implement my own debug, only one step over by thread and frame [message #330087 is a reply to message #330011] |
Mon, 14 July 2008 15:10 |
Mark Melvin Messages: 118 Registered: July 2009 |
Senior Member |
|
|
All I can suggest is to make sure that you are you firing debug events
appropriately when you step, resume, hit a breakpoint, etc. If you are
stepping, I think you need to do something like:
- fire DebugEvent.RESUME event with
DebugEvent.STEP_INTO/DebugEvent.STEP_OVER detail
- perform the step in the physical debugger
- fire DebugEvent.SUSPEND event with DebugEvent.STEP_END detail
I think it is the SUSPEND event that will attempt to select your stack
frame and re-enable the step buttons. Of course, you need to make sure
that your debug elements (DebugTarget, StackFrame, etc.) also report their
state appropriately in terms of isSuspended, canStepInto, etc.
Mark.
On Sat, 12 Jul 2008 11:15:36 -0400, julien <elekis@gmail.com> wrote:
> Ed Merks a écrit :
>> Comments below.
>> julien wrote:
>>> hi all
>>>
>>> I try to implement my own debug for a foreign language.
>>>
>>> I implmemented the launcher, the stack frame, the target and the
>>> debugelement (not value variable and breakpoint).
>>>
>>> but the problem is when I launch the debug, the debug perspective come
>>> and in the debug view I have the main trhead with a stack frame.
>>>
>>> the button step over is clickable but if I click it, he do what he has
>>> to do but the button come greys (I can't click it anymore). I have to
>>> click on the thread and reclick on the stack frame. it 's like I have
>>> to refresh it manualy.
>> It sounds like your stack frame view needs to produce a selection event
>> to select the top stack frame so that the buttons know the value of the
>> latest selection. Does the view have a setSelection method you can
>> call? Not that programatically setting the selection of a widget
>> doesn't fire the SWT event the same way as it does when the user
>> selects that same item in the widget, so likely you need to select the
>> right thing in the widget and ensure that the viewer-level section
>> event happens.
>
> heu... sorry I don"t understand everything.
> I based my debug on
> http://www.eclipse.org/articles/Article-Debugger/how-to.html
>
> and on code I found in google debug except for 1 differents, my debug is
> a executable and no a server-client debug.
>
>
> a++
>
|
|
|
Goto Forum:
Current Time: Wed Jan 15 10:45:31 GMT 2025
Powered by FUDForum. Page generated in 0.05828 seconds
|