Kaynağa Gözat

chore: support debugging rust in vscode(macos)

tsuiyuenhong 2 yıl önce
ebeveyn
işleme
993d1a8a27
1 değiştirilmiş dosya ile 14 ekleme ve 0 silme
  1. 14 0
      frontend/.vscode/launch.json

+ 14 - 0
frontend/.vscode/launch.json

@@ -16,6 +16,20 @@
             },
             "cwd": "${workspaceRoot}/app_flowy"
         },
+        {
+            "name": "AF: Debug Rust",
+            "request": "attach",
+            "type": "lldb",
+            "windows": {
+                "program": "" // FIXME: windows executable path
+            },
+            "osx": {
+                "program": "${workspaceRoot}/app_flowy/build/macos/Build/Products/Debug/AppFlowy.app",
+            },
+            "linux": {
+                "program": "" // FIXME: linux executable path
+            },
+        },
         {
             //  This task only builds the Dart code of AppFlowy.
             "name": "AF: Build Dart Only",