For debugging I occasionally use commands like
_SCREEN.Print(cMyVar + CHR(13))
I think it has some advantages over WAIT WINDOW, MESSAGEBOX.
Unpleasant is, that this way I can use only some area of the screen to show results. I have a suspicion, that this part has the same height as the form...