Hi IvankoB, On 11 July 2012 11:57, IvankoB <ivankob4m...@gmail.com> wrote: >> or use debugwriteln(). >> > > Excellent option but not too convinient. Could You extend it to be > all-eating (accepting input params of the regular "writeln" - any data > type & arbitrary number of) ?
You could also try the dbugintf (debug interface) unit included with FPC. Then use a "debug server" to view the results. FPC includes a very rudimentary console debug server. fpGUI has a GUI debug server that displays more information. I have plans to extend what the debug server can do (different data types, tree structure for output, image support etc). <fpgui>\examples\apps\debugserver You have an interface as follows: procedure SendBoolean(const Identifier: string; const Value: Boolean); procedure SendDateTime(const Identifier: string; const Value: TDateTime); procedure SendInteger(const Identifier: string; const Value: Integer; HexNotation: Boolean = False); procedure SendPointer(const Identifier: string; const Value: Pointer); procedure SendDebugEx(const Msg: string; MType: TDebugLevel); procedure SendDebug(const Msg: string); procedure SendMethodEnter(const MethodName: string); procedure SendMethodExit(const MethodName: string); procedure SendSeparator; procedure SendDebugFmt(const Msg: string; const Args: array of const); procedure SendDebugFmtEx(const Msg: string; const Args: array of const; MType: TDebugLevel); You can very easily extend that interface as well. It works pretty well, because debug information goes outside the application, and doesn't slow down your app. If you don't have a debug server running, the debug messages go nowhere. You can use this for Console, CGI or GUI applications. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk