I want to debug the flutter application in android-studio and Xcode with the real phone device, could i directly log the message out at these two tools when i meet the error?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
Assuming you want to debug a physical device connected to the computer(As you mentioned Android Studio and Xcode), use the
print()
function. It will show the logs in both Android Studio and Xcode.or
Import this and use as
Check details here.
Also, check this for dumping errors when the app suddenly stops.
For android you can open terminal and execute :
adb logcat [options]
// make sure that adb is in PATH or you need to work on the adb folder
look here