user603007
user603007

Reputation: 11794

debugging windows service: breakpoint will not currently be hit

I have attached the process for my windows service which is running/started on my machine. In vs.net 2010 I have a few breakbpoints set in my service, but each of them says?:

'break point will not currently be hit'

what is the easiest way to get the debugging for windows services happening?

Upvotes: 3

Views: 2816

Answers (1)

Ghyath Serhal
Ghyath Serhal

Reputation: 7632

This is the correct way to debug the windows service but you should be sure that the files of the windows service are updated. I mean that whenever you build the windows service project you should stop the service, replace the windows service exe and the related dlls and then restart the windows service.

Upvotes: 4

Related Questions