Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Debugging problems using Cargo workspaces #385

Open
josx opened this issue May 18, 2023 · 0 comments
Open

Debugging problems using Cargo workspaces #385

josx opened this issue May 18, 2023 · 0 comments

Comments

@josx
Copy link

josx commented May 18, 2023

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 josx changed the title Debugging problemas using Cargo workspaces Debugging problems using Cargo workspaces May 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant