Runtime Flow blog (Understanding a control flow in a running .NET application)

May 17, 2010

Monitoring function parameters and return values

Filed under: Uncategorized — Sergey Vlasov @ 3:28 pm

I’ve added ability to catch and display function parameters and return values in Runtime Flow. Currently only primitive types such as bool, int, char, double and string are supported plus one dimensional arrays containing such types. Objects of other types are displayed as dots:

LocBaml startup

LocBaml startup


Computing an answer in GraphCalc

Computing an answer in GraphCalc


Strings longer than 50 characters are trimmed to not overrun the screen:
Saving a document in Thumbnail Viewer

Saving a document in Thumbnail Viewer


When number of elements in an array is more than 10, the first nine elements are displayed + number of skipped element + the last element:
A long strings array in WPFNotepad

A long strings array in WPFNotepad


When an exception occurs the function return value is displayed as Ex:
Unhandled exception in Thumbnail Viewer

Unhandled exception in Thumbnail Viewer


It’s technically possible to display data in objects of more complex types too and I’ll most probably return to monitoring of function parameters in next versions of Runtime Flow.

Advertisement

Create a free website or blog at WordPress.com.

%d bloggers like this: