www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Simple way to get Source Line Table of a compiled module.

Hi,

I'm using LDC2 64bit on Windows. If I ask it to generate a .map 
file, I can locate the function. But how can I access the 
Line-code information? Do I need to generate a huge .pdb file 
with lots of other information (and also I have to understand it 
and extract the lines), or is there a lightweight solution for 
this in LDC2?
I'd also like to have this information not just in Debug, but in 
Release mode too.

Thank You in advance!
Jul 23 2023