Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

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

text
$(LazarusDir)/tools/debugserver/debugserver.lpi

and set it up as an external tool:

text
$(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


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.

Revision 4, last changed by WikiArchive .