[Lazarus] My two wishes for the Message window of the IDE
Flávio Etrusco
flavio.etrusco at gmail.com
Sun Feb 28 23:49:57 CET 2010
On Sun, Feb 28, 2010 at 7:39 PM, Sergei Gorelkin
<sergei_gorelkin at mail.ru> wrote:
> dmitry boyarintsev пишет:
>>
>> On Sun, Feb 28, 2010 at 8:53 PM, Sergei Gorelkin
>> <sergei_gorelkin at mail.ru> wrote:
>>>
>>> There should be no need to test for the IDE. Just write messages to some
>>> named IPC channel, and have the IDE (or whatever other "log viewer"
>>> application) listen on the other side. IIRC this is how OutputDebugString
>>> works, it uses a named pipe for communication.
>>
>> Is there a ready to use component for that?
>>
> Well, there is simpleipc unit in fcl-process unit (with client and server
> components), but no idea whether it can be used for the intended purpose
> without modifications.
>
> Sergei
Not to state the obvious but... First one/we need to decide what the
function will be called, OutputDebugString or DebugLn. Then decide
what LCL unit should it be in. Then make an inline function which
would just check whether a global function-typed var is set and a call
it, for the IDE to hook.
Then we think about IPC and such...
-Flávio
More information about the Lazarus
mailing list