I have been using portable PDB files output by my custom compiler on desktop mono for a long while now. While I can deploy apps made by teh same compiler which run ok on the device, I cannot debug them when using portable pdb even if I hack the build system to actually include the pdb file in the apk. I end up with VSCode connected the debugger agent on teh device but no breakpionts get triggered like what used to happen with mdb files in the past. Noticing that mono in general is moving to CSC from MCS which does not make mdb files, I suggest enabled the portable pdb support in t
he embedded mono runtime also when running on mobile. I also suggest to make these build system hacks unneeded by copying the pdb files to the apk as an out of teh box behaviour.
I also noticed that the cecil tools used to convert pdb to mdb, now support PPDB as well.
Is there anything happening with this bug? Or do we have to generate mdb files? I submitted a related question here:
In that post I'm asking about mdb generation, but the answers suggest that debugging with portable pdbs should work. I'm finding it doesn't, as Dylan Borg has outlined above.
Support for portable pdbs would simplify things a lot. Please could you provide an ETA on this? Or let us know if we have to generate mdbs.
I believe that Xamarin.Android 7.3 introduced support for Portable PDB files:
> Among the many highlights in Mono 5.0 is support for Portable .pdb files.
Thanks for the quick response. Our app is targeting Android 8.0, so we should benefit from this. However, portable pdbs are not being loaded for me in Visual Studio. If I look in the Modules window during debug, I can see all the symbols that are loaded for my app. The only ones that are loaded are mdbs. Even for Xamarin.Forms 2.5, it is the mdb file that is loaded.
Is there anything I have to do to force the app to load portable pdbs instead of mdbs?