# debugger: Fix wrong cwd in Rust tests \(\#33788\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4cc06bfb4ef22095c845f05d88579b1e96ed666c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4cc06bfb4ef22095c845f05d88579b1e96ed666c

Requested commit: 4cc06bfb4ef22095c845f05d88579b1e96ed666c

Commit: 4cc06bfb4ef22095c845f05d88579b1e96ed666c

Tree: d20654499bae64f5d2eb7866409d3b08fab4ed21

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
debugger: Fix wrong cwd in Rust tests (#33788)

This commit introduces a new task variable RUST_MANIFEST_DIRNAME which
points at the parent directory of the manifest for the current package.
Previously we were running `cargo test` inside of parent dir of a
currently focused source file, which happened to work with non-debug
stuff (as `cargo test` itself fixed cwd for us), but that no longer
works with debug scenarios - they are compiled separately and so we no
longer have cargo doing the heavy lifting for us

Co-authored-by: Remco Smits <djsmits12@gmail.com>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>

Closes #33751

Release Notes:

- debugger: Fixed wrong cwd in automatically-generated Rust test debug
sessions

Co-authored-by: Remco Smits <djsmits12@gmail.com>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
```

## Parents

- [11cb9ddeb9d6e2fe44022f65b7f429257aa032e9](https://git.cafe/gitcafe/zed/commit/11cb9ddeb9d6e2fe44022f65b7f429257aa032e9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4cc06bfb4ef22095c845f05d88579b1e96ed666c?format=markdown)
