Solved

How to debug a Windows service written in Delphi

Posted on 2007-11-16
6
4,128 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Title # Comments Views Activity
drawing animated level bar based on numbers 3 104
Multi-layered image in FireMonkey 9 48
Firemonkey BASS_Init into a thread 17 30
shape, triangle, dbctrlgrid 3 17
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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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