Visual Studio 2022 - Just My Code debugging not working?

Viewed 4589

I'm using VS 2022 and no matter what setting I change, I can't get the thing to stop trying to step into compiled dependencies. I have an exception that is occurring that gets swallowed up and this is presented:

enter image description here

I've tried resetting my C# settings for VS22 and I've ensured Just My Code is enabled.

enter image description here

2 Answers

As a workaround, select "Load only specified modules" and either leave the list empty or make sure the module is not there.

enter image description here

It seems if symbols have been loaded for an external library, Visual Studio would ignore "Enable just my code" and still attempting to debug that library, which is really annoying.

Step 1: Click on Tools and click on Options.
Step 2: On Debugging General Uncheck Enable Just My Code.

enter image description here

Step 3: check both Symbol Servers. enter image description here

Step 4: Restart the Visual Studio.

Related