123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- {
- // 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": [
- {
- // This task builds the Rust and Dart code of AppFlowy.
- "name": "AF-desktop: Build All",
- "request": "launch",
- "program": "./lib/main.dart",
- "type": "dart",
- "preLaunchTask": "AF: Build Appflowy Core",
- "env": {
- "RUST_LOG": "trace",
- "RUST_BACKTRACE": 1,
- },
- "cwd": "${workspaceRoot}/appflowy_flutter"
- },
- {
- // This task only builds the Dart code of AppFlowy.
- "name": "AF-desktop: Build Dart Only",
- "request": "launch",
- "program": "./lib/main.dart",
- "type": "dart",
- "env": {
- "RUST_LOG": "debug",
- },
- "cwd": "${workspaceRoot}/appflowy_flutter"
- },
- {
- // 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-desktop: Clean + Rebuild All",
- "request": "launch",
- "program": "./lib/main.dart",
- "type": "dart",
- "preLaunchTask": "AF: Clean + Rebuild All",
- "env": {
- "RUST_LOG": "trace"
- },
- "cwd": "${workspaceRoot}/appflowy_flutter"
- },
- {
- "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}/appflowy_flutter"
- // },
- {
- // This task builds the Rust and Dart code of AppFlowy for android.
- "name": "AF-android: Build All",
- "request": "launch",
- "program": "./lib/main.dart",
- "type": "dart",
- "preLaunchTask": "AF: build_mobile_sdk",
- "env": {
- "RUST_LOG": "info"
- },
- "cwd": "${workspaceRoot}/appflowy_flutter"
- },
- {
- // 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",
- "request": "launch",
- "program": "./lib/main.dart",
- "type": "dart",
- "preLaunchTask": "AF: Clean + Rebuild All (Android)",
- "env": {
- "RUST_LOG": "info"
- },
- "cwd": "${workspaceRoot}/appflowy_flutter"
- },
- {
- // https://tauri.app/v1/guides/debugging/vs-code
- "type": "lldb",
- "request": "launch",
- "name": "AF-tauri: Debug backend",
- "cargo": {
- "args": [
- "build",
- "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
- "--no-default-features"
- ]
- },
- "preLaunchTask": "AF: Tauri UI Dev",
- "cwd": "${workspaceRoot}/appflowy_tauri/"
- },
- // {
- // "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/"
- // },
- ]
- }
|