Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to provide .net with the pdb data after an assembly has been loaded?

Using this method Assembly.Load(Byte(), Byte()) http://msdn.microsoft.com/en-us/library/twt16z2x.aspx It is possible to provide a byte representation of the pdb file.

Given that an assembly has already been loaded is it possible to provide pdb data after the fact.

Edit: I am talking programmatically. ie not with the debugger

like image 728
Simon Avatar asked Nov 05 '22 20:11

Simon


2 Answers

It is not possible in managed code. And I have no idea how to do it in unmanaged!

like image 191
John Simons Avatar answered Nov 15 '22 05:11

John Simons


you can try going into debug > windows > modules in vs when you're attatched to the process. there you'd locate your assembly, right click on it and select load symbols (or something to that effect).

i have tried that will byte[]-loaded assemblies though..

like image 43
aL3891 Avatar answered Nov 15 '22 05:11

aL3891