launch.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 only builds the Dart code of AppFlowy.
  21. "name": "AF: Build Dart Only",
  22. "request": "launch",
  23. "program": "./lib/main.dart",
  24. "type": "dart",
  25. "env": {
  26. "RUST_LOG": "debug"
  27. },
  28. "cwd": "${workspaceRoot}/app_flowy"
  29. },
  30. {
  31. // This task builds will:
  32. // - call the clean task,
  33. // - rebuild all the generated Files (including freeze and language files)
  34. // - rebuild the the Rust and Dart code of AppFlowy.
  35. "name": "AF: Clean + Rebuild All",
  36. "request": "launch",
  37. "program": "./lib/main.dart",
  38. "type": "dart",
  39. "preLaunchTask": "AF: Clean + Rebuild All",
  40. "env": {
  41. "RUST_LOG": "info"
  42. },
  43. "cwd": "${workspaceRoot}/app_flowy"
  44. },
  45. {
  46. "name": "AF: Build All (rustlog: trace)",
  47. "request": "launch",
  48. "program": "./lib/main.dart",
  49. "type": "dart",
  50. "preLaunchTask": "AF: build_flowy_sdk",
  51. "env": {
  52. "RUST_LOG": "trace"
  53. },
  54. "cwd": "${workspaceRoot}/app_flowy"
  55. },
  56. {
  57. "name": "AF: app_flowy (profile mode)",
  58. "request": "launch",
  59. "type": "dart",
  60. "flutterMode": "profile"
  61. },
  62. ]
  63. }