DebugServer: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | ## Overview | |
| 2 | 2 | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 6 | - | ||
| 7 | - | ||
| 3 | + | Official documentation: [doc:fcl/dbugintf](<http://lazarus-ccr.sourceforge.net/docs/fcl/dbugintf> "doc:fcl/dbugintf") | |
| 8 | 4 | ||
| 9 | - | ||
| 5 | + | You can send debug output from your program to a debug server application. A debug server application is included with Lazarus; you can compile | |
| 6 | + | ``` | |
| 7 | + | $(LazarusDir)/tools/debugserver/debugserver.lpi | |
| 8 | + | ``` | |
| 10 | 9 | ||
| 11 | - | ||
| 10 | + | and set it up as an external tool: | |
| 11 | + | ``` | |
| 12 | + | $(LazarusDir)/tools/debugserver/debugserver$(ExeExt) | |
| 13 | + | ``` | |
| 12 | 14 | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | - | ||
| 15 | + | [](</File:DebugServer.png>) | |
| 17 | 16 | ||
| 18 | - | ||
| 17 | + | Alternatively, FPC has a text mode debug server which can also be used; see documentation. | |
| 19 | 18 | ||
| 20 | - | ||
| 19 | + | To use it, add `dbugintf` to the uses clause of the units you want to debug, then use [SendDebug](<http://lazarus-ccr.sourceforge.net/docs/fcl/dbugintf/senddebug.html> "doc:fcl/dbugintf/senddebug.html") to send messages to the debug server. | |
| 21 | 20 | ||
| 22 | - | ||
| 21 | + | For more details, please see the documentation. | |
| 23 | 22 | ||
| 24 | - | ||
| 23 | + | **\--[DD](</index.php?title=User:DD&action=edit&redlink=1> "User:DD \(page does not exist\)") 05:38, 3 October 2015 (CEST): Does not seem to be thread safe!** | |
| 25 | 24 | ||
| 26 | 25 | ## See also | |
| 27 | 26 | ||
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | - | ||
| 27 | + | * [TEventLog documentation](<http://lazarus-ccr.sourceforge.net/docs/fcl/eventlog/teventlog.html> "doc:fcl/eventlog/teventlog.html") Built in support for logging in FPC/Lazarus | |
| 28 | + | * [[LazLogger]] | |
| 29 | + | * [[MultiLog]] | |
| 30 | + | * [[log4delphi]] | |
| 32 | 31 | ||
| 33 | 32 | --- | |
| 34 | - | ||
| 35 | - | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 33 | + | *From the Free Pascal wiki, page "DebugServer", as the Internet Archive kept it on 2023-04-01. 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](/wiki-contact).* |
