dlangBugzillaToGithub / migration_test

0 stars 0 forks source link

Debugger customization methods do not work with LDC #74

Open dlangBugzillaToGithub opened 3 years ago

dlangBugzillaToGithub commented 3 years ago

kyfolee reported this on 2021-03-25T23:41:52Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=21769

CC List

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 commented 3 years ago

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.