ExcelDna icon indicating copy to clipboard operation
ExcelDna copied to clipboard

No line numbers in stack trace with portable PDBs

Open bacar opened this issue 6 years ago • 4 comments

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 avatar Jan 21 '20 11:01 bacar

@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?

augustoproiete avatar Jul 06 '20 17:07 augustoproiete

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?

bacar avatar Jul 06 '20 20:07 bacar

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.

augustoproiete avatar Jul 06 '20 20:07 augustoproiete

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

image


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

image


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

image


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

image


augustoproiete avatar Jul 08 '20 03:07 augustoproiete