If you get “Unable to automatically debug ‘XXX.Service’. The remote procedure could not be debugged. This usually indicates that debugging has not been enabled on the server. See help for more information.” message while debugging WCF Service remove “Configure” static function from service.
public static void Configure(ServiceConfiguration config)
{
}