OutputDebugString

From Free Pascal wiki
Revision as of 11:19, 1 February 2021 by Trev (talk | contribs) (Add requirement for use)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

OutputDebugString( ) is a Windows method for 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 Main menu > View > Debug Windows > Event Log. Alternatively, the shortcut keys Ctrl+Alt+V will open the Event Log window.

Note: You will need to include the Windows unit for the WinAPI in your application's Uses clause.