Online Eiffel Documentation
EiffelStudio

Debug output

In both grids of the object tool, objects are displayed. For virtually all objects, it is possible to display a user-definable string value next to the object address.

To do so, inherit from the class DEBUG_OUTPUT in the classes that should let their objects display a string value, and implement the `debug_output' feature. At run-time, the debugger will automatically query the result of this feature on all objects that define it and display it in the object tool and the evaluation tool.

Sample: The NUMERIC class inherits from the DEBUG_OUTPUT one so that it is possible to see the value of *_REF objects without expanding them.

Tip: If an object has a long string output or an output with carriage returns, for instance, pick-and-drop it to the expanded display command in the object tool.