Debug command color toggling
Posted: Thu Aug 11, 2022 4:18 am
Quite often I use the Debug command to show output of text, but they all run into each other and it's hard to see where one command output stops, and where a new one starts, especially when the output is multi-line text. Observe the following code and how the output currently appears:

To clearly separate each, we currently have to either resort to using Debug with a blank line as a separator, or we can turn on Debug timestamps (but that makes the text even harder to read, and also gets in the way when you need to copy the output).
So I propose a third solution: a slight color toggle with each use of the command, so the output might appear like below. We can see at a glance where each Debug started and ended, and there's no timestamps to get in the way or get copied. You could make color-toggling an option if need be?
Color-toggling is already a feature for Procedure backgrounds in our code, so it would be nice to have it as an option for Debug text (IMO, anyway).

Thanks for considering!
Code: Select all
Debug "This is one Debug command"
Debug "This is also"+#CR$+"one Debug command, but it looks like two"
Debug "And this is a third Debug"+#CR$+"command that looks like"+#CR$+"three separate Debug commands"
Debug "Lastly, this is a final single Debug command"

To clearly separate each, we currently have to either resort to using Debug with a blank line as a separator, or we can turn on Debug timestamps (but that makes the text even harder to read, and also gets in the way when you need to copy the output).
So I propose a third solution: a slight color toggle with each use of the command, so the output might appear like below. We can see at a glance where each Debug started and ended, and there's no timestamps to get in the way or get copied. You could make color-toggling an option if need be?
Color-toggling is already a feature for Procedure backgrounds in our code, so it would be nice to have it as an option for Debug text (IMO, anyway).

Thanks for considering!