mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 23:32:42 +01:00
Date:2009-01-21T17:06:12.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@167 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
17 lines
1.1 KiB
Plaintext
17 lines
1.1 KiB
Plaintext
[[Property:title|Debug output]]
|
|
[[Property:weight|2]]
|
|
[[Property:uuid|41544c3b-e1f1-53a5-ff63-e63224c32fa3]]
|
|
In both grids of the [[Object tool|object tool]], objects are displayed. For virtually all objects, it is possible to display a user-definable string value next to the object address.
|
|
|
|
In order to have the instances of a class display such a string in the object tool, let the class inherit from the class <eiffel>DEBUG_OUTPUT</eiffel>. Then implement the feature <eiffel>debug_output</eiffel> to craft the string for display. At run-time, the debugger will automatically query this feature on all objects that define it, and then will display the results in the object tool and the [[Expression evaluation|evaluation tool]].
|
|
|
|
|
|
{{sample|The <eiffel>NUMERIC</eiffel> class inherits from the <eiffel>DEBUG_OUTPUT</eiffel> 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 [[Image:debugger-expand-info-icon]] in the object tool. }}
|
|
|
|
|
|
|
|
|