Closed J0HN50N133 closed 3 months ago
cargo.args
is used to pass arguments to cargo, not to your final binary, and vice versa w.r.t. args
. Your config should instead be (assuming you have only one runnable target):
{
"configurations": [
{
"name": "standalone",
"type": "lldb",
"request": "launch",
"cargo": {
"args": ["build"],
},
"args": ["standalone", "start"],
"cwd": "${workspaceFolder}",
},
]
}
OS: openSUSE Tumbleweed VSCode version: 1.87.2 CodeLLDB version: 1.10 Compiler: rustc 1.76.0-nightly (3f28fe133 2023-12-18) Debuggee: x86_64-linux-gnu
I'm trying to start a debug session with following configuration:
I would like to debug the command![image](https://github.com/vadimcn/codelldb/assets/53596783/b5ead297-d2f9-41b9-b359-8fca471a7e98)
cargo run -- standalone start
. However, theargs
fields are not working.I've check the related issues #452, but it didn't help.
Verbose log