Hey, I have working Rust setup in VS Code but somehow when trying to debug the exercise’s code with the LLDB it doesn’t seem to work and the process quits after few seconds with the following output:
Launching: /Users/mateusz.kwiatkowski/Exercism/rust/luhn/target/debug/deps/luhn-cd9aa5759c174b02 single_digit_strings_can_not_be_valid --exact --nocapture
Launched process 24193
Process exited with code -1.
The automatically created launch.json
file looks like this:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'luhn'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=luhn"
],
"filter": {
"name": "luhn",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug integration test 'luhn'",
"cargo": {
"args": [
"test",
"--no-run",
"--test=luhn",
"--package=luhn"
],
"filter": {
"name": "luhn",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
At the same time debugging with RustRover is seamlessly all the time. I couldn’t spot any obvious differences between these two, and therefore I would appreciate any help or feedback in case debugging of Exercism’s exercises is currently not possible in VS Code.