visuald icon indicating copy to clipboard operation
visuald copied to clipboard

Debugger customization methods do not work with LDC

Open dlangBugzillaToGithub opened this issue 4 years ago • 1 comments

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

dlangBugzillaToGithub avatar Mar 25 '21 23:03 dlangBugzillaToGithub

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.

dlangBugzillaToGithub avatar Mar 26 '21 12:03 dlangBugzillaToGithub

This works now with Visual D 1.4.0 and LDC 1.40.1

rainers avatar Mar 22 '25 08:03 rainers