eclipse debugger: current instruction pointer problem. [message #531790] |
Thu, 06 May 2010 08:26 |
popjxc Messages: 36 Registered: March 2010 |
Member |
|
|
Hi, all:
I am using the debug api to make a eclipse debugger, and my editor extends TextEditor.
But now there are some problem about the debug annotation, that is during the debug time, a green line and a pointer can point to the current source code line. In my situation, when step over, the pointer could move line by line fine, but the green highlight could not refresh itself, user need to click on that line, then it display. When step over again, the pointer move to next line, but the green highlight do not move at all, if I gives some clicks to these lines, the old green disappear, the new green will come out at the right line.
And I try my debugger in other editor, it works fine in TextEditor. I think it is the problem of my editor.
Does I miss something? Could anybody give some suggestion?
PS: my eclipse version is 3.5.0
Thanks to everyone~
A picture of my problem:
[Updated on: Tue, 11 May 2010 09:12] Report message to a moderator
|
|
|
|
Re: eclipse debugger: current instruction pointer problem. [message #533038 is a reply to message #532798] |
Wed, 12 May 2010 03:45 |
popjxc Messages: 36 Registered: March 2010 |
Member |
|
|
I debug eclipse source, but I am not sure which code snippet could display that green background, because those code run in a UI thread, so the UI block during I debug.
and in the Class: "SourceLookupFacility", "display" method, I find the following code snippet:
positionEditor(textEditor, frame);
InstructionPointerManager.getDefault().removeAnnotations(textEditor);
Annotation annotation = fPresentation.getInstructionPointerAnnotation(textEditor, frame);
InstructionPointerManager.getDefault().addAnnotation(textEditor, frame, annotation);
Does those code enough to display both instruction pointer and the green background?
Thanks to everyone.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03879 seconds