DebugServer
Overview
Official documentation: doc:fcl/dbugintf
You can send debug output from your program to a debug server application. A debug server application is included with Lazarus; you can compile
$(LazarusDir)/tools/debugserver/debugserver.lpi
and set it up as an external tool:
$(LazarusDir)/tools/debugserver/debugserver$(ExeExt)

Alternatively, FPC has a text mode debug server which can also be used; see documentation.
To use it, add dbugintf to the uses clause of the units you want to debug, then use SendDebug to send messages to the debug server.
For more details, please see the documentation.
--DD 05:38, 3 October 2015 (CEST): Does not seem to be thread safe!
See also
- TEventLog documentation Built in support for logging in FPC/Lazarus
- LazLogger
- MultiLog
- log4delphi
From the Free Pascal wiki, page "DebugServer", as it stood on 2015-10-03 after a change by DD, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
