---
title: "Debugger Visualizer for MethodInfo, DynamicMethod, and MethodBase available for download"
url: "https://osherove.com/blog/2006/4/25/debugger-visualizer-for-methodinfo-dynamicmethod-and-methodb.md"
canonical: "https://osherove.com/blog/2006/4/25/debugger-visualizer-for-methodinfo-dynamicmethod-and-methodb.html"
published: "2006-04-25T19:01:00"
updated: "2006-04-25T19:01:00"
tags: [".Net 2.0", "Cool Tools"]
author: "Roy Osherove"
description: "When I was preparing (still am) for my TechEd talk about Reflection 2.0, one of the coolest things I found was this nice DynamicMethod visualizer posted as a code sample. Taking apart the code for this project was a…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Debugger Visualizer for MethodInfo, DynamicMethod, and MethodBase available for download

By Roy Osherove April 25, 2006 In [.Net 2.0](https://osherove.com/blog/category/net-2-0), [Cool Tools](https://osherove.com/blog/category/cool-tools)

**Historical article** · Originally published April 25, 2006; technical details may be outdated.

When I was preparing (still am) for my TechEd talk about Reflection 2.0, one of the coolest things I found was [this nice DynamicMethod visualizer](http://blogs.msdn.com/haibo_luo/archive/2005/10/25/484861.aspx) posted as a code sample.

Taking apart the code for this project was a blast, and I learned many interesting things. I set out to create a new version of this Debugger Visualizer that also supports visualizing MethodInfo objects, not just Dynamic Methods (Code generated on the fly).

Here's the result:

- Download [Just the binaries](http://teamagile.com/Downloads/MethodVisualizers_Bin.zip) (38k)  (simply unzip the dlls to My Documents\\VS 2005\\Visualizers)
- Download [Binaries and source](http://teamagile.com/Downloads/MethodVisualizers_Src.zip) (358k)

**Sample shots:**

Visualizing a MethodInfo object:

![](https://osherove.com/img/wb/849efef9_teamagile.com_images_MethodInfoVisualizer.GIF)

Visualizing a DynamicMethod object (the original ability for the code):

![](https://osherove.com/img/wb/46caad42_teamagile.com_images_DMVisualizer.GIF)

The source can help you learn how to:

- Get the IL byte stream from any MethodBase-based object
- Parse IL into understandable chunks
- Write a visualizer
- Resolve strings, methods and types from static Tokens in the IL code (see StaticResolver class)
- Understand IL Opcodes and what they stand for

Have fun, geeks!

## More in .Net 2.0

[All posts in .Net 2.0](https://osherove.com/blog/category/net-2-0)

- May 18, 2006

    ### [Oren Ellenbogen rocked last night about Generics, Delegates and Anonymous Methods.](https://osherove.com/blog/2006/5/18/oren-ellenbogen-rocked-last-night-about-generics-delegates-a.html)

- May 14, 2006

    ### [Small Tip: Getting the name of the current or calling method at runtime for debugging](https://osherove.com/blog/2006/5/14/small-tip-getting-the-name-of-the-current-or-calling-method.html)

- Mar 22, 2006

    ### [Windows Complication Foundation](https://osherove.com/blog/2006/3/22/windows-complication-foundation.html)

- Mar 13, 2006

    ### [Code from DevDays Belgium available: Design for Testability & Smart Client Offline Caching and Synchronization](https://osherove.com/blog/2006/3/13/code-from-devdays-belgium-available-design-for-testability-a.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
