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-4638] Make file level variables "frame" variables when you aren't in an explicit function #4634

Open
swift-ci opened this issue Apr 20, 2017 · 1 comment
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

Previous ID SR-4638
Radar None
Original Reporter Tof (JIRA User)
Type Bug

Attachment: Download

Environment

Swift 3.1, macOS, Ubuntu 16.10

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

md5: f02574aa83e8bfbea72e10f66803433a

Issue Description:

Steps to reproduce

  • Unzip swift-lldb-frame-variable.zip

  • cd App

  • rm -rf .build

  • swift build

  • lldb ./.build/debug/App

  • breakpoint set --line 4

  • run

  • frame variable

Actual Behavior
"frame variable" doesn't display any variables informations

Expected Behavior
"frame variable" displayed variables informations

Versions
OSs:

  • macOS 10.12.4

  • Ubuntu 16.10

Swift versions:

  • macOS: Apple Swift version 3.1 (swiftlang-802.0.51 clang-802.0.41), Target: x86_64-apple-macosx10.9

  • Linux: Swift version 3.1 (swift-3.1-RELEASE) Target: x86_64-unknown-linux-gnu

LLDB versions:

  • macOS: lldb-370.0.40, Swift-3.1

  • Linux: lldb version 4.0.0 (git@github.com:apple/swift-lldb.git revision ab05d1ed7cd81032110419ed8be77aa721ff62df), Swift-3.1 (revision 2dddbaf9c390094e37b45d83419ecf61d3707667), clang revision 9772bf511a32353fad73e38fdfc501d5fccb50d2, llvm revision a7c680da5182d29e2c6441d484a307b695902c64

Additional information
Project generated with SwiftPM

@swift-ci
Copy link
Author

swift-ci commented May 3, 2017

Comment by Jim Ingham (JIRA)

The variables you refer to are really file level variables, and as such will show up in the output of "target variable". And in normal debug sessions where you are in the context of some function in that file, you would NOT want frame variable to show these variables.

But because you are debugging a file that has no explicit function, your code is in some sense running at the file level context, and so we should pretend that these file level variables are actually frame variables, which we don't do at present.

@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