[Lazarus] LazDaemon

Michael Van Canneyt michael at freepascal.org
Fri Jul 25 08:27:52 CEST 2014



On Fri, 25 Jul 2014, Juha Manninen wrote:

> On Fri, Jul 25, 2014 at 9:05 AM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>>> I will use now the FPC daemon class, it works.
>>
>> Out of curiosity: which class is that ?
>
> I mean the TCustomDaemon and TCustomDaemonMapper descendants as
> explained in your PDF, without using LazDaemon package.
> LazDaemon uses the same classes internally yet it does not work. Yes,
> it is strange.
>
> Now, does anybody know how to debug Windows services?

You can only do it by attaching to an external process.
Start the service, and attach the debugger to it.

That obviously means that you will miss the startup code.

It's what I hate about windows services :(
Usually I make the program twice: once as a normal program (to debug) 
and once as a service.

Michael.




More information about the Lazarus mailing list