launch.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. // This task builds the Rust and Dart code of AppFlowy.
  9. "name": "AF-desktop: Build All",
  10. "request": "launch",
  11. "program": "./lib/main.dart",
  12. "type": "dart",
  13. "preLaunchTask": "AF: Build Appflowy Core",
  14. "env": {
  15. "RUST_LOG": "trace",
  16. "RUST_BACKTRACE": 1
  17. },
  18. "cwd": "${workspaceRoot}/appflowy_flutter"
  19. },
  20. {
  21. // This task only builds the Dart code of AppFlowy.
  22. "name": "AF-desktop: Build Dart Only",
  23. "request": "launch",
  24. "program": "./lib/main.dart",
  25. "type": "dart",
  26. "env": {
  27. "RUST_LOG": "debug",
  28. },
  29. "cwd": "${workspaceRoot}/appflowy_flutter"
  30. },
  31. {
  32. // This task builds will:
  33. // - call the clean task,
  34. // - rebuild all the generated Files (including freeze and language files)
  35. // - rebuild the the Rust and Dart code of AppFlowy.
  36. "name": "AF-desktop: Clean + Rebuild All",
  37. "request": "launch",
  38. "program": "./lib/main.dart",
  39. "type": "dart",
  40. "preLaunchTask": "AF: Clean + Rebuild All",
  41. "env": {
  42. "RUST_LOG": "trace"
  43. },
  44. "cwd": "${workspaceRoot}/appflowy_flutter"
  45. },
  46. {
  47. "name": "AF-desktop: Debug Rust",
  48. "request": "attach",
  49. "type": "lldb",
  50. "pid": "${command:pickMyProcess}"
  51. },
  52. // {
  53. // "name": "AF-desktop: profile mode",
  54. // "request": "launch",
  55. // "program": "./lib/main.dart",
  56. // "type": "dart",
  57. // "flutterMode": "profile",
  58. // "cwd": "${workspaceRoot}/appflowy_flutter"
  59. // },
  60. {
  61. // This task builds the Rust and Dart code of AppFlowy for android.
  62. "name": "AF-android: Build All",
  63. "request": "launch",
  64. "program": "./lib/main.dart",
  65. "type": "dart",
  66. "preLaunchTask": "AF: build_mobile_sdk",
  67. "env": {
  68. "RUST_LOG": "info"
  69. },
  70. "cwd": "${workspaceRoot}/appflowy_flutter"
  71. },
  72. {
  73. // This task builds will:
  74. // - call the clean task,
  75. // - rebuild all the generated Files (including freeze and language files)
  76. // - rebuild the the Rust and Dart code of AppFlowy.
  77. "name": "AF-android: Clean + Rebuild All",
  78. "request": "launch",
  79. "program": "./lib/main.dart",
  80. "type": "dart",
  81. "preLaunchTask": "AF: Clean + Rebuild All (Android)",
  82. "env": {
  83. "RUST_LOG": "info"
  84. },
  85. "cwd": "${workspaceRoot}/appflowy_flutter"
  86. },
  87. {
  88. // https://tauri.app/v1/guides/debugging/vs-code
  89. "type": "lldb",
  90. "request": "launch",
  91. "name": "AF-tauri: Debug backend",
  92. "cargo": {
  93. "args": [
  94. "build",
  95. "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
  96. "--no-default-features"
  97. ]
  98. },
  99. "preLaunchTask": "AF: Tauri UI Dev",
  100. "cwd": "${workspaceRoot}/appflowy_tauri/"
  101. },
  102. // {
  103. // "type": "lldb",
  104. // "request": "launch",
  105. // "name": "AF-tauri: Production Debug",
  106. // "cargo": {
  107. // "args": ["build", "--release", "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml"]
  108. // },
  109. // "preLaunchTask": "AF: Tauri UI Build",
  110. // "cwd": "${workspaceRoot}/appflowy_tauri/"
  111. // },
  112. ]
  113. }