Simon
Simon

Reputation: 34880

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

Upvotes: 5

Views: 239

Answers (2)

John Simons
John Simons

Reputation: 4288

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

Upvotes: 1

aL3891
aL3891

Reputation: 6275

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..

Upvotes: 1

Related Questions