Explorar el Código

chore: support debugging rust in vscode(macos)

tsuiyuenhong hace 2 años
padre
commit
993d1a8a27
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  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",