My end goal is to debug a rust program inside of a docker container however after reworking my configuration several times I've found that I can't even debug a local binary over gdbserver.
src/mains.rs
use std::time::Duration;
fn main() {
println!("Hello, world!");
let mut counter = 0;
loop {
std::thread::sleep(Duration::from_secs(5));
println!("hello world {}", counter);
counter += 1;
}
}
OS: 6.5.8-arch1-1 VSCode version: 1.83.1 CodeLLDB version: 1.10.0 Compiler: rustc Debuggee: rust
My end goal is to debug a rust program inside of a docker container however after reworking my configuration several times I've found that I can't even debug a local binary over gdbserver.
src/mains.rs
.vscode/launch.json
Reproduce
cargo build
sudo gdbserver :5001 ./target/debug/hello_world
Child terminated with signal = 0xb (SIGSEGV)