[MonoDevelop] debugger line center

Jeff Stedfast jeff at xamarin.com
Wed Oct 17 20:42:14 UTC 2012


Hi,

Look at Initializer.cs in OnFrameChanged(), you'll see that it calls
IdeApp.Workbench.OpenDocument() with the file & line
and OpenDocumentOptions.Debugger.

OpenDocumentOptions.Debugger is actually a set of bit flags: BringToFront |
CenterCaretLine | TryToReuseViewer

You could redefine Debugger to not include the CenterCaretLine bit flag as
a simple workaround, but a more correct solution is to find a way to make
the editor not scroll if the line is already in view.

I made an attempt at this 9 months to a year ago and committed it, but I
think we eventually reverted it because it broke something else. I think
the problem was that sometimes you really do want the caret line to be
centered, but I could easily be wrong on that. The correct solution is
probably to create a new bit field that means "Don't scroll unless the line
isn't in view" and include that bit in the Debugger flags in place of the
CenterCaretLine bit flag.

Hope that helps,

Jeff

On Wed, Oct 17, 2012 at 4:15 PM, nerdzero <ramon.rocha at live.com> wrote:

> ru-zero games support wrote
> > is it possible to avoid the debugger to scroll the whole screen to keep
> > the current line centered when stepping?
>
> I'd like this option as well.  Any suggestions on where to look in the code
> to make a local patch?
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/debugger-line-center-tp4656895p4657006.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20121017/a5ff4645/attachment.html>


More information about the Monodevelop-list mailing list