Search code examples
c#azure-service-fabric

Cannot debug Service Fabric


I have a statesless Service Fabric service

I am deploying it within my application into a 1 node dev cluster

None of my breakpoints ever get hit

I have rebuilt, restarted, updated visual studio and I am now really out of ideas

Has anyone ever seen this?

The strange thing is that my breakpoints stay active

I know my logic is being executed as messages are shown in the console

Paul


Solution

  • Linking the answer in the comments

    https://stackoverflow.com/a/42118286/5946937

    1. Close all Visual Studio windows.
    2. Restart the Service Fabric service: Type services.msc in the windows run tool. Find Microsoft Service Fabric Host Service. Right Click + Restart.
    3. Reset the local cluster: Look at the Service Fabric Local Cluster Manager Icon in the notification area in the right side of the task bar. Right Click + Reset Local Cluster.
    4. Open the problematic solution in Visual Studio.
    5. Clean and Rebuild solution.
    6. Finally run your solution (press F5).