diff options
-rw-r--r-- | .vscode/launch.json | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index e63f4488b..b1bd98d4a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json | |||
@@ -28,7 +28,7 @@ | |||
28 | ] | 28 | ] |
29 | }, | 29 | }, |
30 | { | 30 | { |
31 | // Used for testing theextension with a local build of the LSP server (in `target/debug`). | 31 | // Used for testing the extension with a local build of the LSP server (in `target/debug`). |
32 | "name": "Run Extension (Dev Server)", | 32 | "name": "Run Extension (Dev Server)", |
33 | "type": "extensionHost", | 33 | "type": "extensionHost", |
34 | "request": "launch", | 34 | "request": "launch", |
@@ -49,12 +49,13 @@ | |||
49 | } | 49 | } |
50 | }, | 50 | }, |
51 | { | 51 | { |
52 | // Attaching LLDB by Pid to lsp server | 52 | // Used to attach LLDB to a running LSP server. |
53 | // NOTE: it requires root permission, also for better debugging | 53 | // NOTE: Might require root permissions. For this run: |
54 | // if you want more than just assembler representation for ex: | 54 | // |
55 | // walk in file, you need debugging symbols. | 55 | // `echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope` |
56 | // Project can build with it, for set - chane inside | 56 | // |
57 | // ./Cargo.toml field debug | 57 | // Don't forget to set `debug = 2` in `Cargo.toml` before building the server |
58 | |||
58 | "name": "Attach To Server", | 59 | "name": "Attach To Server", |
59 | "type": "lldb", | 60 | "type": "lldb", |
60 | "request": "attach", | 61 | "request": "attach", |