Question

I've got a C# tool that loads arbitary assemblies using Assembly.LoadFrom(). It then does some reflection on the assemblies and reports back to the user. The problem is there is no debugging information, so my tool can't report on line numbers or file names, for instance.

The assemblies I'm loading have symbol files in the same directory (they're mdb files, because I'm on OSX and using mono). How can I load these files and associate them with the relevant assemblies?

Était-ce utile?

La solution

AFAIK the .mdb files should just work if they are located in the same directory as the dll files.

What you might be missing is the flag --debug passed to mono when launching your program.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top