Bug 1261 - [2.8] Values changes in immediate window don't reflect in Watch window
Summary: [2.8] Values changes in immediate window don't reflect in Watch window
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: unspecified
Hardware: All All
: Lowest enhancement
Target Milestone: ---
Assignee: Bugzilla
: 7212 ()
Depends on:
Reported: 2011-10-05 13:57 UTC by Mike Christensen
Modified: 2016-12-14 19:09 UTC (History)
5 users (show)

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

Sample code (338 bytes, text/plain)
2011-10-05 13:57 UTC, Mike Christensen

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 for Bug 1261 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Mike Christensen 2011-10-05 13:57:19 UTC
Created attachment 600 [details]
Sample code

Repro steps:

1) Run attached program, break on line 12 (after f is created)

2) Add "f" to the Watch list and expand it so you can see Width and Height.

3) Run the following in the Immediate window:

> f.Height
> f.Height = 7;
> f.Height


Height property in Watch window doesn't instantly change, and highlight in red.  Even if you delete it from the watch and add it back in, the value is still 6.


Watch window should provide a real time view for the value of this property.
Comment 1 Jeffrey Stedfast 2011-11-18 17:04:15 UTC
From what I can tell, this would be a runtime bug. If I understand the MonoDevelop code correctly, it is sending the value over a socket to the runtime to set that value, and a later request for the value is not getting the new value.

(maybe the value change is queued to be set, but wasn't set yet? I don't know)
Comment 2 Jeffrey Stedfast 2011-11-18 17:08:54 UTC
Michael tells me this is a MonoDevelop feature request, apparently this is "by design". It would be too expensive to re-evaluate all expressions whenever a value is changed, because there's no way to track what side-effects it would have.
Comment 3 Jeffrey Stedfast 2012-09-18 12:35:27 UTC
*** Bug 7212 has been marked as a duplicate of this bug. ***
Comment 4 Jeffrey Stedfast 2013-06-06 14:52:35 UTC
The way to solve this, I think, would be to emit TargetStopped event on the DebuggerSession or something. This would cause the Call Stack window, the Watch pad and the Locals pad to all reload, though, which may be expensive.
Comment 5 Greg Munn 2016-12-14 19:09:30 UTC
Still an issue.