Bug 2775 - Debugger tooltips for DateTimes are corrupted
Summary: Debugger tooltips for DateTimes are corrupted
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 3837 ()
Depends on:
Blocks:
 
Reported: 2012-01-08 12:46 UTC by Jonathan Pobst
Modified: 2012-03-09 16:46 UTC (History)
6 users (show)

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


Attachments
Screenshot (7.00 KB, image/png)
2012-01-08 12:46 UTC, Jonathan Pobst
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 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.

Related Links:
Status:
RESOLVED FIXED

Description Jonathan Pobst 2012-01-08 12:46:45 UTC
Created attachment 1135 [details]
Screenshot

If you hover over a DateTime while debugging to get the tooltip, the tooltip shows Chinese(?) characters instead of the DateTime.

Screenshot attached.
Comment 1 Jonathan Pobst 2012-01-09 11:45:15 UTC
This occurs in both VS and MD, so I am guessing it is in the MD debugging libraries.

However, it only occurs when debugging MFA projects:

VS/Win/MFA: Bad
MD/Win/MFA: Bad
MD/Win/Mono: Correct
MD/Win/.NET: Correct

--> MonoDevelop
Comment 2 Jeffrey Stedfast 2012-01-09 11:48:18 UTC
haha, that is awesome.

Unfortunately, I'm not able to reproduce this. What is your debugger configuration?

MonoDevelop -> Preferences -> Debugger

Are you using the Soft debugger or some other debugger?
Comment 3 Jeffrey Stedfast 2012-01-09 11:48:57 UTC
Aha, only for Mono for Android. I guess I'll need to install M4A
Comment 4 Jeffrey Stedfast 2012-01-09 11:50:01 UTC
Actually, if this is a bug in both VS *and* MD when debugging M4A, doesn't that suggest an M4A bug?
Comment 5 Jonathan Pobst 2012-01-09 11:52:10 UTC
My guess is it can either be a debugging library issue or a runtime issue.

Can you test MT?
Comment 6 Jeffrey Stedfast 2012-01-09 13:19:33 UTC
Works fine in MonoTouch.
Comment 7 Jeffrey Stedfast 2012-01-09 14:21:42 UTC
Reproducible in MD/Mac/MFA
Comment 8 Jeffrey Stedfast 2012-01-09 14:47:19 UTC
Did more digging...

The Soft debugger backend in MD is invoking ToString() on the DateTime struct in Mono.Debugging.Soft.SoftDebuggerAdaptor.CallToString() and getting back a StringMirror with garbage, apparently.

This is either a bug in the runtime or a bug in M4A somewhere.
Comment 9 Zoltan Varga 2012-01-09 20:41:31 UTC
The debugger module in the runtime receives the garbage string as the result of
mono_runtime_invoke () at debugger-agent.c:5479. The input struct appears to be valid. Calling ToString() directly from the app also appears to work.
Comment 10 Zoltan Varga 2012-01-12 19:28:16 UTC
Added a workaround to mobile-master in a98b00fece7e44962d2324bfb9a63744bc68d8cb.
Comment 11 Zoltan Varga 2012-01-22 15:48:57 UTC
Fixed in HEAD/2.10.
Comment 12 Eric Beisecker 2012-03-09 16:46:54 UTC
*** Bug 3837 has been marked as a duplicate of this bug. ***