Debugging DLL’s in Unity

Just recently I’ve been attempting to debug custom DLL’s in Unity with Visual Studio.

After a bit of fooling around with pdb2mdb.exe as it is mentioned in the Unity documentation I came across a little gem in the Visual Studio Tools for Unity (VSTU) documentation, there it mentions that VSTU automatically generates an MDB from the PDB file, so i figured now that VSTU is integrated in Unity it should happen automatically.

And indeed Unity can automatically convert the PDB file to an MDB file on import. Just copy the PDB file along with the DLL and unity will generate an MDB file automatically. Saves having to call pdb2mdb.exe yourself.

There you go another complexity saving tip from yours truly.

If anyone knows if this works on OSX aswell let me know.