Discussion:
Not able to debug Windows service in VC6
(too old to reply)
r***@gmail.com
2008-03-03 04:31:35 UTC
Permalink
Hi All,
I am working in old project, which has all its code base in
VC6. I have to debug a windows service written in VC6. I am not able
to debug a service in Visual studio 6.0 SP6.
I build a same service in visual studio 2005 and try to debug , I can
debug easily. So I am not able to find out how to debug it in VC6. I
followed a these steps.
- Built a debug version of service
- install and start the service
- Put a break point on the beginning of functional logic
- In visual studio choose the option "Attach to process".
- chose the exe of service from menu and click ok.

But after doing that visual studio pointer is going to
disassembly(machine code) with errors "no matching symbolic
information found". Same process is working fine in Visual studio 2005
(I can not build a service in VS 2005, since my other code base is in
VS 6.0 ). I also tried a debugbreak, but it is also leading to
disassembly. Do any one can guide use, how can I debug the service in
VS 6.0?
Rômulo Férrer
2008-03-05 10:18:40 UTC
Permalink
Post by r***@gmail.com
Hi All,
I am working in old project, which has all its code base in
VC6. I have to debug a windows service written in VC6. I am not able
to debug a service in Visual studio 6.0 SP6.
I build a same service in visual studio 2005 and try to debug , I can
debug easily. So I am not able to find out how to debug it in VC6. I
followed a these steps.
- Built a debug version of service
- install and start the service
- Put a break point on the beginning of functional logic
- In visual studio choose the option "Attach to process".
- chose the exe of service from menu and click ok.
But after doing that visual studio pointer is going to
disassembly(machine code) with errors "no matching symbolic
information found". Same process is working fine in Visual studio 2005
(I can not build a service in VS 2005, since my other code base is in
VS 6.0 ). I also tried a debugbreak, but it is also leading to
disassembly. Do any one can guide use, how can I debug the service in
VS 6.0?
Hi,
I work with distributed Network Systems that have some modules VC6
sp2. The way that I can debug my application is setting argument-
parameter by visual studio. Even Nowday i can not debug my application
in real time. Maybe It can be a problem of tool.
second, you can try update the symbols of Visual Studio 2005 to debug.
In VS 2005, do the following:

1. Open Visual Studio. Goto Tools->Options
2. Expand the "Debugging" node
3. Click on the "Symbols" node under "Debugging"
4. Click on the icon that looks like the new folder icon to add a
new .pdb location
5. Type the following for the location "smysrv*symsrv.dll*c:
\symbols*http://msdl.microsoft.com/downloads/symbols"
6. In the Cache symbols from symbol servers to this directory,
enter the local path you used in step 5. In this case "c:\symbols"
7. Click Ok.
http://geekswithblogs.net/mskoolaid/archive/2005/12/17/63418.aspx
Loading...