Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » implement my own debug, only one step over by thread and frame
implement my own debug, only one step over by thread and frame [message #329815] Mon, 07 July 2008 05:19 Go to next message
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
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.


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 #329877 is a reply to message #329815] Wed, 09 July 2008 05:34 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
julien a écrit :

I looked some code on goolge code, but I see nothing who can help.


just sometime, I find some fireevent function . what this méthod do? is
that can help me ??

thanks


a+++

> 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.
>
>
> 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 #329883 is a reply to message #329815] Wed, 09 July 2008 11:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33192
Registered: July 2009
Senior Member
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.
>
>
> 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 #330011 is a reply to message #329883] Sat, 12 July 2008 15:15 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
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 #330013 is a reply to message #330011] Sat, 12 July 2008 15:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33192
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 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
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 Go to previous message
Mark Melvin is currently offline Mark MelvinFriend
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++
>
Previous Topic:lazy-fetching for variable values
Next Topic:Can I use JavaTypeCompletionProcessor in my project?
Goto Forum:
  


Current Time: Mon Aug 12 05:32:09 GMT 2024

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

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

Back to the top