diff --git a/README.md b/README.md index e76e7bc..b42626e 100644 --- a/README.md +++ b/README.md @@ -58,77 +58,6 @@ If you prefer using an alternative language server, set set `sde.languageServerM Though in most cases sourcekit-lsp and sourcekite should produce better results and performance. -## Debugging - -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. - -Below is an example configuration supporting running executable targets, unit tests on macOS and Linux. -Relevant files will be compiled using the pre-launch-tasks. - -```js -// .vscode/launch.json -{ - "version": "0.2.0", - "configurations": [ - // Running executables - { - "type": "lldb", - "request": "launch", - "name": "Run your Executable", - "program": "${workspaceFolder}/.build/debug/your-executable", - "args": [], - "cwd": "${workspaceFolder}", - "preLaunchTask": "swift-build" - }, - // Running unit tests - { - "type": "lldb", - "request": "launch", - "name": "Debug tests on macOS", - "program": "", //For example /Applications/Xcode.app/Contents/Developer/usr/bin/xctest - "args": [ - "${workspaceFolder}.build/debug/.xctest" - ], - "preLaunchTask": "swift-build-tests" - }, - { - "type": "lldb", - "request": "launch", - "name": "Debug tests on Linux", - "program": "./.build/x86_64-unknown-linux/debug/YourPackageTests.xctest", - "preLaunchTask": "swift-build-tests" - } - ] -} -``` - -```js -// .vscode/tasks.json -{ - "version": "2.0.0", - "tasks": [ - // compile your SPM project - { - "label": "swift-build", - "type": "shell", - "command": "swift build" // for TensorFlow add -Xlinker -ltensorflow - }, - // compile your SPM tests - { - "label": "swift-build-tests", - "type": "process", - "command": "swift", - "group": "build", - "args": [ - "build", - "--build-tests" - // for TensorFlow add "-Xlinker", "-ltensorflow" - ] - } - ] -} -``` - ## Contributors - Valentin Knabel, [@vknabel](https://github.com/vknabel), [twitter](https://twitter.com/vknabel), _maintainer_