This command toggles the display of the debug information overlay shown at the top of the screen (same as pressing F2).
The syntax for the toggleoverlay command is as follows:
Find below working examples of the toggleoverlay command.
This is the only way to use the toggleoverlay command. If the overlay is shown, this command will hide it. If the overlay is hidden, this command will show it.