Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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
GitHub or Developer Community 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.
Using a Watch with VS For Mac v7.0.1 (build 24), we can see the following:
new System.String('x', 3) -> ""
expected -> "xxx"
Can't verify that bug : test case
public static void Main(string args)
var foo = new System.String('x', 3);
Break point on writeline; watch for foo shows 'xxx' for me - doesn't matter where I add the watch with 'foo'. Version : Version 7.2 Preview (7.2)
Can you update your vs for mac to a newer build ? Seems it got fixed in more recent versions or I've another use case.
That's because you are not testing what I said :p
You inspected a local variable using the Watch. This is working fine for me as well.
Try to directly put the whole expression "new System.String('x', 3)" in the Watch. This is not the same thing at all.
Reproduced with latest public alpha (7.1 Preview, build 583)
I can also reproduce
This looks like runtime bug, I added unit test after `return;` in https://github.com/mono/mono/pull/5049
Fixed in mono master d421ee95b03dd2ffee3dcea9ef24406a5d064684.