Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Diagnostics Tools Contract Document - #1467

Merged
jkotas merged 5 commits into
dotnet:masterfrom
cshung:master
Jul 6, 2016
Merged

jkotas merged 5 commits into
dotnet:masterfrom
cshung:master

Conversation

@cshung

@cshung cshung commented Jul 5, 2016

Copy link
Copy Markdown
Contributor

This is the initial stab at documenting the contract that the framework class library code need to adhere to for the diagnostics tools to work properly.

The debugger accesses the field through symbols, so this is mostly a no-op for the framework developers. But there are a few exceptions because the debugger is trying to make sense of those objects and give better diagnostics experience, for example:

### Strings
In a typical application, you have many strings. Strings are just another managed object such that we can inspect all the fields out of it. There is character array, we can inspect the characters. But that would be an awful experience. The user will want to just look at the string. In order to do that, the debugger make an assumption that System.String._firstChar represent the head of the character array and get the string out the debugee memory and display as a string.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should enclose System.String._firstChar in "``" to get it displayed correctly. The underscore is otherwise interpreted as start of highlight - that's why there is several lines of italics.

@cshung

cshung commented Jul 5, 2016

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I have fixed the typo and the markups.

@@ -0,0 +1,49 @@
# Diagnostics Tools Contract
<<<<<<< HEAD

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge gone wrong...

@cshung

cshung commented Jul 6, 2016

Copy link
Copy Markdown
Contributor Author

Thanks, updated again.

@jkotas

jkotas commented Jul 6, 2016

Copy link
Copy Markdown
Member

LGTM

@jkotas
jkotas merged commit 812de33 into dotnet:master Jul 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants