Write some text to the GLBasic output window if the program is running in debug mode. In release (non-debug) versions, the DEBUG commands are left out completely during compilation. As a result, no speed decrease will be incurred in production releases from having DEBUG commands in the code.
If you want to write to a new line in your output, you have to print out the "\n" character.
c$ = GETCURRENTDIR$()