How to suppress Debug messages from screen ????

When I take the Main Grid off debug mode, I get a problem with the sub-grid displaying detail records that are double spaced for some reason.
WHen I turn on debug mode on Main Grid the problem with the sub-grid goes away and displays record in single space as expected.
I created a new post to ask about this but in the mean time I need to know if I can “SUPPRESS” the debug messages and lines from the page when the main grid fires via some program function or code event any ideas please ???..