The Debugger is Here
Zed now ships a native debugger built on the Debug Adapter Protocol, with out-of-the-box support for Rust, C/C++, JavaScript, Go and Python. "Locators" turn build tasks such as Cargo runs into debug configurations automatically. Internally it uses a two-layer design: a data layer talks to debug adapters, caches responses by request arguments, lazily fetches and invalidates stale state, and a UI layer queries only what it renders, which sets up future collaborative debugging. Extensions can plug in any of the 70+ DAP implementations, and inline variable values come from Tree-sitter scope queries rather than the LSP inline-values request.
Related posts
- Zed Weekly: #26
Zed mediumAdeptZed's team reports progress porting the editor to GPUI 2, including a new action- and key-context-based keyboard handling API shown with a Rust menu example. Other updates: tsserver integration broke when an upstream LSP wrapper removed deprecated CLI flags, a reminder to track changes in unpinnable dependencies. The theme system now models user themes as overlays on a base theme, and a Cargo feature flag breaks the circular dependency between the theme importer and the generated themes it emits. Smaller notes cover Prettier and diagnostics fixes, component stories, telemetry, and passing 1000 weekly active installs.
- Let’s Debug a Node.js Application
Heroku Engineering mediumAdeptNode.js debugging options range from structured logging to post-mortem analysis. Use leveled loggers like Pino or Winston instead of console.log, set breakpoints and take heap snapshots via `node --inspect-brk` with Chrome DevTools, an IDE, or ndb (which supports edit-in-place), and analyze native crashes with llnode on core dumps produced by `process.abort`. The debug module filters namespaced log output through the DEBUG environment variable, while trace and clarify improve async stack traces locally but should not run in production.
- Making Python in Zed Fun
Zed easyNoviceZed reworked its Python support around a generic per-language toolchain selector backed by Microsoft's python-environment-tools, the same library Visual Studio Code uses for venv detection. A manifest tree tracks the nearest pyproject.toml so each monorepo sub-project gets its own toolchain. Zed also runs a separate language server per toolchain rather than making servers juggle multiple environments. Basedpyright is now the default LSP, ty and Ruff work out of the box, Pyrefly is available via an extension, and the team plans to move Astral's ty into core and add notebooks in 2026.
- This Week at Zed Industries: #12
Zed mediumAdeptZed publicly launched its preview channel and reports progress across the editor: Vim search commands, macOS ctrl-click remapped to right click in the platform layer, terminal Cmd+hover navigation, a semantic index that collapses nested tree-sitter symbols to cut embedding tokens, and a lock-contention bug where slow git status in huge repos serializes file scanning. The most substantive section covers CRDB, Zed's planned collaboration backbone. It uses serde-bare instead of Protocol Buffers so message types live entirely in Rust, routes messages by TypeId, and syncs replicas with vector clocks as a distributed set union. Operations are applied by reconstructing revisions from a DAG of operations with cached snapshots and copy-on-write B-trees.
- Four Approaches to Debugging Server-side WebAssembly
Shopify Engineering mediumAdeptStep-debugging server-side WebAssembly can be done four ways: compiling to a native target and using LLDB/GDB, running the Wasm under Wasmtime inside LLDB, using a Wasm-specific debugger like Wasminspect, or using browser DevTools via Chrome's DWARF extension or source maps. Native compilation gives the best variable rendering and familiar tooling, and is the only option for interpreted languages, but may require stubbing imported functions and cannot reproduce Wasm-specific behavior. The other approaches suffer from lower-fidelity variable rendering, missing features, or harness setup. The recommendation is to debug natively by default and fall back to Wasmtime+LLDB or browser tools when bugs only reproduce in a Wasm engine.