DAP Adapters 是一個 Dart 套件,將除錯適配器協定(DAP)與 Dart VM 服務協定連結起來,實現跨各種開發環境的無縫除錯。它將 DAP 請求轉換為 VM 服務指令,讓 VS Code 或 IntelliJ 等除錯工具能與在 Android、iOS、Linux、macOS 及 Windows 上執行的 Dart 應用程式互動。此套件對於建構或擴充基於 Dart 的 IDE 與編輯器中的除錯工具至關重要。它確保無論平台如何,皆能提供一致的除錯體驗。適配器作為中介,使將 Dart 除錯整合至現代工具鏈變得更輕鬆。
適用情境
將 Dart 調試功能整合到 IDE 中
啟用跨平台除錯
支援自訂除錯工具
建構除錯擴展
將 DAP 客戶端連接到 Dart VM
主要特色
將 DAP 轉換為 VM 服務
跨平台支援
即時除錯整合
可擴充的適配器架構
與 Flutter 工具的內建相容性
適合對象
IDE 插件開發者
除錯工具創建者
Flutter 擴充套件作者
Dart 語言伺服器整合者
平台特定的調試器
使用建議
需要了解 DAP 與 VM Service 協定
可能需要為自訂偵錯工具進行額外設定
依賴於 Dart SDK 版本的穩定性
僅限 Dart/Flutter 調試場景
不適用於執行時間應用邏輯
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Dart
An approachable, portable, and productive language for high-quality apps on any platform
Dart is:
Approachable:
Develop with a strongly typed programming language that is consistent,
concise, and offers modern language features like null safety and patterns.
Portable:
Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend.
Compile to JavaScript or WebAssembly for the web.
Productive:
Make changes iteratively: use hot reload to see the result instantly in your running app.
Diagnose app issues using DevTools.
Dart's flexible compiler technology lets you run Dart code in different ways,
depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more),
Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an
AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time
compiler (dartdevc) and a production time compiler (dart2js).
Browse pub.dev for more packages and libraries contributed
by the community and the Dart team.
Our API reference documentation is published at api.dart.dev,
based on the stable release. (We also publish docs from our
beta and dev channels,
as well as from the primary development branch).