IDE Window: Event Log

From Free Pascal wiki
Revision as of 11:35, 1 February 2021 by Trev (talk | contribs) (Fix heading levels; add linked navigation breadcrumbs; add event log details; add context menu item descriptions)
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.

If your application writes to StdErr, that output will also appear in the event log.

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:

Event Log Options: