Introduction to the Debugger Visualizer

The Dew Debugger Visualizer displays the content of variables while you debug in the Embarcadero RAD Studio IDE. It is most useful for arrays, vectors and matrices, which it displays in a grid and on charts. A scripting engine processes the content of the variables, to extract statistics and to change how the content is displayed.

Key features

  • It supports Delphi arrays and the MtxVec types Vector, Matrix, VectorInt and MatrixInt natively.
  • Every variable added to the visualizer is accessible from all open visualizer windows. Several windows can show different views of the same variable without doubling or tripling the memory used, and the expressions and scripts of any window can use all the variables.
  • Pinning tracks the content of a variable by its address (the pointer value) rather than by its name. You can follow the content while stepping into functions and methods without renaming the variable, and also when the debugger cannot evaluate the name of the variable or its expression directly.
  • Three modes of operation: single variable x, expression f(x) and script, selected with the toolbar buttons. The one selected is computed again when you press F7 or F8 or the debugger stops at a breakpoint.
  • Right-click a variable in the list of debugger variables to copy it to a global variable. Global variables persist between runs and between visualizer windows, and scripts can reference them.
  • The variable lists, and the list of global variables with their values, persist between runs and project sessions. You can continue working on the collected data while the application is still running, and switch to debugging when you need to collect something new.
  • Integer, double, single and Boolean values and strings can be added too: scalars, not only vectors and matrices. Scalars can take part in expressions and scripts.
  • Add any value to the visualizer by pressing SHIFT+CTRL+F6 with the keyboard cursor in it in the Delphi code editor, or type its name into the variable name box of the visualizer and press Enter. A name that is not recognized is added to the list anyway, and its value is shown the first time the variable is found.
  • Speed and memory usage are optimized: for example, the visualizer does not detect the type of a variable again on every update.
  • A variable that is out of scope shows "Undefined" in the list of values, rather than an old or spurious value, or a crash.
  • The string visualizer loads strings of 100 MB, limited only by the available memory.
  • To view the data of a variable, double-click it in the table.
  • To keep the grid from scrolling when a variable is updated, show a sub-range of the matrix, for example x(3:, 4:), whose upper-left corner is at row 3 and column 4.
  • String lists, strings, scalars, arrays, vectors and matrices are displayed in the same window.