www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Losing debug information when compiling with ldc?

reply 12345swordy <alexanderheistermann gmail.com> writes:
Anyone who builds dmd with ldc with visual d. Is there anyway to 
prevent it from losing debug information? The enum issue is 
related to dmd poor generation of the debug information where in 
ldc, the it is working as intended. Yet for some reason I am 
experiencing the same issue with ldc, and I not sure it due to 
the debug information being lost when compiling.

-Alex
Feb 24 2021
parent reply Rumbu <rumbu rumbu.ro> writes:
On Thursday, 25 February 2021 at 04:00:09 UTC, 12345swordy wrote:
 Anyone who builds dmd with ldc with visual d. Is there anyway 
 to prevent it from losing debug information? The enum issue is 
 related to dmd poor generation of the debug information where 
 in ldc, the it is working as intended. Yet for some reason I am 
 experiencing the same issue with ldc, and I not sure it due to 
 the debug information being lost when compiling.

 -Alex
With LDC, the enum types are displayed correctly: https://imgur.com/a/aXeIUjV
Feb 24 2021
parent reply 12345swordy <alexanderheistermann gmail.com> writes:
On Thursday, 25 February 2021 at 07:07:34 UTC, Rumbu wrote:
 On Thursday, 25 February 2021 at 04:00:09 UTC, 12345swordy 
 wrote:
 Anyone who builds dmd with ldc with visual d. Is there anyway 
 to prevent it from losing debug information? The enum issue is 
 related to dmd poor generation of the debug information where 
 in ldc, the it is working as intended. Yet for some reason I 
 am experiencing the same issue with ldc, and I not sure it due 
 to the debug information being lost when compiling.

 -Alex
With LDC, the enum types are displayed correctly: https://imgur.com/a/aXeIUjV
You misunderstanding what I am trying to say here. When I tried to debug the dmd compiler that is built with ldc by using the visual d solution file. The enum information seemed to gotten loss. -Alex
Feb 25 2021
parent reply kinke <noone nowhere.com> writes:
On Thursday, 25 February 2021 at 14:38:31 UTC, 12345swordy wrote:
 You misunderstanding what I am trying to say here. When I tried 
 to debug the dmd compiler that is built with ldc by using the 
 visual d solution file. The enum information seemed to gotten 
 loss.
Are you referring to Visual D's /DEBUG:FASTLINK again? Then check the object files instead of the .pdb. Or use build.d to generate a full .pdb.
Feb 25 2021
parent 12345swordy <alexanderheistermann gmail.com> writes:
On Thursday, 25 February 2021 at 15:14:43 UTC, kinke wrote:
 On Thursday, 25 February 2021 at 14:38:31 UTC, 12345swordy 
 wrote:
 You misunderstanding what I am trying to say here. When I 
 tried to debug the dmd compiler that is built with ldc by 
 using the visual d solution file. The enum information seemed 
 to gotten loss.
Are you referring to Visual D's /DEBUG:FASTLINK again? Then check the object files instead of the .pdb. Or use build.d to generate a full .pdb.
It doesn't generate any objects files, only the .pdb file. -Alex
Feb 25 2021