I’m trying to setup DLL debuging for DLLs compiled in Visual Studio 2015. The target is .Net 3.5 and DLLs can work in Unity 5.1.2f1. I’ve tried all of the following command lines to try and convert the pdb to mdb, but none of them are working.
"C:\Program Files\Unity\Editor\Data\Mono\lib\mono\2.0\pdb2mdb.exe" DLLTest.dll
"C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.5\pdb2mdb.exe" DLLTest.dll
"C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\bin\cli.bat" "C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.5\pdb2mdb.exe" DLLTest.dll
Here is the error for each of them.
Fatal error:
Microsoft.Cci.Pdb.PdbDebugException: Unknown custom metadata item kind: 6
at Microsoft.Cci.Pdb.PdbFunction.ReadCustomMetadata(BitAccess bits)
at Microsoft.Cci.Pdb.PdbFunction..ctor(String module, ManProcSym proc, BitAcc
ess bits)
at Microsoft.Cci.Pdb.PdbFunction.LoadManagedFunctions(String module, BitAcces
s bits, UInt32 limit, Boolean readStrings)
at Microsoft.Cci.Pdb.PdbFile.LoadFuncsFromDbiModule(BitAccess bits, DbiModule
Info info, IntHashTable names, ArrayList funcList, Boolean readStrings, MsfDirec
tory dir, Dictionary`2 nameIndex, PdbReader reader)
at Microsoft.Cci.Pdb.PdbFile.LoadFunctions(Stream read, BitAccess bits, Boole
an readAllStrings)
at Pdb2Mdb.Driver.Convert(AssemblyDefinition assembly, Stream pdb, MonoSymbol
Writer mdb)
I also tried it after following the instructions at this link, but it doesn’t seem to help. Are there any fixes for these errors, or is there another way to debug DLLs compiled in VS2015?