Solved

How to debug a Windows service written in Delphi

Posted on 2007-11-16
6
4,237 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 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