launch.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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-iOS: Clean + Rebuild All",
  48. "request": "launch",
  49. "program": "./lib/main.dart",
  50. "type": "dart",
  51. "preLaunchTask": "AF: Clean + Rebuild All (iOS)",
  52. "env": {
  53. "RUST_LOG": "trace"
  54. },
  55. "cwd": "${workspaceRoot}/appflowy_flutter"
  56. },
  57. {
  58. "name": "AF-iOS-Simulator: Clean + Rebuild All",
  59. "request": "launch",
  60. "program": "./lib/main.dart",
  61. "type": "dart",
  62. "preLaunchTask": "AF: Clean + Rebuild All (iOS Simulator)",
  63. "env": {
  64. "RUST_LOG": "trace"
  65. },
  66. "cwd": "${workspaceRoot}/appflowy_flutter"
  67. },
  68. {
  69. "name": "AF-desktop: Debug Rust",
  70. "request": "attach",
  71. "type": "lldb",
  72. "pid": "${command:pickMyProcess}"
  73. },
  74. {
  75. // https://tauri.app/v1/guides/debugging/vs-code
  76. "type": "lldb",
  77. "request": "launch",
  78. "name": "AF-tauri: Debug backend",
  79. "cargo": {
  80. "args": [
  81. "build",
  82. "--manifest-path=./appflowy_tauri/src-tauri/Cargo.toml",
  83. "--no-default-features"
  84. ]
  85. },
  86. "preLaunchTask": "AF: Tauri UI Dev",
  87. "cwd": "${workspaceRoot}/appflowy_tauri/"
  88. },
  89. ]
  90. }