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
commit 619d2f52ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 8 deletions

9
.gitignore vendored
View File

@ -20,4 +20,11 @@ node_modules
**/.DS_Store
**/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"
},
{
"name": "AF: Debug Rust",
"request": "attach",
"type": "lldb",
"pid": "${command:pickMyProcess}"
},
{
// This task only builds the Dart code of AppFlowy.
"name": "AF: Build Dart Only",

View File

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

View File

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