Wish: Reflector.PDB

Here is an idea for a kick-ass Reflector plugin. We already have Reflector plugins for outputting entire projects out, but what I would really like to see is a plugin that takes it one (big) step further and generate the PDB as well.

A PDB file allows Visual Studio to debug, it contains the correlation between the compiled code and the source code, enabling stepping into the code. The important idea here is that Reflector is capable of producing botht he source code and the PDB, which would allow us to debug into assemblies that we don't have the source to.

The big benefit of generating the source and compiling ourselves is that we don't need to do it for the whole chain. The immediate use of this would be to finally see what black magic is making the view state put values in completely random places.

Print | posted on Saturday, April 14, 2007 2:38 PM

Feedback


Gravatar

# re: Wish: Reflector.PDB 4/14/2007 6:33 PM Omer van Kloeten

I'm so with you on that...


Gravatar

# re: Wish: Reflector.PDB 4/14/2007 8:51 PM Bob Grommes

That would be cool, but aren't many if not most methods in Microsoft DLLs marked with an attribute that causes the debugger not to trace through them anyway?


Gravatar

# re: Wish: Reflector.PDB 4/14/2007 11:30 PM Scott Salyer

That would be extremely awesome to have. I'd be especially interested in seeing how Viewstate is truly constructed in a piece-by-piece scenario.


Gravatar

# re: Wish: Reflector.PDB 4/16/2007 2:43 AM Ayende Rahien

Yes, there are, but they aren't that many, and they usually for generated code that you aren't interested in.
The reason that is skips the MS dlls is because it has no source for them.


Gravatar

# re: Wish: Reflector.PDB 4/17/2007 7:03 AM Vitaly

Presumably, one can try to use ilasm.exe to generate the pdb (/debug option, I think).

Speaking of which, does anyone know of a reference that details the structure of a pdb file? I searched, but couldn't find anything ...


Gravatar

# re: Wish: Reflector.PDB 4/18/2007 6:40 PM Reshef

I read an article that describes how to do that a few years ago. It is pretty complex process but I tried it and it works.
U can take a look at it here: http://www.codeproject.com/dotnet/Debug_Framework_Classes.asp


Gravatar

# re: Wish: Reflector.PDB 4/18/2007 11:39 PM Ayende Rahien

Reshef,
Thanks for the link, while I can read IL, I would rather:
A/ work against the officially compiled code, including any post-processing that might have been done.
B/ Not read IL if I can read real language.

Comments have been closed on this topic.