Yes I did read this and it says ReaderParameters.ReadSymbols OR
WriterParameters.WriteSymbols.
My code is below, the output does write a new dll AND a pdb file into
the enhanced directory.
As soon as I reference those new assemblies instead of the orginal
one, navigating in source opens the "from metadata" page, NOT the real
source. Also setting a breakpoint in the original sources, than shows
a warning "no symbols are loaded" while the module window shows my pdb
loaded.
var _WriterParameters = new WriterParameters
{
WriteSymbols = true,
SymbolWriterProvider = new PdbWriterProvider()
};
foreach (AssemblyDefinition _Assembly in
assembliesToEnhance)
{
string _FullName = aFullAssemblyFileURLs.Where(x =>
x.IndexOf(_Assembly.Name.Name) != -1).Single();
string _NewName = _FullName.Replace(@"Debug\",
@"Intercepted\");
_Assembly.Write(_NewName, _WriterParameters);
}
On Dec 7, 9:58 am, Jb Evain <[email protected]> wrote:
> Hi,
>
> On Tue, Dec 7, 2010 at 3:55 PM, joer <[email protected]> wrote:
> > I solved my "2 assembly" problem for now creating a single one out of
> > both. It now enhances fine, however does not debug step anymore !
>
> Did you by any chance read:
>
> https://github.com/jbevain/cecil/wiki/Debug-symbols
>
> And made sure you're reading and writing new symbols ?
>
> Jb
--
--
mono-cecil