launch.json 2.3 KB

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