Matt Taylor
Matt Taylor

Reputation: 219

Does anyone know if you can debug a Service Fabric cluster locally?

We're having a few issues when trying to debug a local Service Fabric cluster using https. We are able to do it with a lot of faff but surely there must be an easy way.

Also most of our endpoints are HTTP.Sys

TIA

Upvotes: 0

Views: 72

Answers (1)

LoekD
LoekD

Reputation: 11470

Based on your last comment: Did you know you can override endpoint behavior using parameters and use different parameters per environment?

<ServiceManifestImport>
    <ServiceManifestRef ServiceManifestName="Stateless1Pkg" ServiceManifestVersion="1.0.0" />
    <ConfigOverrides />
    <ResourceOverrides>
      <Endpoints>
        <Endpoint Name="ServiceEndpoint" Port="[Port]" Protocol="[Protocol]" Type="[Type]" />
        <Endpoint Name="ServiceEndpoint1" Port="[Port1]" Protocol="[Protocol1] "/>
      </Endpoints>
    </ResourceOverrides>
    <Policies>
       <EndpointBindingPolicy CertificateRef="TestCert1" EndpointRef="ServiceEndpoint"/>
    </Policies>
</ServiceManifestImport>

and

<Parameters>
    <Parameter Name="Port" DefaultValue="" />
    <Parameter Name="Protocol" DefaultValue="" />
    <Parameter Name="Type" DefaultValue="" />
    <Parameter Name="Port1" DefaultValue="" />
    <Parameter Name="Protocol1" DefaultValue="" />
</Parameters>

More info here.

Upvotes: 1

Related Questions