added support for TColor and Local Variables to dzDebugVisualizer

 Delphi, dzDebugVisualizer  Comments Off on added support for TColor and Local Variables to dzDebugVisualizer
Jul 312022
 

After making the source code of dzDebugVisualizer available I got interested in Debug Visualizers in general and had a look at how they are supported in Delphi 11. I wrote a visualizer for TColor, based on an old EDN article (now only in the Internet Archive). And after that I simply added that functionality to dzDebugVisualizer. It supports both, the Watch window and Evaluate and Modify dialog. In the latter, there is now a new modifyer key ‘L’ for Co*l*or. The output shows three values:

  • The color name, e.g. “clLime”
  • The web color name, e.g. “clWebLime”
  • The RGB value, e.g. “RGB(0, 255, 0)”

On top of that I moved the new menu items to a “Visualizers” submenu and added support to the “Local Variables” window as well.

These changes have already been committed to the svn repository on OSDN.

 Posted by on 2022-07-31 at 17:57

dzDebugVisualizer source code available

 Delphi, dzDebugVisualizer  Comments Off on dzDebugVisualizer source code available
Jul 312022
 

Several years ago I wrote a Delphi IDE plugin to extend the functionality of the “Evaluate and Modify” dialog as well as the Watches window called dzDebugVisualizer and even released an update for it. Back then I wasn’t sure whether I wanted to open source it or possibly commercialize it. I am now sure that the latter isn’t worth the effort, so I have made it open source under the Mozilla Public Licence 2.

You can find the source code on OSDN. And since I was at it, I also added support for Delphi 2009. To install it, get the source code, open the appropriate package, build and install it into the IDE.

For the description see the links to my old block posts.

dzDebugVisualizers for Delphi 2005, 2006 and 2007 2017-09-30

 Delphi, dzDebugVisualizer  Comments Off on dzDebugVisualizers for Delphi 2005, 2006 and 2007 2017-09-30
Sep 302017
 

A new test release of my dzDebugVisualizers for Delphi 2005, 2006 and 2007 is available. Apart from fixing an Access Violation when unloading the package I have added support for TDateTime and unquoted (multiline) strings to the Evaluate / Modify window:

In addition I have added a “Modifiers” button to the dialog which allows to add any of the supported display format specifiers to the expression.

Download that test release and tell me, what you think. What other data types would you like me to add? Are there any bugs?

 Posted by on 2017-09-30 at 17:25

dzDebugVisualizers for Delphi 2005, 2006 and 2007

 Delphi, dzDebugVisualizer  Comments Off on dzDebugVisualizers for Delphi 2005, 2006 and 2007
Jun 032017
 

The Delphi Open Tools API introduced Debug Visualizers with Delphi 2010, so people stuck with a pre-Unicode Delphi IDE can not use them. Until now that is.

An answer on StackOverflow by MartynA provided me with a starting point, but I used a different approach because I didn’t like how getting the value overwrote the clipboard.

Here is what it looks like

Please note that these experts are not very well tested. You use them at your own risk. As any IDE expert they are quite capable of crashing the IDE and making you lose your work.

Also, for now, I won’t provide source code for them. I haven’t yet decided whether I want to make them yet another open source project or maybe a commercial product.

This ZIP file contains three experts, one for Delphi 2005, 2006 and 2007 respectively that allow you display a watch window entry formatted as Date/Time inline or as multi line text in a separate window.

 Posted by on 2017-06-03 at 12:34