You can use
display to display variables or expression outputs that change:
$ display char
This will display the value of the
char variable each time it changes. If
char doesn’t change on the next execution, then it will not be displayed.
display command creates a watchlist. We can add more variables by running
display again with a new variable name or expression. Running
display without additional arguments will show us our entire watchlist.
undisplay will clear the watchlist. If we pass in a variable name, then it will remove that variable from the watch list.
Become a Member to join the conversation.