Bug 1264 - [Feature request] - allow resuming execution at arbitrary code points while debugging
Summary: [Feature request] - allow resuming execution at arbitrary code points while d...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: unspecified
Hardware: PC Windows
: Low enhancement
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2011-10-05 14:08 UTC by Mike Christensen
Modified: 2014-04-21 15:08 UTC (History)
5 users (show)

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


Attachments
Picture of yellow arrow I'd like to be able to drag (9.30 KB, image/jpeg)
2011-10-05 14:08 UTC, Mike Christensen
Details


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 Mike Christensen 2011-10-05 14:08:48 UTC
Created attachment 602 [details]
Picture of yellow arrow I'd like to be able to drag

In Visual Studio, when I'm currently debugging, I can drag the yellow "current line" arrow to another statement to set the execution point.

MonoDevelop also has a yellow arrow, however you can not drag it.

I would like this feature in MonoDevelop, as it's incredibly useful.
Comment 1 Jeffrey Stedfast 2011-12-13 16:20:31 UTC
We'll need runtime support for this feature.
Comment 2 Zoltan Varga 2011-12-14 01:53:40 UTC
This is certainly doable, its just a bit hard to do it in a 'safe' way, i.e. what if the user resumes execution at a point which uses uninitialized variables, i.e. variables which are normally initialized, but the initialization statements were in code which the user skipped. The runtime would simply crash, and we can't allow that.. The same goes for finalizers for example, if the user resumes execution in the middle of a finally handler, things would also crash due to the way our finalizers are implemented.
Comment 3 Mike Christensen 2011-12-14 01:56:08 UTC
Since Visual Studio allows this (and it's incredibly handy), it's definitely possible to do in a safe way.  I can check out what happens in VS when you skip over the initialization of a variable; I would assume it just throws an exception, exactly as if that line was missing.
Comment 4 Mikayla Hutchinson [MSFT] 2014-04-08 11:15:26 UTC
Backend support was implemented: https://github.com/mono/mono/commit/4f15ef462d9f06bb4f6392f8ea5e22cba40ca379
Comment 5 Jeffrey Stedfast 2014-04-21 15:08:49 UTC
implemented.