i need an help...So my target is debug my ionic apps with visual studio code and breakpoint inside. So my configuration is:
- Mac OS Mojave
- iOS 12.3.1
- Visual Studio (last update may 2019)
- Xcode 10.2.1 installed
- Cordova Tools on Visual Studio Code installed (https://marketplace.visualstudio.com/items?itemName=msjsdiag.cordova-tools)
- On safari on iPhone i set Safari -> advanced -> Inspector web on true
- ios-webkit-debug-proxy installed and intercpetor connected (as you can see)
So, my configuration (launch.json) is:
{
"name": "Attach to iOS on device",
"type": "cordova",
"request": "attach",
"platform": "ios",
"target": "mytarget device",
"cwd": "${workspaceFolder}",
"sourceMaps": true,
"port": 9222,
"attachDelay": 5000
},
{
"name": "Run iOS on device",
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "my target device",
"sourceMaps": true,
"cwd": "${workspaceFolder}",
// "ionicLiveReload": true,
"devServerTimeout" : 420000,
"port": 9222,
"attachDelay": 5000
}
In order to run, i've Run iOS on device
and after app starts on the device i've run Attach to iOS on device
. So when i think everything works: visual studio return me this error:
Attaching to ios
Configuring debugging proxy
Unable to find webview <- this is my error.
I can't to resolve this error, how can i do to works and find the webview? I've try to set this:
"attachDelay": 5000
but without success. Any ideas ?
Thanks