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-14243] Swift LLDB on Windows - not possible to set a breakpoint #4323

Open
swift-ci opened this issue Feb 17, 2021 · 4 comments
Open

[SR-14243] Swift LLDB on Windows - not possible to set a breakpoint #4323

swift-ci opened this issue Feb 17, 2021 · 4 comments
Assignees
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

Previous ID SR-14243
Radar None
Original Reporter stanislav.dombrovsky (JIRA User)
Type Bug
Environment

Windows 10, January, 27 toolchain from snapshots

Additional Detail from JIRA
Votes 2
Component/s LLDB for Swift
Labels Bug
Assignee @compnerd
Priority Medium

md5: fb245344e39d48e3d8c8ae74a29e82f7

Issue Description:

I was using the January, 27 toolchain from snapshots on Windows 10. I can compile a simple executable, but source list LLDB command does not list any source location. It makes not possible to set any breakpoint in the code and stops us from having the working debugger on Windows in the CLion (and I believe, in any IDE that needs to debug Swift on Windows). Related issue is here.

@compnerd
Copy link
Collaborator

Quality of debug info is still an issue. The proper thing to do is to improve CodeView emission and get that fully covered.

@swift-ci
Copy link
Author

swift-ci commented Nov 1, 2021

Comment by Steven Van Impe (JIRA)

I ran into the same issue after trying to use CodeLLDB in Visual Studio Code on Windows (vadimcn/codelldb#566

@swift-ci
Copy link
Author

Comment by Steven Van Impe (JIRA)

I've noticed that when compiling in release mode, I can set breakpoints. However, without the Swift-specific LLDB, the variable names are mangled.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
@PseudonymPatel
Copy link

Hello, have there has been any updates to lldb working properly in debug configuration? Still can only set source file line breakpoints in release configuration. I've been using release config with -Onone to debug, but I'd like to learn any better ways.

Thanks!

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

3 participants