Open dsisco11 opened 8 years ago
Possible solution: http://forum.kerbalspaceprogram.com/index.php?/topic/102909-ksp-plugin-debugging-and-profiling-for-visual-studio-and-monodevelop-on-all-os/
Apparently mono does indeed refuse loading debug info at ALL unless using a debug build. It also seems that mono can't(?) load .pdb files and we need to convert them to it's own .mdb format as a post-build step (no problem there)
For some unknown reason even when we load .pdb file data for any loaded assemblys using Assembly.LoadFrom(byte[], byte[]) any thrown exception stack traces do not include any file or line information.
It almost seems like maybe unity forcefully unloads any debug information while not in debug builds, but that's only speculation. Is such a thing even possible? Can you tell an AppDomain to not allow debug information to load? This will require a lot more investigation, perhaps decompiling the exe's will yield useful information, time to open up IDA Pro...