launch.json 3.6 KB

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