-gc in dmd?

Rainer Schuetze r.sagitario at gmx.de
Sat Apr 10 07:03:24 UTC 2021



On 07/04/2021 13:36, WebFreak001 wrote:
> Does DMD have a -gc flag comparable to the LDC flag? (emit C compatible
> debug information)
> 
> I thought it had that but seems like it doesn't exist actually. I need
> it because the Visual Studio debugger (VSDBG) only works with C/C++
> style names and thinks arrays/associative arrays of the form like int[]
> are illegal because of the []

The VS Code debug engine for C++ actually uses the same architecture as
the debugger in Visual Studio, but misses a tiny bit: you cannot add
source language mappings. So using the mago expression evaluator
extension is likely to work once they add a possibility to load it.

You might want to remind the developers that this is still of interest:
https://github.com/microsoft/vscode-cpptools/issues/2932



More information about the Digitalmars-d mailing list