How can I extract the pdb file of the main assembly? I can't find it
gileli121 opened this issue · 1 comments
Hi, according to what I read, this should include the pdb
file of the main assembly.
I need to extract it in order to debug the crash dumps I have ( https://docs.microsoft.com/en-us/visualstudio/debugger/using-dump-files?view=vs-2019#BKMK_Find_binaries__symbol___pdb__files__and_source_files ).
But I can't figure out how to get it...
I tried this line for start:
Application.ResourceAssembly.GetManifestResourceNames();
And it returned the following output:
{string[30]}
[0]: "WindowTop.g.resources"
[1]: "WindowTop.languages.txd"
[2]: "costura.costura.dll.compressed"
[3]: "costura.costura.pdb.compressed"
[4]: "costura.fontawesome.wpf.dll.compressed"
[5]: "costura.interop.uiautomationclient.dll.compressed"
[6]: "costura.microsoft.bcl.asyncinterfaces.dll.compressed"
[7]: "costura.microsoft.xaml.behaviors.dll.compressed"
[8]: "costura.microsoft.xaml.behaviors.pdb.compressed"
[9]: "costura.modernwpf.controls.dll.compressed"
[10]: "costura.modernwpf.dll.compressed"
[11]: "costura.nlog.dll.compressed"
[12]: "costura.colorpicker.dll.compressed"
[13]: "costura.system.buffers.dll.compressed"
[14]: "costura.system.diagnostics.diagnosticsource.dll.compressed"
[15]: "costura.system.memory.dll.compressed"
[16]: "costura.system.numerics.vectors.dll.compressed"
[17]: "costura.system.runtime.compilerservices.unsafe.dll.compressed"
[18]: "costura.system.text.encodings.web.dll.compressed"
[19]: "costura.system.text.json.dll.compressed"
[20]: "costura.system.threading.tasks.extensions.dll.compressed"
[21]: "costura.system.valuetuple.dll.compressed"
[22]: "costura.unclassified.txlib.dll.compressed"
[23]: "costura.unclassified.txlib.pdb.compressed"
[24]: "costura.wpfanimatedgif.dll.compressed"
[25]: "costura.wpfanimatedgif.pdb.compressed"
[26]: "costura.fluentwpf.dll.compressed"
[27]: "costura.fluentwpf.pdb.compressed"
[28]: "costura.notifications.wpf.dll.compressed"
[29]: "costura.metadata"
From this list, looks like there pdb
I am looking for (in this case I am looking for something like windowtop.pdb
or windowtop.pdb.compressed
or whatever it is) is not found.
So I wondering if it did embed the pdb
file or not... Anyway, I hope that it did and I don't know how to get it.
When I try to build it, I do see the pdb
file generated also for Release mode. So I think that it should be there
Can you help?
don't worry, I will buy you coffee. What is your Paypal?
Costura embedds all dependencies and optionally their pdb
files, but not the pdb
of the hosting assembly.
If you need this, use the <DebugType>embedded</DebugType>
feature of dotNet.