How can I run my physical device as an emulator on vs-code?

Viewed 26

I'm currently learning Flutter development and all I have is the web emulator on vs-code I tried to use a virtual device as an emulator but didn't work and tried to connect my physical device too but didn't work either, the problem is that vs-code is not recognizing any of them! How do I connect my physical device to use it as an emulator, knowing that the USB debugging option is turned on?

1 Answers

1.You have to enable developer options in your testing device and then turn on usb debugging.

2.Then use this command in vs code:

flutter run -d device-name

Ex-flutter run -d s3789

Related