2022-02-15 02:10:47 +00:00
|
|
|
{
|
|
|
|
// Use IntelliSense to learn about possible attributes.
|
|
|
|
// Hover to view descriptions of existing attributes.
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
2022-09-01 04:27:09 +00:00
|
|
|
{
|
2023-01-17 13:54:25 +00:00
|
|
|
// This task builds the Rust and Dart code of AppFlowy.
|
|
|
|
"name": "AF-desktop: Build All",
|
2022-09-01 04:27:09 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
2023-02-03 06:13:33 +00:00
|
|
|
"preLaunchTask": "AF: Build Appflowy Core",
|
2022-09-01 04:27:09 +00:00
|
|
|
"env": {
|
2023-02-03 06:13:33 +00:00
|
|
|
// "RUST_LOG": "trace"
|
2023-02-02 15:02:49 +00:00
|
|
|
"RUST_LOG": "debug"
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
|
|
},
|
2022-06-19 14:00:33 +00:00
|
|
|
{
|
2023-02-03 06:13:33 +00:00
|
|
|
// This task only builds the Dart code of AppFlowy.
|
|
|
|
"name": "AF-desktop: Build Dart Only",
|
2022-06-10 01:38:20 +00:00
|
|
|
"request": "launch",
|
2022-06-11 00:16:15 +00:00
|
|
|
"program": "./lib/main.dart",
|
2022-06-10 01:38:20 +00:00
|
|
|
"type": "dart",
|
|
|
|
"env": {
|
2023-02-03 06:13:33 +00:00
|
|
|
"RUST_LOG": "debug"
|
2022-06-10 01:38:20 +00:00
|
|
|
},
|
2022-06-11 00:16:15 +00:00
|
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
2022-06-10 01:38:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
// This task builds will:
|
|
|
|
// - call the clean task,
|
|
|
|
// - rebuild all the generated Files (including freeze and language files)
|
|
|
|
// - rebuild the the Rust and Dart code of AppFlowy.
|
2023-01-17 13:54:25 +00:00
|
|
|
"name": "AF-desktop: Clean + Rebuild All",
|
2022-02-15 02:10:47 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
2022-06-10 01:38:20 +00:00
|
|
|
"preLaunchTask": "AF: Clean + Rebuild All",
|
2022-06-11 00:16:15 +00:00
|
|
|
"env": {
|
2022-08-12 08:06:30 +00:00
|
|
|
"RUST_LOG": "trace"
|
2022-02-15 02:10:47 +00:00
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
|
|
},
|
2023-02-03 06:13:33 +00:00
|
|
|
{
|
|
|
|
"name": "AF-desktop: Debug Rust",
|
|
|
|
"request": "attach",
|
|
|
|
"type": "lldb",
|
|
|
|
"pid": "${command:pickMyProcess}"
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// "name": "AF-desktop: profile mode",
|
|
|
|
// "request": "launch",
|
|
|
|
// "program": "./lib/main.dart",
|
|
|
|
// "type": "dart",
|
|
|
|
// "flutterMode": "profile",
|
|
|
|
// "cwd": "${workspaceRoot}/app_flowy"
|
|
|
|
// },
|
2022-09-01 04:27:09 +00:00
|
|
|
{
|
2023-01-17 13:54:25 +00:00
|
|
|
// This task builds the Rust and Dart code of AppFlowy for android.
|
|
|
|
"name": "AF-android: Build All",
|
2022-09-01 04:27:09 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
2023-01-17 13:54:25 +00:00
|
|
|
"preLaunchTask": "AF: build_mobile_sdk",
|
2022-09-01 04:27:09 +00:00
|
|
|
"env": {
|
|
|
|
"RUST_LOG": "info"
|
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
|
|
},
|
|
|
|
{
|
2023-01-17 13:54:25 +00:00
|
|
|
// This task builds will:
|
|
|
|
// - call the clean task,
|
|
|
|
// - rebuild all the generated Files (including freeze and language files)
|
|
|
|
// - rebuild the the Rust and Dart code of AppFlowy.
|
|
|
|
"name": "AF-android: Clean + Rebuild All",
|
2022-09-01 04:27:09 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
2023-01-17 13:54:25 +00:00
|
|
|
"preLaunchTask": "AF: Clean + Rebuild All (Android)",
|
2022-09-01 04:27:09 +00:00
|
|
|
"env": {
|
2023-01-17 13:54:25 +00:00
|
|
|
"RUST_LOG": "info"
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/app_flowy"
|
|
|
|
},
|
2023-01-17 13:54:25 +00:00
|
|
|
{
|
2023-01-24 06:01:30 +00:00
|
|
|
// https://tauri.app/v1/guides/debugging/vs-code
|
2023-01-17 13:54:25 +00:00
|
|
|
"type": "lldb",
|
|
|
|
"request": "launch",
|
2023-01-24 06:01:30 +00:00
|
|
|
"name": "AF-tauri: Debug backend",
|
2023-01-17 13:54:25 +00:00
|
|
|
"cargo": {
|
|
|
|
"args": [
|
|
|
|
"build",
|
|
|
|
"--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
|
|
|
|
"--no-default-features"
|
|
|
|
]
|
|
|
|
},
|
2023-01-24 06:01:30 +00:00
|
|
|
"preLaunchTask": "AF: Tauri UI Dev",
|
2023-01-17 13:54:25 +00:00
|
|
|
"cwd": "${workspaceRoot}/appflowy_tauri/"
|
|
|
|
},
|
2023-01-27 09:17:51 +00:00
|
|
|
// {
|
|
|
|
// "type": "lldb",
|
|
|
|
// "request": "launch",
|
|
|
|
// "name": "AF-tauri: Production Debug",
|
|
|
|
// "cargo": {
|
|
|
|
// "args": ["build", "--release", "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml"]
|
|
|
|
// },
|
|
|
|
// "preLaunchTask": "AF: Tauri UI Build",
|
|
|
|
// "cwd": "${workspaceRoot}/appflowy_tauri/"
|
|
|
|
// },
|
2022-02-15 02:10:47 +00:00
|
|
|
]
|
2022-06-11 00:16:15 +00:00
|
|
|
}
|