vknabel / vscode-swift-development-environment

New home of Swift Development Environment for VS Code
https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swift-development-environment
Apache License 2.0
175 stars 14 forks source link

How to Show Variables in VSCode #76

Closed lokinfey closed 4 years ago

lokinfey commented 4 years ago

hi I use CodeLLDB to finish sourcekit-lsp debug in window wsl 2 / ubuntu linux

But it can not show local variables in VSCode :

Screenshot (1)

How to set some to see my local variable

haifengkao commented 4 years ago

I don't use CodeLLDB, sorry :(

lokinfey commented 4 years ago

I don't use CodeLLDB, sorry :(

But How you set debug swift in Ubuntu .....? Can you help me

vknabel commented 4 years ago

Hi @lokinfey.

I am sorry to say, I currently don't have enough free space left on my mac to install an Ubuntu VM with Swift (or even a Windows). Nonetheless please head to the vscode-lldb extensions repository in case you have problems with it. This project is not related to the lldb debugger.

To get valuable feedback there, provide as much information as possible (your system and vscode configurations, the Swift version, an open source project where you could reproduce your issue, feel free to link this issue and me, etc).

Explicitly regarding your screenshot: The local i-variable might have been optimized out by the Swift compiler, as it was never used. Does return "It works: \(i)" fix your issue? Do Static or Global variables work?

I hope this helps!