launch.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 only builds the Dart code of AppFlowy.
  9. "name": "AF-desktop: Build Dart Only",
  10. "request": "launch",
  11. "program": "./lib/main.dart",
  12. "type": "dart",
  13. "env": {
  14. "RUST_LOG": "debug"
  15. },
  16. "cwd": "${workspaceRoot}/app_flowy"
  17. },
  18. {
  19. // This task builds the Rust and Dart code of AppFlowy.
  20. "name": "AF-desktop: Build All",
  21. "request": "launch",
  22. "program": "./lib/main.dart",
  23. "type": "dart",
  24. "preLaunchTask": "AF: build_flowy_sdk",
  25. "env": {
  26. "RUST_LOG": "info"
  27. },
  28. "cwd": "${workspaceRoot}/app_flowy"
  29. },
  30. {
  31. "name": "AF-desktop: Build All (rustlog: trace)",
  32. "request": "launch",
  33. "program": "./lib/main.dart",
  34. "type": "dart",
  35. "preLaunchTask": "AF: build_flowy_sdk",
  36. "env": {
  37. "RUST_LOG": "trace"
  38. },
  39. "cwd": "${workspaceRoot}/app_flowy"
  40. },
  41. {
  42. // This task builds will:
  43. // - call the clean task,
  44. // - rebuild all the generated Files (including freeze and language files)
  45. // - rebuild the the Rust and Dart code of AppFlowy.
  46. "name": "AF-desktop: Clean + Rebuild All",
  47. "request": "launch",
  48. "program": "./lib/main.dart",
  49. "type": "dart",
  50. "preLaunchTask": "AF: Clean + Rebuild All",
  51. "env": {
  52. "RUST_LOG": "trace"
  53. },
  54. "cwd": "${workspaceRoot}/app_flowy"
  55. },
  56. {
  57. // This task builds the Rust and Dart code of AppFlowy for android.
  58. "name": "AF-android: Build All",
  59. "request": "launch",
  60. "program": "./lib/main.dart",
  61. "type": "dart",
  62. "preLaunchTask": "AF: build_mobile_sdk",
  63. "env": {
  64. "RUST_LOG": "info"
  65. },
  66. "cwd": "${workspaceRoot}/app_flowy"
  67. },
  68. {
  69. "name": "AF-android: Build All (rustlog: trace)",
  70. "request": "launch",
  71. "program": "./lib/main.dart",
  72. "type": "dart",
  73. "preLaunchTask": "AF: build_mobile_sdk",
  74. "env": {
  75. "RUST_LOG": "trace"
  76. },
  77. "cwd": "${workspaceRoot}/app_flowy"
  78. },
  79. {
  80. // This task builds will:
  81. // - call the clean task,
  82. // - rebuild all the generated Files (including freeze and language files)
  83. // - rebuild the the Rust and Dart code of AppFlowy.
  84. "name": "AF-android: Clean + Rebuild All",
  85. "request": "launch",
  86. "program": "./lib/main.dart",
  87. "type": "dart",
  88. "preLaunchTask": "AF: Clean + Rebuild All (Android)",
  89. "env": {
  90. "RUST_LOG": "info"
  91. },
  92. "cwd": "${workspaceRoot}/app_flowy"
  93. },
  94. {
  95. // https://tauri.app/v1/guides/debugging/vs-code
  96. "type": "lldb",
  97. "request": "launch",
  98. "name": "AF-tauri: Debug backend",
  99. "cargo": {
  100. "args": [
  101. "build",
  102. "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
  103. "--no-default-features"
  104. ]
  105. },
  106. "preLaunchTask": "AF: Tauri UI Dev",
  107. "cwd": "${workspaceRoot}/appflowy_tauri/"
  108. },
  109. {
  110. "name": "AF: Debug Rust",
  111. "request": "attach",
  112. "type": "lldb",
  113. "pid": "${command:pickMyProcess}"
  114. },
  115. {
  116. "name": "AF: app_flowy (profile mode)",
  117. "request": "launch",
  118. "program": "./lib/main.dart",
  119. "type": "dart",
  120. "flutterMode": "profile",
  121. "cwd": "${workspaceRoot}/app_flowy"
  122. },
  123. ]
  124. }