Merge pull request #568 from tsuiyuenhong/feature/support_rust_debug_in_vscode

Support debugging rust in VS Code and Fix build problem in linux
This commit is contained in:
Nathan.fooo
2022-06-28 15:00:46 +08:00
committed by GitHub
4 changed files with 17 additions and 8 deletions

7
.gitignore vendored
View File

@ -21,3 +21,10 @@ node_modules
**/src/protobuf **/src/protobuf
**/resources/proto **/resources/proto
frontend/.vscode/*
!frontend/.vscode/settings.json
!frontend/.vscode/tasks.json
!frontend/.vscode/launch.json
!frontend/.vscode/extensions.json
!frontend/.vscode/*.code-snippets

View File

@ -16,6 +16,12 @@
}, },
"cwd": "${workspaceRoot}/app_flowy" "cwd": "${workspaceRoot}/app_flowy"
}, },
{
"name": "AF: Debug Rust",
"request": "attach",
"type": "lldb",
"pid": "${command:pickMyProcess}"
},
{ {
// This task only builds the Dart code of AppFlowy. // This task only builds the Dart code of AppFlowy.
"name": "AF: Build Dart Only", "name": "AF: Build Dart Only",

View File

@ -49,7 +49,7 @@
"linux": { "linux": {
"options": { "options": {
"env": { "env": {
"FLOWY_DEV_ENV": "Linux-x86" "FLOWY_DEV_ENV": "Linux"
} }
} }
}, },

View File

@ -16,12 +16,8 @@ rustup show
case "$FLOWY_DEV_ENV" in case "$FLOWY_DEV_ENV" in
Linux-aarch64) Linux)
cargo make --profile development-linux-aarch64 flowy-sdk-dev cargo make --profile "development-linux-$(uname -m)" flowy-sdk-dev
;;
Linux-x86)
cargo make --profile development-linux-x86 flowy-sdk-dev
;; ;;
macOS) macOS)