www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23423] New: Feature Request: version(D_DebugInfo)


          Issue ID: 23423
           Summary: Feature Request: version(D_DebugInfo)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: aliloko gmail.com

Hello. I'd like to have:

    version (D_DebugInfo)
        version = enableFeatureThatIsAnnoyingWhenDebugging;

Is there a way to know if debug info is being emitted when compiling?
"debug" is not cutting it because sometimes you really need to debug with or
without -debug, and with or without -O. 
I would want -g.

Oct 17 2022