What's New in SmartInspect 1.3

The SmartInspect 1.3.3 maintenance release fixes a bug in the LogDataSet method of the SmartInspect Delphi library. The bug caused LogDataSet to send wrongly formatted data when dealing with blob fields.

SmartInspect 1.3.2

SmartInspect 1.3.2 introduces support for the C++ personality of Borland Developer Studio 2006 (also known as C++Builder 2006). Besides C++ binaries and headers, the new SmartInspect version comes with live templates and automated library IDE integration.

SmartInspect in Borland C++Builder 2006 SmartInspect in Borland C++Builder 2006

SmartInspect 1.3.1

The SmartInspect 1.3.1 maintenance release fixes a bug in the TrackMethod method family of the SmartInspect Delphi library. The bug caused TrackMethod to send the LeaveMethod message immediately after the corresponding EnterMethod message has been sent.

Users of the SmartInspect Delphi library are encouraged to update to the new version. No other changes have been made in this release.

SmartInspect 1.3.0

The major new features of SmartInspect 1.3 include full log level support, support for Borland Developer Studio 2006 (including Delphi 2006), code templates and snippets for popular IDEs and various library and Console improvements like the new LogColored method, Reload Last Log File and a new filter event.

Log level support

Beginning with SmartInspect 1.3, all three SmartInspect libraries have full log level support. This enables developers to group log entries into log levels to selectively enable or disable an entire group of log entries at once. It is possible, for example, to log only errors or to increase the log level to debug or verbose levels. Additionally, the newly added log entry types allow filtering of certain log levels in the SmartInspect Console. The available log levels in the SmartInspect libraries are as follows:

  • Debug
  • Verbose
  • Message
  • Warning
  • Error

Corresponding to the new log entry types and log levels, new LogVerbose and LogDebug library methods have been added as well.

Borland Developer Studio 2006 support

SmartInspect 1.3 introduces full support for Borland Developer Studio 2006 (Delphi for Win32 and all .NET personalities). Besides new binaries for the SmartInspect Delphi library, the new SmartInspect version contains live templates, project files and automated library integration for the Borland Developer Studio 2006 IDE.

The LogColored method

The LogColored method enables you to easily log a message and specify the background color for the SmartInspect Console. This removes the need to have a special session object for a specific color or switching the color back and forth between message calls just for highlighting certain log messages:

using System.Drawing;
using Gurock.SmartInspect;
public class Program { public static void Main(string[] args) { SiAuto.Si.Enabled = true; SiAuto.Main.LogColored(Color.LightBlue, "Blue"); SiAuto.Main.LogColored(Color.LightYellow, "Yellow"); SiAuto.Main.LogColored(Color.LightGray, "Gray"); } }
SmartInspect LogColored result in the Console SmartInspect LogColored result in the Console

Reload Last Log File

A new menu action called "Reload Last Log File" has been added to the SmartInspect Console. This often requested feature makes it possible to reload the last opened log file with a single click or key press (F5). As the current log file is automatically cleared, this new feature is comparable to refreshing a log file.

Code templates and snippets

The new SmartInspect release includes code templates and snippets for a variety of IDEs. Code templates and snippets are a great assistance and time-saver when instrumenting applications with SmartInspect statements. SmartInspect 1.3 provides templates and snippets for the following IDEs:

  • Borland Delphi 7, 8 and 2005
  • Borland Developer Studio 2006
  • Eclipse 3.0 and 3.1
  • Microsoft Visual Studio 2005
SmartInspect live templates in Borland Delphi 2006 SmartInspect live templates in Borland Delphi 2006

Filter event in the libraries

With the new Filter event, you are now able to influence the logging behavior in a way that was not possible with earlier SmartInspect versions. In contrast to the other events in the SmartInspect libraries, the new Filter event is fired before a packet is being logged and offers the possibility of canceling the logging of packets based on user-defined conditions.

Bug fixes and smaller changes

  • Overloaded EnterProcess variant which uses the parent's AppName
  • Drastically improved the Console performance in some areas
  • Reduced Connection Log dialog startup time
  • Fixed .NET project files for C#Builder and Delphi 2005
  • Delphi library: The current recordset is restored in TSiSession.LogDataSet now (this can be disabled for performance, please see the API reference)
  • Increased trial period from 30 to 45 days