# debugger beta: Fix bug where debug Rust main running action failed \(\#31291\) · gitcafe/zed

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

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

Visibility: public

Requested revision: aab76208b53334b85429486c7abd6f0bfcf58dc9

Requested commit: aab76208b53334b85429486c7abd6f0bfcf58dc9

Commit: aab76208b53334b85429486c7abd6f0bfcf58dc9

Tree: c2dfdcdceb2cf24a3592811879d4ed682ddef63d

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger beta: Fix bug where debug Rust main running action failed (#31291)

@osiewicz @SomeoneToIgnore If you guys have time to look this over it
would be greatly appreciated. I wanted to move the bug fix into the task
resolution code but wasn't sure if there was a reason that we didn't
already.

The bug is caused by an env variable being empty when we send it as a
terminal command. When the shell resolves all the env variables there's
an extra space that gets added due to the empty env variable being
placed between two other variables.

Closes #31240

Release Notes:

- debugger beta: Fix a bug where debug main Rust runner action wouldn't
work
```

## Parents

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

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