They are not debug messages, they are the program's actual output by calling _LVOPutStr. It prints messages and then enters a loop until you press ESC. And no, I don't link anything.
The program is an XM player that for the time being works in the console (or the output window if you didn't run it from the shell). I want the user to see the messages, it shows important information.
Anyway, this thread is a mess, I see now that I managed to not ask what I really wanted to ask, and it shows confusing messages.