# Document global debug.json usage and fix REPL error copy \(\#40836\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1f40a3c70e7377c4fbbec34280358b605d1110ef

Requested commit: 1f40a3c70e7377c4fbbec34280358b605d1110ef

Commit: 1f40a3c70e7377c4fbbec34280358b605d1110ef

Tree: 1652ef626c50e851d99ae0a4e4194c2bf1d136d7

Author: Mohin Hasin Rabbi

Committer: GitHub

## Message

```
Document global debug.json usage and fix REPL error copy (#40836)

﻿## Overview
- document how to keep a per-user debug.json so global launch tasks show
up everywhere (Fixes #39849)
- sanitize REPL terminal text before copying so error blocks can be
copied and opened in buffers (Fixes #40207)

## Design Decisions
- reused the existing user debug file (paths::debug_scenarios_file) and
pointed docs at the zed::OpenDebugTasks command to stay aligned with the
settings UX
- extract a sanitize helper inside TerminalOutput::full_text to strip
\r/null padding while keeping indentation intact, then join the cleaned
lines so clipboard and buffers get readable text

## Testing
- Not run (cargo is unavailable in this environment)

Fixes #39849.
Fixes #40207.
```

## Parents

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

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