OutputDebugString
From Free Pascal wiki
Jump to navigationJump to searchOutputDebugString( ) is a Windows way of emitting a text string to some output device (window/file/external debugger).
Lazarus will show these messages in the IDE Window: Event Log accessible from [View|Debug Windows|Event Log] <Ctrl_Alt-V>