rust-tools.nvim icon indicating copy to clipboard operation
rust-tools.nvim copied to clipboard

Debugging problems using Cargo workspaces

Open josx opened this issue 1 year ago • 0 comments

When I try to use rust debugging as usual it is working pretty well But When swithc to use cargo workspaces, doesnt work.

I put several breakpoint then debug, it open dapgui and then suddenly closes.

Message on nvim say: Compiling a debug build for debugging. This might take some time...

I tried to open dapgui again by :lua require("dapgui").open() and codelldb exited with code 101

Example of my dirs:

├── Cargo.lock
├── Cargo.toml
├── add_one
│   ├── Cargo.toml
│   └── src
│       └── lib.rs
├── adder
│   ├── Cargo.toml
│   └── src
│       └── main.rs
└── target

I am trying to debug adder/src/main.rs but target it is not in adder dir, it is one dir back

josx avatar May 18 '23 18:05 josx