Bug 21769 – Debugger customization methods do not work with LDC

Status
NEW
Severity
normal
Priority
P3
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2021-03-25T23:41:52Z
Last change time
2023-10-18T20:22:26Z
Assigned to
No Owner
Creator
Kyle Foley
Moved to GitHub: visuald#255 →

Comments

Comment #0 by kyfolee — 2021-03-25T23:41:52Z
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
Comment #1 by r.sagitario — 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.
Comment #2 by robert.schadek — 2023-10-18T20:22:26Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/visuald/issues/255 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB