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-10-19 01:55:23 +00:00
|
|
|
// This task only builds the Dart code of AppFlowy.
|
|
|
|
// It supports both the desktop and mobile version.
|
|
|
|
"name": "AF: Build Dart Only",
|
2022-09-01 04:27:09 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
|
|
|
"env": {
|
2023-10-19 01:55:23 +00:00
|
|
|
"RUST_LOG": "debug",
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
2023-02-26 08:27:17 +00:00
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
2022-06-19 14:00:33 +00:00
|
|
|
{
|
2023-10-19 01:55:23 +00:00
|
|
|
// This task builds the Rust and Dart code of AppFlowy.
|
|
|
|
"name": "AF-desktop: Build All",
|
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",
|
2023-10-19 01:55:23 +00:00
|
|
|
"preLaunchTask": "AF: Build Appflowy Core",
|
2022-06-10 01:38:20 +00:00
|
|
|
"env": {
|
2023-10-19 01:55:23 +00:00
|
|
|
"RUST_LOG": "trace",
|
2023-12-04 02:22:26 +00:00
|
|
|
"RUST_BACKTRACE": "1"
|
2022-06-10 01:38:20 +00:00
|
|
|
},
|
2023-02-26 08:27:17 +00:00
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
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
|
|
|
},
|
2023-02-26 08:27:17 +00:00
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
2022-02-15 02:10:47 +00:00
|
|
|
},
|
2023-11-21 14:54:09 +00:00
|
|
|
{
|
|
|
|
"name": "AF-iOS: Build All",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
|
|
|
"preLaunchTask": "AF: Build Appflowy Core For iOS",
|
|
|
|
"env": {
|
|
|
|
"RUST_LOG": "trace"
|
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
|
|
|
},
|
2023-02-03 06:13:33 +00:00
|
|
|
{
|
2023-07-21 07:53:57 +00:00
|
|
|
"name": "AF-iOS: Clean + Rebuild All",
|
2022-09-01 04:27:09 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
2023-07-21 07:53:57 +00:00
|
|
|
"preLaunchTask": "AF: Clean + Rebuild All (iOS)",
|
2022-09-01 04:27:09 +00:00
|
|
|
"env": {
|
2023-07-21 07:53:57 +00:00
|
|
|
"RUST_LOG": "trace"
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
2023-02-26 08:27:17 +00:00
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
2023-12-01 03:17:49 +00:00
|
|
|
{
|
|
|
|
"name": "AF-iOS-Simulator: Build Dart only",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
|
|
|
"env": {
|
|
|
|
"RUST_LOG": "trace"
|
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
|
|
|
},
|
2023-11-21 14:54:09 +00:00
|
|
|
{
|
|
|
|
"name": "AF-iOS-Simulator: Build All",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
|
|
|
"preLaunchTask": "AF: Build Appflowy Core For iOS Simulator",
|
|
|
|
"env": {
|
|
|
|
"RUST_LOG": "trace"
|
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
|
|
|
},
|
2022-09-01 04:27:09 +00:00
|
|
|
{
|
2023-07-21 07:53:57 +00:00
|
|
|
"name": "AF-iOS-Simulator: Clean + Rebuild All",
|
2022-09-01 04:27:09 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
2023-07-21 07:53:57 +00:00
|
|
|
"preLaunchTask": "AF: Clean + Rebuild All (iOS Simulator)",
|
2022-09-01 04:27:09 +00:00
|
|
|
"env": {
|
2023-07-21 07:53:57 +00:00
|
|
|
"RUST_LOG": "trace"
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
2023-02-26 08:27:17 +00:00
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
2022-09-01 04:27:09 +00:00
|
|
|
},
|
2023-11-21 14:54:09 +00:00
|
|
|
{
|
|
|
|
"name": "AF-Android: Build All",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
|
|
|
"preLaunchTask": "AF: Build Appflowy Core For Android",
|
|
|
|
"env": {
|
|
|
|
"RUST_LOG": "trace"
|
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
|
|
|
},
|
2023-10-19 01:55:23 +00:00
|
|
|
{
|
2023-10-24 05:52:55 +00:00
|
|
|
"name": "AF-Android: Clean + Rebuild All",
|
2023-10-19 01:55:23 +00:00
|
|
|
"request": "launch",
|
|
|
|
"program": "./lib/main.dart",
|
|
|
|
"type": "dart",
|
2023-10-24 05:52:55 +00:00
|
|
|
"preLaunchTask": "AF: Clean + Rebuild All (Android)",
|
2023-10-19 01:55:23 +00:00
|
|
|
"env": {
|
|
|
|
"RUST_LOG": "trace"
|
|
|
|
},
|
|
|
|
"cwd": "${workspaceRoot}/appflowy_flutter"
|
|
|
|
},
|
2023-07-21 07:53:57 +00:00
|
|
|
{
|
|
|
|
"name": "AF-desktop: Debug Rust",
|
|
|
|
"request": "attach",
|
|
|
|
"type": "lldb",
|
|
|
|
"pid": "${command:pickMyProcess}"
|
|
|
|
},
|
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/"
|
|
|
|
},
|
2022-02-15 02:10:47 +00:00
|
|
|
]
|
2022-06-11 00:16:15 +00:00
|
|
|
}
|