launch.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. "type": "lldb",
  96. "request": "launch",
  97. "name": "AF-tauri: Dev",
  98. "cargo": {
  99. "args": [
  100. "build",
  101. "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
  102. "--no-default-features"
  103. ]
  104. },
  105. "preLaunchTask": "AF: Tauri Dev",
  106. "cwd": "${workspaceRoot}/appflowy_tauri/"
  107. },
  108. {
  109. "name": "AF: Debug Rust",
  110. "request": "attach",
  111. "type": "lldb",
  112. "pid": "${command:pickMyProcess}"
  113. },
  114. {
  115. "name": "AF: app_flowy (profile mode)",
  116. "request": "launch",
  117. "program": "./lib/main.dart",
  118. "type": "dart",
  119. "flutterMode": "profile",
  120. "cwd": "${workspaceRoot}/app_flowy"
  121. },
  122. ]
  123. }