Difference between revisions of "DebugServer"

From Free Pascal wiki
Jump to navigationJump to search
(moved content from lazlogger)
 
 
(2 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
and set it up as an external tool:
 
and set it up as an external tool:
 
  $(LazarusDir)/tools/debugserver/debugserver$(ExeExt)
 
  $(LazarusDir)/tools/debugserver/debugserver$(ExeExt)
 +
 +
[[Image:DebugServer.png]]
  
 
Alternatively, FPC has a text mode debug server which can also be used; see documentation.
 
Alternatively, FPC has a text mode debug server which can also be used; see documentation.
Line 12: Line 14:
  
 
For more details, please see the documentation.
 
For more details, please see the documentation.
 +
 +
'''--[[User:DD|DD]] 05:38, 3 October 2015 (CEST): Does not seem to be thread safe!'''
 +
 +
== See also ==
 +
* [[doc:fcl/eventlog/teventlog.html|TEventLog documentation]] Built in support for logging in FPC/Lazarus
 +
* [[LazLogger]]
 +
* [[MultiLog]]
 +
* [[log4delphi]]
 +
  
 
[[Category:Components]]
 
[[Category:Components]]
 
[[Category:FPC]]
 
[[Category:FPC]]
 
[[Category:Debugging]]
 
[[Category:Debugging]]
 +
[[Category:Logging]]

Latest revision as of 04:38, 3 October 2015

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)

DebugServer.png

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