Use Windows Debugging APITag(s): WinAPI/Registry
Windows provides API to debug applications and PB can easily send messages to the debugging console
[local external routine declaration] SUBROUTINE OutputDebugStringA (String lpszOutputString) & LIBRARY "kernel32.dll" // FOR PB10 : // SUBROUTINE OutputDebugStringA (String lpszOutputString) & // LIBRARY "kernel32.dll" ALIAS FOR "OutputDebugStringA;Ansi"
[powerscript] // if there is a Windows debugging console opened // then the time will be displayed OutputDebugStringA( String(Now(), "hh:mm") )
A (free) Windows debugging console can be downloaded from SysInternals (Microsoft) Web site.
See this related HowTo.