IDE Window: Event Log

From Lazarus wiki
(Redirected from IDE Window:Event Log)
Jump to navigationJump to search

English (en)

Navigation

Main Menu > View > Debug Windows > Event Log

Important

You must setup the debugger and start the project to debug it. Only then this window will be useful.

Event Log

Event Log.png

The Event Log provides a place into which the debugger will log a record for the occurrence of various events. You can configure the Event Log by using its context menu or the Debugger page of the Tools, Environment Options dialog box.

The types of events that are logged include process information such as process start, process stop, and module load debugger breakpoints, as well as windows messages sent to the application.

Application output using the OutputDebugString() function provides a handy means to help you debug Windows applications. The single parameter to OutputDebugString(aString) is a string which will be added to the Event Log. This allows you to keep track of variable values or similar debug information without having to use Watches or displaying intrusive debug dialog boxes.

TCustomApplication.Log() also writes its output to the Event Log (if it has been implemented).

Context menu

Event Log popup.png

Clear Events: Clears all the events from the Events Log window.

Save Events to File: Enables you to save the contents of the Event Log to a file.

Add Comment: Enables you to add a comment to the Event Log.

Event Log Options: Options to configure the events which appear in the Event Log.