[英]How can i see my flutter app output in both Android and IOS simulator simultaneously?
I am using the android studio to develop flutter application, I want to know is there any way I can see my app output in both android and ios simulator also I can perform hot reload on both simulator? I am using the android studio to develop flutter application, I want to know is there any way I can see my app output in both android and ios simulator also I can perform hot reload on both simulator?
To debug multiple devices concurrently you should set up a launch config for each device that has the deviceId fieldset (this is the same ID you'd pass to flutter run -d xxx).要同时调试多个设备,您应该为具有 deviceId 字段集的每个设备设置一个启动配置(这是您传递给 flutter run -d xxx 的同一 ID)。 Open the launch config by clicking Debug -> Open Configurations.
通过单击 Debug -> Open Configurations 打开启动配置。 Add a compound config at the bottom that will launch both (or more) configurations at the same time:
在底部添加一个复合配置,它将同时启动两个(或多个)配置:
{
"version": "0.2.0",
"configurations": [
{
"name": "Current Device",
"request": "launch",
"type": "dart"
},
{
"name": "Android",
"request": "launch",
"type": "dart",
"deviceId": "android"
},
{
"name": "iPhone",
"request": "launch",
"type": "dart",
"deviceId": "iphone"
},
],
"compounds": [
{
"name": "All Devices",
"configurations": ["Android", "iPhone"],
}
]
}
Selecting the compound config on the Debug side bar and clicking Debug -> Start Debugging (or Start Without Debugging) will launched debug sessions for each device at the same time.选择 Debug 侧栏上的复合配置并单击 Debug -> Start Debugging(或 Start without Debugging)将同时为每个设备启动调试会话。
Yes, there is a way to do that First install android and ios simulator and one by one Flutter run
after that when both simulators are running.是的,有办法做到这一点首先安装 android 和 ios 模拟器,然后在两个模拟器都运行时一个接一个
Flutter run
运行。 you can Hot reload
from here.你可以从这里
Hot reload
。
and if you are looking for running both simultaneously then just then select all available devices and run your command.如果您正在寻找同时运行两者,那么就在 select 所有可用设备上运行您的命令。
flutter run
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.