Created
June 19, 2022 13:52
-
-
Save AlicanC/33cf3c7c1e56e312b1c310a5a156c87c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"folders": [ | |
{ | |
// Path to Sway repo directory | |
"path": "./sway" | |
} | |
], | |
"extensions": { | |
"recommendations": [ | |
// Rust language support | |
"rust-lang.rust-analyzer", | |
// Rust debugging | |
"vadimcn.vscode-lldb" | |
] | |
}, | |
"launch": { | |
"configurations": [ | |
// Debugs the `test` project using the `vadimcn.vscode-lldb` extension. | |
// You can run `lldb.getCargoLaunchConfigs` from the command palette to | |
// generate configurations for other projects in the workspace. | |
{ | |
"type": "lldb", | |
"request": "launch", | |
"name": "Debug Tests", | |
"cargo": { | |
"args": ["build", "--bin=test", "--package=test"], | |
"filter": { | |
"name": "test", | |
"kind": "bin" | |
} | |
}, | |
"args": [ | |
// You can add a filter here to debug a specific test | |
// "should_pass/stdlib/alloc" | |
], | |
"env": { | |
"SWAY_TEST_VERBOSE": "1" | |
}, | |
"cwd": "${workspaceFolder}" | |
}, | |
{ | |
"type": "lldb", | |
"request": "launch", | |
"name": "Debug SDK Tests", | |
"cargo": { | |
"args": ["test", "--no-run", "--manifest-path=test/src/sdk-harness/Cargo.toml"], | |
"filter": { | |
"name": "integration_tests", | |
"kind": "test" | |
} | |
}, | |
"args": [ | |
// You can add a filter here to debug a specific test | |
// "script_data" | |
], | |
"cwd": "${workspaceFolder}/test/src/sdk-harness" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment