473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Debugging Windows Service

Dear:

I created a windows service and I need to debug it , can anyone tell me how
can I debug It?
I tried to attach the process using visual .net (Tools->Debug
Process->Select my process then attach) when I place a breakpoint it will
have (?) not loaded.

any ideas?
Nov 16 '05 #1
2 1525
Hi Raed,

I do not understand the problem you state at the end. What will not have
loaded?

Normally, you should install the debug-version of the service program. Along
with pdb-information, the debugger can allow you to debug your code.

Although I have never really debugged a service from .NET (IIRC), I think
the way you did it, is the way it should be done. After .NET debugger
attached to the process you can place the breakpoints in code. If the service
is a debug-version then that should work.

Can you verify that you are using the debug version of your service program?
Did you place breakpoints before or after you attached? Perhaps you should
do it only after the debugger attached to the process.

HTH,
Tom T.

"Raed Sawalha" wrote:
Dear:

I created a windows service and I need to debug it , can anyone tell me how
can I debug It?
I tried to attach the process using visual .net (Tools->Debug
Process->Select my process then attach) when I place a breakpoint it will
have (?) not loaded.

any ideas?

Nov 16 '05 #2
I meant by not loaded that when I placed the breakpoint into my code the
breakpoint shape has question mark(?) though I attached the process.
But as u pointed out the problem I was using the release version not debug
version.
It works now.

Thanks

"TT (Tom Tempelaere)" wrote:
Hi Raed,

I do not understand the problem you state at the end. What will not have
loaded?

Normally, you should install the debug-version of the service program. Along
with pdb-information, the debugger can allow you to debug your code.

Although I have never really debugged a service from .NET (IIRC), I think
the way you did it, is the way it should be done. After .NET debugger
attached to the process you can place the breakpoints in code. If the service
is a debug-version then that should work.

Can you verify that you are using the debug version of your service program?
Did you place breakpoints before or after you attached? Perhaps you should
do it only after the debugger attached to the process.

HTH,
Tom T.

"Raed Sawalha" wrote:
Dear:

I created a windows service and I need to debug it , can anyone tell me how
can I debug It?
I tried to attach the process using visual .net (Tools->Debug
Process->Select my process then attach) when I place a breakpoint it will
have (?) not loaded.

any ideas?

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Evans | last post by:
Hi I have a service created in VS.NET, which I can install and run quite happily. After teh service is running, I can attach and run the debugger. However, if I set a breakpoint in the IDE the...
6
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody see the situation when the VS refuses to debug the Web Service at all? I can't catch why, the initially created Web Service can be debugged very easy but after some changes...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
2
by: Craig | last post by:
Hope this is the right group, first timer - Just got back from holiday to find our Dev Server (Standard 2003, All hotfixes up to date) has been patched with KB 867460 (.NET Framework 1.1 Service...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
0
by: Ken Allen | last post by:
The MSDN documentation on remote debugging is a bit sparse, to say the least, and there is almost no information available on the 'best' way to configure this. I should note that my development...
1
by: JLuis Estrada | last post by:
Hi there. Id tried to find information about how to set up the remote debugging on win2003. I have a PC with winxpsp2 with VS2003 installed. And I developed an winservice app that runs on the...
0
by: krystian | last post by:
Hello, I've been following the previous thread "Windows Service Starts and Immediately Stops" and I have a similar problem. I've been trying to get started on a windows service and have...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
7
by: GaryDean | last post by:
(this was also posted on the MSDN WCF forum but the answers over there are not so good) I have a WCF Library hosted by IIS 6 and it all works fine. However I need to step through the code in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.