Menu

#117 center on current line in debugger

open
4
2003-08-14
2002-11-11
No

When stepping through lines in the debugger, if a new file is
opened, the view area is set to just below the current line. Clearly,
that's not ideal, as it requires scrolling up to get to where you want
to look. It would be better to always center on the current line.

-- Eric

Discussion

  • Charles Reis

    Charles Reis - 2002-11-11

    Logged In: YES
    user_id=429731

    We had some real difficulty with this over the summer, and I
    think it is partially because of non-Swing threads trying to
    update the position of the document.

    In any event, it's not entirely consistent. Sometimes the
    line will be centered perfectly, sometimes it will appear
    near the top or bottom, and sometimes it will appear just
    off screen. We should definitely try to re-evaulate this
    part of the code (in DefinitionsPane) to find out why it has
    such strange behavior.

     
  • James Hsia

    James Hsia - 2003-08-12

    Logged In: YES
    user_id=557360

    This feature has been implemented. It required adding a
    setSize listener on the definitions pane because when a new
    file is initially opened, its size is zero temporarily. By
    calling centerViewOnOffset after setSize has been called on
    the current definition pane, it seems to work consistently now.

    James

     
  • James Hsia

    James Hsia - 2003-08-12
    • assigned_to: nobody --> jhsia
    • status: open --> closed
     
  • James Hsia

    James Hsia - 2003-08-14

    Logged In: YES
    user_id=557360

    After more extensive testing, the fix is not very
    consistent. Occasionally, the screen will contain just the
    very top of the document. This is bad enough to go back to
    the way it was before where the highlighted line would
    appear at the top of the screen.

    James

     
  • James Hsia

    James Hsia - 2003-08-14
    • status: closed --> open
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.