Run following command on terminal –
ionic cordova run --device --debug
Next it will ask platform, example android
Then Open chrome and Web Inspector in chrome, and follow below menu path.
From right side menu “Customize and contorl DevTools” -> More tools -> Remote Devices
It will show list of devices, click on your device, it shows apps you can debug, click on your app.