Skip to content

Debugger: debugger doesn't work #33002

@liukaizheng

Description

@liukaizheng

Summary

SUMMARY_SENTENCE_HERE

Description

The following is my debug config:

[
    {
        
        "label": "zed-debug",
        "adapter": "JavaScript",
        "request": "launch",
        "runtimeExecutable": "yarn",
        "runtimeArgs": [
            "jest",
            "--findRelatedTests",
            "$ZED_WORKTREE_ROOT/$ZED_RELATIVE_FILE", "--config=jest/jest.func.config.js"],
        "cwd": "$ZED_WORKTREE_ROOT",
        "type": "node"
    }
]

There is the related log:

2025-06-19T11:46:37+08:00 INFO  [dap::transport] Debug adapter has connected to TCP server 127.0.0.1:56221
2025-06-19T11:46:38+08:00 INFO  [dap::transport] Debug adapter has connected to TCP server 127.0.0.1:56221
2025-06-19T11:46:38+08:00 INFO  [dap::transport] Debug adapter has connected to TCP server 127.0.0.1:56221
2025-06-19T11:46:38+08:00 INFO  [dap::transport] Debug adapter has connected to TCP server 127.0.0.1:56221
2025-06-19T11:46:38+08:00 ERROR [project] Could not find session: SessionId(39)
2025-06-19T11:46:38+08:00 ERROR [project] Could not find session: SessionId(40)
2025-06-19T11:46:38+08:00 ERROR [project] Could not find session: SessionId(41)
2025-06-19T11:46:38+08:00 ERROR [project] Could not find session: SessionId(42)
2025-06-19T11:46:38+08:00 INFO  [dap::transport] Debugger closed the connection
2025-06-19T11:46:38+08:00 ERROR [dap::transport] Error handling debugger input: receiving from an empty and closed channel
2025-06-19T11:46:38+08:00 ERROR [project] Could not find session: SessionId(40)
2025-06-19T11:46:38+08:00 ERROR [project] Could not find session: SessionId(41)
2025-06-19T11:46:38+08:00 ERROR [dap::transport] Error handling debugger input: receiving from an empty and closed channel
2025-06-19T11:46:38+08:00 ERROR [dap::transport] Error handling debugger input: receiving from an empty and closed channel
2025-06-19T11:46:38+08:00 ERROR [project] oneshot canceled
2025-06-19T11:46:38+08:00 ERROR [project] oneshot canceled
2025-06-19T11:46:39+08:00 INFO  [dap::transport] Debugger closed the connection
2025-06-19T11:46:39+08:00 ERROR [dap::transport] Error handling debugger input: receiving from an empty and closed channel

Zed Version and System Specs

Zed: v0.192.1 (Zed Preview)
OS: macOS 15.4.1
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions