| Debugger Enhancements |
Debugger Enhancements
This wizard provides some enhanced tools related to debugging, including debugging hints and visualizers. Some features are only valid in specific versions of the IDE and currently do not support C++Builder.
The menu items of this wizard are shown in the figure below:

Evaluate as TStrings: This feature is only available during Delphi debugging breakpoints, where expressions are manually entered as TStrings type or its subclasses for content viewing. An error will occur if the expression type is not TStrings or its subclass.
Evaluate as TBytes/RawByteString: This feature is only available during Delphi debugging breakpoints, where expressions are manually entered as byte arrays or single-byte string types for content viewing. An error will occur if the expression type is not a byte array or a single-byte string type.
Evaluate as WideString/UnicodeString: This feature is only available during Delphi debugging breakpoints, where expressions are manually entered as widechar arrays or double-byte string types for content viewing. An error will occur if the expression type is not a widechar array or a double-byte string type.
Evaluate as TMemoryStream: This feature is only available during Delphi debugging breakpoints, where expressions are manually entered as MemoryStream types for content viewing. An error will occur if the expression type is not a TCustomMemoryStream type.
Evaluate as TDatSet: This feature is only available during Delphi debugging breakpoints, where expressions are manually entered as TDataSet type or its subclasses for content viewing. An error will occur if the expression type is not TDataSet or its subclass.
The first page of the wizard's settings window, "Debug Hint," is shown in the figure below:

Enhanced Debug Hint: In Delphi XE or later versions, this feature supports customizing the hint display when the mouse hovers over an expression in the editor during debugging, to increase the readability of specific types of debugging values.
Add Hint: Insert a new debugging hint. The hint is in the form of "TypeName=Expression containing %s", indicating that when the IDE evaluates an expression of a specific type, it replaces it with a new expression. For example, the hint "TCnBigNumber=%s.ToString" means that when the cursor moves over a variable of type TCnBigNumber, such as Num1, the IDE generates a debug hint and evaluates Num1.ToString to add it after the original hint, increasing readability.
Remove Hint: Delete the selected debug hint expression.
The second page of the wizard's settings window, "External Viewer," is shown in the figure below:

Enable TDataSet Viewer: This option allows the debugging period to enable a specific viewer for expressions of TDataSet and its subclasses, viewing their general properties, column definitions, and current record values, etc.
Enable TBytes/RawByteString Viewer: This option allows the debugging period to enable a specific viewer for expressions of byte arrays or byte-type strings, viewing their original hexadecimal data. This option is only valid for Delphi XE to 10.4 versions and does not support higher or lower versions.
Enable WideString/UnicodeString Viewer: This option allows the debugging period to enable a specific viewer for expressions of widechar arrays or unicode strings, viewing their original hexadecimal data. This option is only valid for Delphi XE versions or above.
Enable TMemoryStream Viewer: This option allows the debugging period to enable a specific viewer for expressions of MemoryStream, viewing their original hexadecimal data. This option is only valid for Delphi XE to 10.4 versions and does not support higher or lower versions.
The third page of the wizard's settings window, "Others," is shown in the figure below:

Auto Close Running Target Before Compiling or Building : This option allows users to automatically close the target program running outside the IDE before compiling or building, to avoid errors where the target file cannot be written. This option is turned off by default.
Auto Reset Debugging Target Before Compiling or Building: This option allows users to automatically reset the debugged target program before compiling or building, to avoid the appearance of a debug query dialog box for the target program. This option is turned off by default.
Note: Most options are only valid in higher versions of Delphi and are invalid for C++Builder.
Links