Zed Code Editor Introduces Comprehensive Debugger功能

The Zed code editor has recently integrated a full-featured debugger, as announced by the developers in the project’s blog. Currently, it natively supports only popular programming languages, but users have the option to add additional support themselves.

The debugger in Zed is built using the Debug Adapter Protocol (DAP), which outlines the communication between the code editor and the debugger. The Zed team has already included support for the following DAPs:

vscode-js-debug for Node.js applications.

debugpy for Python, including frameworks like Django and Flask.

CodeLLDB for C, C++, Objective-C, and Swift.

GDB for C, C++, Go, and Rust.

Delve for Go.

Xdebug for PHP.

rdbg for Ruby.

The debugging mode in Zed supports all essential features, including the management of breakpoints, threads, variables, and call stacks. Users can also customize the debugger panel by dragging tabs around. Additionally, the interface accommodates keyboard-only users, allowing all actions to be performed via keyboard shortcuts.

The Zed team highlighted that a significant portion of the debugger’s functionality was contributed by the community. Over an 8-month period, independent developers made 977 commits, adding more than 27,000 lines of code to the project. The team particularly acknowledged a developer known as RemcoSmitsDev, who tackled the most challenging aspects of the project.

Documentation for using the Zed debugger can be found here on the project’s website.