gdb_breakpoint 0.1.5

Call gdb to the current process and atatch in a new tmux window
Documentation

GDB breakpoint like python's breakpoint

Launch ugdb and attach to current process with new tmux window.

DEMO

use gdb_breakpoint::breakpoint;

pub fn main() {
    let x = 3 + 4;
    breakpoint();
}

Recommendation

Multithreadding rust programs can call SIGSTOP many times. I recommend you to add following command into your .gdbinit file. So I used SIGINT instead of SIGSTOP on the second and later breakpoint calls.

handle SIGSTOP "nostop" "pass" "noprint"