Skip to content

Ability to push debug adapter logs to debug terminal/console #175

Open

Description

@flaminestone

When debugging Ruby code in Zed with the Ruby extension, I only see logs in the DAP panel, and nothing in the console/terminal.

Is it possible to output logs to the console/terminal?

Sorry if this is a stupid question, but I can't find any information about this in the documentation or in the Zed Discord. It seems that the problem is not with Zed, but with my configs or the extension.
Image

Activity

  1. added theissue type on Sep 13, 2025
  2. vitallium commented on Nov 2, 2025

    @vitallium
    Collaborator

    Hi. I'm not sure if this is related to Zed itself or rdbg but I will have a look. Thanks!

  3. Otterpocket commented on Nov 3, 2025

    @Otterpocket
    Contributor

    Hi. I'm not sure if this is related to Zed itself or rdbg but I will have a look. Thanks!

    Let me know if there is anything I can do to help

  4. ATL-Flaneur commented on Nov 24, 2025

    @ATL-Flaneur

    I ran into this same issue trying to set up Zed for Ruby development.

    I can see console output in the DAP Logs pane but only after the debugging session ends. The first line for me is stderr: DEBUGGER: Disconnected., and after that comes the console output.

  5. vitallium commented on Nov 26, 2025

    @vitallium
    Collaborator

    Dropping some findings:

    1. The debug gem does not natively support redirecting STDOUT/STDERR to DAP. Note, for some reason, that works in VSCode.
      2. Zed does not capture STDOUT/STDERR either, and both are output to the DAP logs instead.

    Both findings sound like patches to both upstreams: the debug gem and Zed.

    UPD: Zed works just fine.

  6. vitallium commented on Nov 26, 2025

    @vitallium
    Collaborator

    By making a wonky, hacky patch to the locally installed debug gem, I was able to get STDOUT in the console:

    Image
  7. vitallium commented on Nov 26, 2025

    @vitallium
    Collaborator

    Opened an issue on the debug issue tracker ruby/debug#1160 to get confirmation from the authors first.

  8. self-assigned this
    on Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions