- Yes, settings from the service config file will be used. Standard configs in .net work at the application level, and not at the level of individual dlls.
- If you need to debug the start of the service, you can add a call to
Debugger.Launch
.
Or set the studio as a debugger for the exe-file of the service via Image File Execution Options - but this will still launch a new studio, and not just turn on debugging into an existing one.
But these methods should be used only for debugging problems related specifically to the Windows Service, and not to the WCF that is hosted in it.
The work of the WCF host inside the service is no different from the operation of the WCF host inside a regular console. So the easiest way to debug a WCF service in the development process is to create a separate console application to run a WCF host from the studio, with a config that is common between the service and the console application.