Solved

How to debug a Windows service written in Delphi

Posted on 2007-11-16
6
4,173 Views
Last Modified: 2010-05-18
I wrote a Windows service with Delphi (Turbo Delphi 2006)
It runs fine but now I have some problem with it and I want to debug it
How to proceed ?
0
Comment
Question by:LeTay
6 Comments
 
LVL 19

Accepted Solution

by:
MerijnB earned 500 total points
ID: 20298153
what I normally do is wrap all functionality in one class
you then can first debug this class in a normal application, which is much easier
0
 

Author Comment

by:LeTay
ID: 20298180
That's indeed what I plan to do if there is no other alternative...
But I guess there should be one
0
 
LVL 14

Expert Comment

by:SteveBay
ID: 20298277
I am a huge fan of CodeSite http://www.raize.com/DevTools/CodeSite/Default.asp. I don't know how any serious developer can get by without it.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Expert Comment

by:MerijnB
ID: 20298295
here is some interesting stuff: http://www.tolderlund.eu/delphi/service/service.htm
0
 
LVL 28

Expert Comment

by:2266180
ID: 20299131
here is my experience on this problem: http://www.ciuly.com/forum/viewtopic.php?t=114 
I like this one better as it only needs 2-3 minor modifications to the service project and you're off with debugging it.
0
 

Author Comment

by:LeTay
ID: 20372399
Well, I have wrapped the code into a Form application, looks to be the easiest
Thanks all of you
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question