visuald
visuald copied to clipboard
Debugger customization methods do not work with LDC
kyfolee reported this on 2021-03-25T23:41:52Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=21769
CC List
- r.sagitario
Description
Using LDC 1.25.1, __debugOverview, __debugExpanded, and __debugStringView do not work as struct methods in the debug visualizer. They do seem to work as member fields.
Similarly, invoking methods on structs in the immediate window gives the following error: "D0001: Error: Expression couldn't be evaluated"
Confirmed working on DMD 2.096.0
r.sagitario commented on 2021-03-26T12:57:18Z
Unfortunately, LDC does not emit debug info for member functions, so the debugger doesn't know how to call them or even whether they exist.
Maybe they can be found as a public symbol assuming default mangling.
This works now with Visual D 1.4.0 and LDC 1.40.1