<p>I am trying to generate some code at runtime using the DynamicMethod class in the Reflection.Emit namespace but for some reason its throwing a "VerificationException". Here is the IL code I am trying to use...</p>

<pre><code>ldarg.1
ldarg.0
ldfld, System.String FirstName
callvirt, Void Write(System.String)
ldarg.1
ldarg.0
ldfld, System.String LastName
callvirt, Void Write(System.String)
ldarg.1
ldarg.0
ldfld, Int32 Age
callvirt, Void Write(Int32)
ret
</code></pre>

<p>I need a way to debug the generated IL code. What options do I have? I am using VS2008 professional.</p>

Try using the
peverify
tool to check the IL. From MSDN:
peverify.exe performs comprehensive
  MSIL verification checks based on
  dataflow analysis plus a list of
  several hundred rules on valid
  metadata. For detailed information on
  the checks Peverify.exe performs, see
  the "Metadata Validation
  Specification" and the "MSIL
  Instruction Set Specification" in the
  Tools Developers Guide folder in the
  .NET Framework SDK.
You'll need to save the generated code to disk as an assembly for this to be useful though.