Sign in Join
FPDoc Onlineexperiment

SendDebug function

In unit DbugIntf

Send a message to the debug server.

Declaration

pascal
function SendDebug(const Msg: string): Boolean

Arguments

Msg

The message to be sent to the server.

Description

SendDebug sends the message Msg to the debug server as an informational message (debug level dlInformation). If no debug server is running, then an attempt will be made to start the server first.

The binary that is started is called debugserver and should be somewhere on the PATH. A sample binary which writes received messages to standard output is included in the FCL, it is called dbugsrv. This binary can be renamed to debugserver or can be started before the program is started.

Errors

Errors are silently ignored, any exception messages are stored in SendError.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.