I have a Xamarin.Forms project and referenced a dll, which I wrote. Don't know since when, but now I can't set a breakpoint in the dll or step into the dll. I'm debugging directly on an Android tablet.
First, I got the message
Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code).
Then I changed the debug options and unchecked "Enable Just My Code". Now I get
No compatible code running
The selected debug engine does not support any code executing on the current thread (e.g. only native runtime code is executing).
I checked the solutions from this post, but up to now nothing of them worked:
- pdb files are on the same place, where the dll is
- "Enable Just My Code" was unchecked
- everything in Debug mode under Build > Configuration Manager (Xamarin.Forms project as well as library)
- uncheck of "Require source file exactly match with original Version" and "Step over Properties and Operators"
- restart of VS
- clean solutions and rebuild
- clean of
%USERPROFILE%\AppData\Local\Temp
as described here - checked "Enable native code debugging" in the XF solution project options
- restarted PC
- removed app and support libraries from device
- tried another device incl. emulator
It always worked like this:
- checked reference to correct dll version (with rebuild)
- open *.cs file from the dll project
- set breakpoint or step into dll and have fun
Now it doesn't and I'm runnig out of ideas. I'm using Visual Studio 2019 (v 16.5.4). It does work with project reference, but I don't want to change the settings everytime. Or has this feature (debugging a referenced dll) been removed in VS 2019?