I seem to be having the same problem
and am using .9.2

On Jun 8, 10:52 pm, Niels <[email protected]> wrote:
> Hi Jb,
>
> Thank you for your quick response.
>
> If I understand it correctly my code should look something like this:
>
> ReaderParameters readerParameters = new ReaderParameters();
> readerParameters.ReadSymbols = true;
> AssemblyDefinition assembly =
> AssemblyDefinition.ReadAssembly(file.FullName, readerParameters);
>
> .... do some work
>
> WriterParameters writerParameters = new WriterParameters();
> writerParameters.WriteSymbols = true;
> assemblyEntry.Value.Write(file.FullName, writerParameters);
>
> I added the ReaderParameters and WriterParameters, this doesn't seem
> to have an effect. What do I do wrong ?
>
> With regards,
>
> Niels Bergsma
>
> On Jun 8, 1:52 pm, Jb Evain <[email protected]> wrote:
>
> > Hey,
>
> > On Tue, Jun 8, 2010 at 1:41 PM, Niels <[email protected]> wrote:
> > > I can successfully inject IL instructions with Mono.Cecil into a class
> > > library, but afterwards (after injecting) I am unable to set a
> > > breakpoint or debug the output (dll). After reading a couple of
> > > discussions in this group I suspect thepdbfile is out of sync. I've
> > > looked into the mono.cecil.pdblibrary but I'm unsure how to use it.
> > > Could someone verify my assumption and give some pointer how to use
> > > it.
>
> > Yes, if you instrument an assembly, you have to create a newpdbwhich
> > reflects the instrumented assembly.
>
> > Please read:http://wiki.github.com/jbevain/cecil/debug-symbols
>
> > --
> > Jb Evain  <[email protected]>
>
>

-- 
--
mono-cecil

Reply via email to