Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 7af791a

Browse files
committed
Removed example configs for Swift debugging to avoid confusion
1 parent 6012af2 commit 7af791a

File tree

1 file changed

+0
-71
lines changed

1 file changed

+0
-71
lines changed

README.md

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -58,77 +58,6 @@ If you prefer using an alternative language server, set set `sde.languageServerM
5858

5959
Though in most cases sourcekit-lsp and sourcekite should produce better results and performance.
6060

61-
## Debugging
62-
63-
SDE has a built-in Swift debugger which has been deprecated. Instead use [LLDB Debugger](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) which powers more features and is more stable.
64-
65-
Below is an example configuration supporting running executable targets, unit tests on macOS and Linux.
66-
Relevant files will be compiled using the pre-launch-tasks.
67-
68-
```js
69-
// .vscode/launch.json
70-
{
71-
"version": "0.2.0",
72-
"configurations": [
73-
// Running executables
74-
{
75-
"type": "lldb",
76-
"request": "launch",
77-
"name": "Run your Executable",
78-
"program": "${workspaceFolder}/.build/debug/your-executable",
79-
"args": [],
80-
"cwd": "${workspaceFolder}",
81-
"preLaunchTask": "swift-build"
82-
},
83-
// Running unit tests
84-
{
85-
"type": "lldb",
86-
"request": "launch",
87-
"name": "Debug tests on macOS",
88-
"program": "<path to xctest executable>", //For example /Applications/Xcode.app/Contents/Developer/usr/bin/xctest
89-
"args": [
90-
"${workspaceFolder}.build/debug/<xctest bundle name>.xctest"
91-
],
92-
"preLaunchTask": "swift-build-tests"
93-
},
94-
{
95-
"type": "lldb",
96-
"request": "launch",
97-
"name": "Debug tests on Linux",
98-
"program": "./.build/x86_64-unknown-linux/debug/YourPackageTests.xctest",
99-
"preLaunchTask": "swift-build-tests"
100-
}
101-
]
102-
}
103-
```
104-
105-
```js
106-
// .vscode/tasks.json
107-
{
108-
"version": "2.0.0",
109-
"tasks": [
110-
// compile your SPM project
111-
{
112-
"label": "swift-build",
113-
"type": "shell",
114-
"command": "swift build" // for TensorFlow add -Xlinker -ltensorflow
115-
},
116-
// compile your SPM tests
117-
{
118-
"label": "swift-build-tests",
119-
"type": "process",
120-
"command": "swift",
121-
"group": "build",
122-
"args": [
123-
"build",
124-
"--build-tests"
125-
// for TensorFlow add "-Xlinker", "-ltensorflow"
126-
]
127-
}
128-
]
129-
}
130-
```
131-
13261
## Contributors
13362

13463
- Valentin Knabel, [@vknabel](https://github.com/vknabel), [twitter](https://twitter.com/vknabel), _maintainer_

0 commit comments

Comments
 (0)