Breakpoints are not hitting the netstandard project referenced by the android project
My Android Xamarin project has a reference to a .NetStandard project. The breakpoints in the Android project work fine, but they are not contained in the .NetStandard code. Is there a workaround for the problem?
I believe the ppdb support here is not entirely for Xamarin. Thus, <DebugType>portable</DebugType>
dotnet.csproj implied in the standard is incompatible.
You can hit breakpoints in the dotnet standard library by adding the following to the dotnet.csproj standard library:
<DebugType>Full</DebugType>
This will revert to default debug type "full" instead of ppdb (portable pdb)
https://github.com/dotnet/core/blob/master/Documentation/diagnostics/portable_pdb.md#supported-scenarios
If there is a need for a conditional expression, you can return to the following:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>Full</DebugType>
</PropertyGroup>
or
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdb-only</DebugType>
</PropertyGroup>
However, the release is a <DebugType>
bit redundant.