# debugger: Copy full variable value instead of trimmed preview \(\#63902\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 490aad88d5c754e4b0fbbb2bf1e3d6936df27729

Requested commit: 490aad88d5c754e4b0fbbb2bf1e3d6936df27729

Commit: 490aad88d5c754e4b0fbbb2bf1e3d6936df27729

Tree: bdfe3de5536cb4c8cdd83e5be0d3336333625316

Author: Ali

Committer: GitHub

## Message

```
debugger: Copy full variable value instead of trimmed preview (#63902)

# Objective

Fixes #63869 — "Copy Value" in the debugger panel copied the trimmed
display preview instead of the full value.

## Solution

Evaluate the variable's `evaluateName` via the DAP `evaluate` request
using the `clipboard` context (falling back to `variables`), and copy
the returned result. Falls back to the display value if evaluation
fails.

## Testing

- `cargo test -p debugger_ui --lib` passes.

---

Release Notes:

- Fixed debugger "Copy Value" copying the truncated preview instead of
the full value.
```

## Parents

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

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