diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-16 18:51:51 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-16 18:51:51 +0000 |
commit | 32fc890de87e25c342b7c141ef98b07cb1471128 (patch) | |
tree | 179e3087a59d9e3150131727923408c0cee3b50c | |
parent | 3a1c7808a423b72a2603a420518dc5daf5c7a798 (diff) | |
parent | 54432c3ae83d5e3fd2b5adc372018a65ec85aed3 (diff) |
Merge #3175
3175: vscode: skip node internals while debugging r=matklad a=Veetaha
Before:
![without-skip-files](https://user-images.githubusercontent.com/36276403/74610221-de9aff00-50f9-11ea-81bb-73dce8ca7acc.gif)
After:
![with-skip-files](https://user-images.githubusercontent.com/36276403/74610222-e22e8600-50f9-11ea-980b-e8d098ee82b4.gif)
Co-authored-by: Veetaha <[email protected]>
-rw-r--r-- | .vscode/launch.json | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index 33fc3bdea..b1bd98d4a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json | |||
@@ -4,8 +4,7 @@ | |||
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
5 | 5 | ||
6 | // NOTE: --disable-extensions | 6 | // NOTE: --disable-extensions |
7 | // Disable all installed extensions for increas performance of playground | 7 | // Disable all installed extensions to increase performance of the debug instance |
8 | // Disable all installed extensions to increase performance of the debug instance | ||
9 | // and prevent potential conflicts with other installed extensions. | 8 | // and prevent potential conflicts with other installed extensions. |
10 | 9 | ||
11 | "version": "0.2.0", | 10 | "version": "0.2.0", |
@@ -23,10 +22,13 @@ | |||
23 | "outFiles": [ | 22 | "outFiles": [ |
24 | "${workspaceFolder}/editors/code/out/**/*.js" | 23 | "${workspaceFolder}/editors/code/out/**/*.js" |
25 | ], | 24 | ], |
26 | "preLaunchTask": "Build Extension" | 25 | "preLaunchTask": "Build Extension", |
26 | "skipFiles": [ | ||
27 | "<node_internals>/**/*.js" | ||
28 | ] | ||
27 | }, | 29 | }, |
28 | { | 30 | { |
29 | // 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`). |
30 | "name": "Run Extension (Dev Server)", | 32 | "name": "Run Extension (Dev Server)", |
31 | "type": "extensionHost", | 33 | "type": "extensionHost", |
32 | "request": "launch", | 34 | "request": "launch", |
@@ -39,17 +41,21 @@ | |||
39 | "${workspaceFolder}/editors/code/out/**/*.js" | 41 | "${workspaceFolder}/editors/code/out/**/*.js" |
40 | ], | 42 | ], |
41 | "preLaunchTask": "Build Extension", | 43 | "preLaunchTask": "Build Extension", |
44 | "skipFiles": [ | ||
45 | "<node_internals>/**/*.js" | ||
46 | ], | ||
42 | "env": { | 47 | "env": { |
43 | "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server" | 48 | "__RA_LSP_SERVER_DEBUG": "${workspaceFolder}/target/debug/ra_lsp_server" |
44 | } | 49 | } |
45 | }, | 50 | }, |
46 | { | 51 | { |
47 | // Attaching LLDB by Pid to lsp server | 52 | // Used to attach LLDB to a running LSP server. |
48 | // NOTE: it requires root permission, also for better debugging | 53 | // NOTE: Might require root permissions. For this run: |
49 | // if you want more than just assembler representation for ex: | 54 | // |
50 | // walk in file, you need debugging symbols. | 55 | // `echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope` |
51 | // Project can build with it, for set - chane inside | 56 | // |
52 | // ./Cargo.toml field debug | 57 | // Don't forget to set `debug = 2` in `Cargo.toml` before building the server |
58 | |||
53 | "name": "Attach To Server", | 59 | "name": "Attach To Server", |
54 | "type": "lldb", | 60 | "type": "lldb", |
55 | "request": "attach", | 61 | "request": "attach", |