Hello all,
I'm new to swift and started to use the debugger in swift. Debugging works in a sense that I can put breaking point but when I reach the breaking point there are no local variables. I tried the debugger both in clion and vscode but in both editors I don't see any variables. For example, In the image below I would expect to see the constant x and variable j as local variables.
I'm not sure whether this is because I miss a dependency or because it's simply not possible to see any local variables but I hope that some one can help me to figure this out.
I'm using:
- Swift version 5.2.4 (swift-5.2.4-RELEASE)
- Ubuntu 20.04
- clang version 7.0.0
My debug configurations in vscode are:
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb", // 1
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/.build/debug/test_debugger", // 2
"args": ,
"cwd": "${workspaceFolder}",
"preLaunchTask": "swift-build" // 3
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "swift-build", // 1
"type": "shell", // 2
"command": "swift build" // 3
}
]
}