3
votes

I have a WCF service and it is hosted in a Windows Service (Not IIS) I created.

I have created a client console app and it installed on a different PC.

I have tested it all and the WCF method is invoked OK by the client.

Normally, i host my WCF under IIS and I would normally attach to the w3wp.exe process and debug it.

What process do I attach when it is hosted by my web service?

I have tried attaching to the service exe but the breakpoint did not get hit.

So, my question is how do I debug my WCF under a Windows Service?

Thanks

1
Attaching to the service exe file is the correct thing to do. Are you attaching to the remote machine? Did you copy the .pdb file across? - David Arno
Hi I am debugging directly on the PC hosting the service. - Andrew Simpson

1 Answers

0
votes

You should just attach to service that you created on remote PC. To check all services that is installed on remote PC go:

Contoll panel -> Administrating -> Services

Just find your service there and you can connect to it.