launch.json 2.5 KB

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