Bug 85 - Better scrolling behaviour when stepping
Summary: Better scrolling behaviour when stepping
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Linux
: High enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-07-27 12:01 UTC by Marek Safar
Modified: 2011-12-02 17:39 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Marek Safar 2011-07-27 12:01:00 UTC
MD always scrolls after F10 which means for code like

for (int i = 0; i < 100; ++i) {
}

There will be 100 "jumps" down and up, most text editors scrolls only when stepping to the line which is out of the window
Comment 1 Jeffrey Stedfast 2011-11-30 11:33:01 UTC
Fixed, will be in 2.8.5 or so (2.8.4 is already rolled)
Comment 2 Lluis Sanchez 2011-12-01 04:41:35 UTC
I'm reopening because the new behavior still has issues. See the following screencast:

http://screencast.com/t/r1nBJfzT

1) When stepping down the method, the caret ends placed at the bottom of the editor, so you don't see what's coming.
2) When stepping out of the DoSomething method the cursor is placed at the top of the editor, so you don't see were the call was coming from.

When stepping, MD should ensure that there are some visible padding lines before and after the cursor position.
Comment 3 Jeffrey Stedfast 2011-12-02 16:02:19 UTC
Done.
Comment 4 Mikayla Hutchinson [MSFT] 2011-12-02 17:09:53 UTC
This seems to have changed the behaviour for "go to definition" too. Maybe the API these things use to "jump" the caret should have a parameter to control whether it centers?
Comment 5 Jeffrey Stedfast 2011-12-02 17:39:31 UTC
just committed a fix for this too...