No line numbers in stack trace with portable PDBs
Any idea why I don't seem to get line numbers in my stack traces dumped from ExcelDna for libraries in the stack which use portable PDBs?
I'm using .Net Framework 4.7.2 which AFAICT should support portable PDBs properly. Temporarily switching from portable to full (which I can't do longer term) does cause line numbers to show up in Excel, so it seems specific to the PDB type rather than that it e.g. cannot find the PDB; however, dumping stack traces from the same libraries with portable PDB, but from other applications (i.e. not excel) correctly show the line numbers in the stack trace - so for some reason the problem is specific to Excel/ExcelDNA?
Related: #204, #111
Thanks
@bacar it's been a few months since you opened this issue. Did you get to the bottom of it? If not, do you have a reproducible example for this?
The problem persists - I haven’t had the chance to pull together a sample, I’ll see if I can find the time. Should I assume from your reply that this doesn’t trivially reproduce for others for a simple project?
Sounds good! I didn't try to reproduce. We're discussing adding SourceLink and publish snupkg packages for debugging (which will require portable PDBs), and I thought I'd ask you if maybe that was something specific to your project or not.
I was able to reproduce it. Attached is a sample project that demonstrates it.
Excel-DNA Add-In (net472) with regular pdb (i.e. <DebugType>pdbonly</DebugType>)

Excel-DNA Add-In (net472) with portable pdb (i.e. <DebugType>portable</DebugType>)

Console App (net472) with regular pdb (i.e. <DebugType>pdbonly</DebugType>)

Console App (net472) with portable pdb (i.e. <DebugType>portable</DebugType>)
