SturmUndDrang
SturmUndDrang

Reputation: 1956

Unable to debug .NET core projects in Visual Studio 2017

I have a Service Fabric application with several services - some .NET core, some not. The target framework for all projects is .NET 4.6.2. Other members of my team are able to hit breakpoints in the core projects, but on my machine the symbols are never loaded. Breakpoints in the non-core projects are hit OK.

I have tried cleaning the solution, rebuilding, restarting Visual Studio and upgrading Visual Studio to 15.5.0 (from 15.3).

I am running a Debug build (x64).

I have also tried explicitly adding the output folders as symbol locations in the debugging settings.

Upvotes: 2

Views: 1211

Answers (2)

santippello Furente
santippello Furente

Reputation: 1

In may case was Optimized Code turned on in Build section of Project

Upvotes: 0

SturmUndDrang
SturmUndDrang

Reputation: 1956

Turned out it was the "Use Managed Compatibility Mode" setting (it was switched on for me). Turning that off allows debugging of .NET core Service Fabric services (it has no effect on normal .NET core projects).

Thanks patutin!

Upvotes: 7

Related Questions