Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine the file and line # of a C# method from a symbols (.pdb) file?

Tags:

c#

.net

pdb-files

pdb files contain symbol information for .NET assemblies. I'd like to read a pdb file in order to correlate methods with their file location. The data is contained within it but I can't seem to find a good description of how to get it out.

I know about mdbg, but that is very heavy (I think/hope) for what I want.

like image 261
Aaron Jensen Avatar asked Oct 02 '08 07:10

Aaron Jensen


People also ask

Can you tell what a file type is from the command line?

Of course, that’s limited to the user friendly file system of Mac OS X, and there are occasions where it may be necessary to detect how a file is encoded or what a file type is from the command line, often with less obvious clues (or no clues at all) than a visible file extension.

How do I find the location of a file in Linux?

Find the path next to “Location. ” It’s near the center of the window. Navigate to the folder that contains the file. For example, if the file is on your desktop, go to the desktop. Press ⊞ Win + R. This opens the Run command window. Drag the file to the Run command window.

How to find the size of a file on my computer?

How to Find the Size of a File on My Computer 1 Locate and highlight the file (s) or folder that you want to determine the size. 2 Right-click the file and click Properties. 3 As can be seen in the image below, you can determine the size of the file or files you have highlighted from in the file properties window. ... See More....

How do I check the file system type in Linux?

fsck is used to check and optionally repair Linux file systems, it can also print the file system type on specified disk partitions. The flag -N disables checking of file system for errors, it just shows what would be done (but all we need is the file system type): $ fsck -N /dev/sda3 $ fsck -N /dev/sdb1 fsck – Print Linux Filesystem Type


1 Answers

You should look:

  • Mono.Cecil and especially the Mono.Cecil.Pdb module. It should do what you want and more.
like image 131
Julien Hoarau Avatar answered Sep 21 '22 10:09

Julien Hoarau