JCL Help:TraceLoc
JCL Help: TraceLoc Function
Search in JCL Help
Search in all projects
Summary
Sends a message to the debugger including location information.
Pascal
procedure TraceLoc(const Msg: string);
Parameters
Parameters | Description |
const Msg: string | The message to send to the debugger. |
Description
TraceLoc sends the specified message to the debugger but first prepends it with the source file location from which TraceLoc is called. For example, when calling TraceLoc from a method called TForm1.Button1Click located in unit1.pas like this: TraceLoc('Trace me.') the resulting string sent to the debugger will be: unit.pas:123 (TForm1.ButtonClick) "Trace me." assuming the TraceLoc statement is on line 123 in the source. Note that this function requires a detailed map file!
See Also
About
Unit
Donator
Marcel van Brakel
Notes
If you are running your application under the control of the debugger you can view these messages using the event log dialog, 'View | Debug Windows | Event Log'. If the application is not running under the debugger the message is sent to the system debugger. If there is no system debugger active the function does nothing.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page