每当我使用c:/data/flutter/bin/flutter run -d chrome --web-hostname localhost --web-port 60308
运行我的Flutter应用程序时,应用程序的URL保持不变,为http://localhost:60308/#/
。
但是应用程序的Flutter DevTools调试器和分析器URL不断变化,我必须每次从命令行复制和粘贴它。我如何使这个URL保持不变太请?
Follow (https://docs.flutter.dev/development/tools/vs-code#run-app-in-debug-profile-or-release-mode)
"configurations": [{
"name": "Flutter",
"request": "launch",
"type": "dart",
"flutterMode": "debug"
"args": [
"--web-port",
"60308"
]
}]