LLDB: stdin input is echoed twice

Open
#309 0 comments 0 reactions 1 assignee View on GitHub

@xusheng6 is already working on this.

Since May 31, 2023.

Assessment

This issue has not been assessed yet.

Description

bug Effort: Low Impact: Low LLDB Adapter UI

image

Both the ScriptingConsole and the LLDB echos the input, so we will get them twice.

In the screenshot, the target program is cat, which echoes the input, and the third echo is its output. This is expected behavior.

Although a workaround exists to check if the first half and the second half of the input is the same and only display one half of it. But this does not handle the case where the target program itself happens to print such a string. A better approach is to check whether LLDB support disabling echoing stdin input, or have the SciprtingConsole aware of the ScriptingProvider's behavior, and stop displaying the echo, along with the >> at the beginning.

Dominant language
C++
Stars
331
Forks
33
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/debugger

All issues in Vector35/debugger

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.