-
Notifications
You must be signed in to change notification settings - Fork 12
Support debug/flutter adapter, update Zed dependencies #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Tested on: |
extension.toml
Outdated
@@ -19,3 +19,8 @@ languages = ["Dart"] | |||
[grammars.dart] | |||
repository = "https://github.com/UserNobody14/tree-sitter-dart" | |||
commit = "80e23c07b64494f7e21090bb3450223ef0b192f4" | |||
|
|||
[debug_adapters.dart] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, this name shows up both in UI and in debug definitions (via "adapter" field); I'd suggest using Dart
here to keep consistent with the name of tech (unless there's a precedent for lowercased name in other tools, e.g. VSC)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, this name shows up both in UI and in debug definitions (via "adapter" field); I'd suggest using
Dart
here to keep consistent with the name of tech (unless there's a precedent for lowercased name in other tools, e.g. VSC)
Updated
@Dixzz I'd like to take over working on this |
Align the name of adapter with standards
@aikins01 @dario-valles
|
Is there any ETA for this PR? 👀👀 |
I tested now on Zed 0.197.3 I can't say that it works for me. Plain dart as well as flutter apps do not start up [
{
"label": "Debug Flutter App",
"adapter": "dart",
"type": "flutter",
"program": "lib/main.dart",
"args": ["--web-port=9090"]
},
{
"adapter": "dart",
"type": "dart",
"label": "Launch Dart App",
"program": "lib/plain.dart",
"stopOnEntry": false
}
] Am I missing something? |
Any updates on this |
Confirmed this PR is functional on Zed 0.198.5 when the following is added to
Please note the device was set to How much testing to we need to undertake to get this merged? |
I guess I should compile a few readme improvements...I'll push those shortly. |
Please provide:Logs of flutter doctor |
🧩 Summary
This PR integrates Dart Debug Adapter Protocol (DAP) support into
zed-extensions/dart
, allowing interactive debugging sessions directly within Zed viadart debug_adapter
IMPORTANT
Make sure you have: in project path
.zed/debug.json
Steps shown:
Debug Flutter App
task in Zed usingF4
or command palletdebugger: start
main.dart
📸 Screenshots
All supported schema for
.zed/debug.json
config