As "debait" the service code in Rad Studio Delphi XE2?

As "debait" the service code in Rad Studio Delphi XE2? And then when you need something to see the variables in there or something, to have either the logs to write to a file (then uncomfortable this partyanku to read), or move the code in normal (not service) application, which is also "Mitino". And want that service stayed on breakpoint.
July 9th 19 at 13:57
2 answers
July 9th 19 at 13:59
There has long been a function Attach to process by specifying a working folder, the paths to the source.
It's still in Delphi 7 used, profiled services (though XP is still the interactive mode worked, but didn't use it), the same is in new Delphi, and works great and even better.

Truth was necessary to write a crutch to helpful service begins when the registry entry appears, and the spinning cycle in idle and issue employment, so that SCM did not give the heave-Ho, saying the service hangs and does nothing, turn it off forcibly.
Connected to the process, without stopping, put the talkie where necessary.
Pressed the button in the crutch, the service was out of cycle and you are good to go.
Erase, here I do so. Switch to Debag-mode, put a breakpoint , do Build. Start the service. Do Run/Attach to Process... And open the tab "CPU" with assemb. the code stops there all. There is the same arrow, but the page's source code, the breakpoint didn't work. It worked in the CPU tab. Press F8 / F9 all the "falls". And the result I got, using the sources I didn't stop. What am I doing wrong? Add in the project properties, change the option "Output Directory" to the one where the service file lies - Emilio_Quitz commented on July 9th 19 at 14:02
My cycle is for SCM, I did not touch him. The breakpoint in additional flow, which does not prevent to give to the SCM signals about their health - Emilio_Quitz commented on July 9th 19 at 14:05
July 9th 19 at 14:01
I usually hate the program code in separate modules, which then connect to the service project. If you need to debug your code, the cat doing the project console program, connect the modules.
made module 4 so., but home he never thought of. - Emilio_Quitz commented on July 9th 19 at 14:04

Find more questions by tags Delphi