simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 160 forks source link

Debugging problems using Cargo workspaces #385

Open josx opened 1 year ago

josx commented 1 year ago

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