Quantcast
Channel: DotNetShoutout - Stories tagged with debug
Viewing all articles
Browse latest Browse all 15

Custom DumpArray – Windbg

$
0
0
The sos has !dumparray for getting contents of the array. But it cannot be used for scripting or automation. Here is an example using System; namespace ConsoleApplication { class Program { Test[] arr = new[] { new Test() { ID = 1, Name = "Foo" }, new Test() { ID = 2, Name = "Bar" } }; static void Main(string[] args) { var p = new Program(); Console.WriteLine(p.arr); Console.Read(); } } class Test { public int ID; public string Name; } } And here is the output of thearr variable within th...
Shout it
Telerik – RadControls for WPF

Viewing all articles
Browse latest Browse all 15

Trending Articles