This project has moved. For the latest updates, please go here.
Just download the file and run it. By default it's configured in capture mode.

Configuration is automatically saved in <users>\<username>\AppData\Roaming\TraceSpy (Windows 7), in a file called Settings.config.

The "colorizers" feature works by defining:
  • Colorizers: a colorizer is regular expression with named groups (see .NET documentation on this, for example http://msdn.microsoft.com/en-us/library/bs2twtah.aspx#named_matched_subexpression).
  • ColorSets: a colorset has a name and associates this name with a font, a foreground color, a background color, and a background 'mode'. The mode defines if the background color is used as a fill color (fill mode) or as a frame color, with a frame width.

ColorSets are not tied to colorizers, but colorizers use the Regex group name as the ColorSet name.

For example, the following colorizer regex expression:

(?<key>\w+)=(?<value>[^=\s]+)

will define a key group and a value group. If any of the traced lines matches this expression, the colorizer engine will try to find two ColorSets named 'key' and 'value' and will use their definition to render the traced line.
So, if you define a ColorSet named 'key' with a 'Blue' foreground color, and a ColorSet named 'value' with a 'Red' foreground color, and a 'WhiteSmoke' background color, like this:

TrceSpyColorizers.PNG

, you will display colored key/value traces like this, without changing anything to the traced program:

TrceSpy.PNG

Last edited May 5, 2011 at 1:36 PM by simonm, version 4