[Mono-dev] Debugging Busted CIL

Robert Jordan robertj at gmx.net
Mon Oct 3 17:26:16 EDT 2005

Hi Jim,

> I'm currently trying to work out what is wrong with
> some assemblies I've generated and thought that people
> on the list might have some cunning techniques that I
> haven't thought of.

How are you generating the assemblies? Are this
assemblies generated by MS tools? Mono doesn't
support incremental assemblies generated by CSC.

> Currently my process consists of running my app which
> embeds Mono, waiting for it to spit out an
> **ERROR**:Invalid IL code at <blah> aborting...
> message and then staring at dissassembly trying to
> work out stack states on a piece of paper and hoping I
> see what's wrong.

Did you verify the assembly?

Mono: pedump --verify code  <assembly>
MS:   PEVerify.exe          <assembly>

Mono has a disassembler, too: monodis <assembly>


More information about the Mono-devel-list mailing list