launch.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "Flyinsono",
  9. "request": "launch",
  10. "type": "dart",
  11. "program": "lib/main.dart",
  12. "args": [
  13. "--web-port=8080",
  14. "--web-hostname=127.0.0.1",
  15. "--dart-define=FLUTTER_WEB_CANVASKIT_URL=\"/canvaskit/\""
  16. ]
  17. },
  18. {
  19. "name": "web server",
  20. "request": "launch",
  21. "type": "dart",
  22. "program": "lib/main.dart",
  23. "args": [
  24. "--no-web-browser-launch",
  25. "--web-port=8080",
  26. "--web-hostname=127.0.0.1",
  27. "--dart-define=FLUTTER_WEB_CANVASKIT_URL=\"/canvaskit/\""
  28. ]
  29. },
  30. {
  31. "name": "测量启动时间",
  32. "request": "launch",
  33. "type": "dart",
  34. "program": "lib/main.dart",
  35. "args": [
  36. "--trace-startup",
  37. "--profile",
  38. "--web-port=8080",
  39. "--web-hostname=127.0.0.1",
  40. "--dart-define=FLUTTER_WEB_CANVASKIT_URL=\"/canvaskit/\""
  41. ]
  42. },
  43. {
  44. "name": "Detail Mode",
  45. "request": "launch",
  46. "type": "dart",
  47. "program": "lib/main.dart",
  48. "args": [
  49. "-v",
  50. "--web-port=8080",
  51. "--web-hostname=127.0.0.1",
  52. "--dart-define=FLUTTER_WEB_CANVASKIT_URL=\"/canvaskit/\""
  53. ]
  54. },
  55. {
  56. "name": "Release Mode",
  57. "request": "launch",
  58. "type": "dart",
  59. "program": "lib/main.dart",
  60. "args": [
  61. "--web-port=8080",
  62. "--web-hostname=127.0.0.1",
  63. "--dart-define=FLUTTER_WEB_CANVASKIT_URL=./canvaskit/",
  64. "--release"
  65. ]
  66. }
  67. ]
  68. }