This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
Releases: vknabel/vscode-swift-development-environment
Releases · vknabel/vscode-swift-development-environment
2.1.3
2.1.3
- Improved new README
- Deprecated debugger, use LLDB Debugger instead
An example config of using LLDB Debugger can be seen below. program
should contain the path to your built executable as before, the preLaunchTask
is optional, but will run swift build
before each debug session to keep your binaries up to date.
Note: Currently I don't know of any reliable solution to debug your Swift tests.
If you do, please file an issue or write me an email.
// .vscode.json/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Run your Executable",
"program": "${workspaceFolder}/.build/debug/your-executable",
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "swift-build"
}
}
// .vscode.json/tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "swift-build",
"type": "shell",
"command": "swift build"
}
}