launch.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. // It supports both the desktop and mobile version.
  10. "name": "AF: Build Dart Only",
  11. "request": "launch",
  12. "program": "./lib/main.dart",
  13. "type": "dart",
  14. "env": {
  15. "RUST_LOG": "debug",
  16. },
  17. "cwd": "${workspaceRoot}/appflowy_flutter"
  18. },
  19. {
  20. // This task builds the Rust and Dart code of AppFlowy.
  21. "name": "AF-desktop: Build All",
  22. "request": "launch",
  23. "program": "./lib/main.dart",
  24. "type": "dart",
  25. "preLaunchTask": "AF: Build Appflowy Core",
  26. "env": {
  27. "RUST_LOG": "trace",
  28. "RUST_BACKTRACE": 1
  29. },
  30. "cwd": "${workspaceRoot}/appflowy_flutter"
  31. },
  32. {
  33. // This task builds will:
  34. // - call the clean task,
  35. // - rebuild all the generated Files (including freeze and language files)
  36. // - rebuild the the Rust and Dart code of AppFlowy.
  37. "name": "AF-desktop: Clean + Rebuild All",
  38. "request": "launch",
  39. "program": "./lib/main.dart",
  40. "type": "dart",
  41. "preLaunchTask": "AF: Clean + Rebuild All",
  42. "env": {
  43. "RUST_LOG": "trace"
  44. },
  45. "cwd": "${workspaceRoot}/appflowy_flutter"
  46. },
  47. {
  48. "name": "AF-iOS: Clean + Rebuild All",
  49. "request": "launch",
  50. "program": "./lib/main.dart",
  51. "type": "dart",
  52. "preLaunchTask": "AF: Clean + Rebuild All (iOS)",
  53. "env": {
  54. "RUST_LOG": "trace"
  55. },
  56. "cwd": "${workspaceRoot}/appflowy_flutter"
  57. },
  58. {
  59. "name": "AF-iOS-Simulator: Clean + Rebuild All",
  60. "request": "launch",
  61. "program": "./lib/main.dart",
  62. "type": "dart",
  63. "preLaunchTask": "AF: Clean + Rebuild All (iOS Simulator)",
  64. "env": {
  65. "RUST_LOG": "trace"
  66. },
  67. "cwd": "${workspaceRoot}/appflowy_flutter"
  68. },
  69. {
  70. "name": "AF-Android-Simlator: Clean + Rebuild All",
  71. "request": "launch",
  72. "program": "./lib/main.dart",
  73. "type": "dart",
  74. "preLaunchTask": "AF: Clean + Rebuild All (Android Simulator)",
  75. "env": {
  76. "RUST_LOG": "trace"
  77. },
  78. "cwd": "${workspaceRoot}/appflowy_flutter"
  79. },
  80. {
  81. "name": "AF-desktop: Debug Rust",
  82. "request": "attach",
  83. "type": "lldb",
  84. "pid": "${command:pickMyProcess}"
  85. },
  86. {
  87. // https://tauri.app/v1/guides/debugging/vs-code
  88. "type": "lldb",
  89. "request": "launch",
  90. "name": "AF-tauri: Debug backend",
  91. "cargo": {
  92. "args": [
  93. "build",
  94. "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
  95. "--no-default-features"
  96. ]
  97. },
  98. "preLaunchTask": "AF: Tauri UI Dev",
  99. "cwd": "${workspaceRoot}/appflowy_tauri/"
  100. },
  101. ]
  102. }