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

[SR-10599] Debugger does not display information about a derived type when a base class definition is visible #4568

Open
swift-ci opened this issue May 2, 2019 · 0 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented May 2, 2019

Previous ID SR-10599
Radar None
Original Reporter migueldeicaza (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 10.2.1 on MacOS 10.14.4

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee None
Priority Medium

md5: e91834afb27e9ec04aa3565d825d683c

Issue Description:

I have a traditional hierarchy View->Toplevel->Window, whenever I am in a method inside View but in an instance of Window, the debugger does not display the contents the object as a Window, but rather as a View.

A reproduction test case is available here:

https://github.com/migueldeicaza/TermKit

The hash a1d2063fa778dae715314129a943c705870921b0 should reliably show this.

This requires the application to be launched externally (configure Xcode to "Wait for process to attach") as it is an ncurses app. Then set a breakpoint on View.relativeLayout, this will be called with assorted instances of subclasses of View, but the debugger will never show self there to be anything but a View.

I originally discussed this in the Swift Forums, with some background:

https://forums.swift.org/t/can-the-debugger-display-information-for-the-most-derived-type/24024/3

See attached screenshot.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

1 participant