Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic 2 app safari remote debugger disconnects immediately

Tags:

ios

safari

ionic2

I am trying to debug an application written in Ionic 2 (Angular 2) on device via Safari remote dev tools. When the app is open and I connect the iphone to the Mac it shows up under Safari > Develop menu, but as soon as I connect to it (and the dev tools do show up) it disappears from the Safari > Develop menu and in the just opened dev tools I am unable to execute anything in the console nor expand any node in the Elements panel.

When I unplug and replug the device it shows up in Safari > Develop again but the devtools window is gone, and as soon as I open it up again... Same thing.

Any help?

like image 696
kamilkp Avatar asked Mar 22 '17 06:03

kamilkp


1 Answers

You wouldn't believe what solved the issue....

Running Safari.app through terminal by executing /Applications/Safari.app/Contents/MacOS/Safari it opened up Safari as usual, but for some strange reason it didn't disconnect my device when connecting to it via remote dev tools.

like image 64
kamilkp Avatar answered Nov 15 '22 22:11

kamilkp