Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger customization methods do not work with LDC #255

Open
dlangBugzillaToGithub opened this issue Mar 25, 2021 · 1 comment
Open

Debugger customization methods do not work with LDC #255

dlangBugzillaToGithub opened this issue Mar 25, 2021 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link
Collaborator

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
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant