Difference between revisions of "IDE Window: Event Log"
(→Context menu: Added missing context menu item descriptions) |
(→Event Log: Remove incorrect stderr info) |
||
Line 18: | Line 18: | ||
Application output using the [[OutputDebugString|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 [[IDE Window: Watch list|Watches]] or displaying intrusive debug dialog boxes. | Application output using the [[OutputDebugString|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 [[IDE Window: Watch list|Watches]] or displaying intrusive debug dialog boxes. | ||
− | |||
− | |||
[https://www.freepascal.org/docs-html/current/fcl/custapp/tcustomapplication.log.html TCustomApplication.Log()] also writes its output to the Event Log (if it has been implemented). | [https://www.freepascal.org/docs-html/current/fcl/custapp/tcustomapplication.log.html TCustomApplication.Log()] also writes its output to the Event Log (if it has been implemented). |
Latest revision as of 05:30, 2 February 2021
│
English (en) │
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
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).
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.