首页 > 解决方案 > cordova-tools 处理“启动”时出错:无法找到 webview | Ionic 4 - VS 代码上的 Angular 7

问题描述

我需要帮助...所以我的目标是使用 Visual Studio 代码和内部断点调试我的离子应用程序。所以我的配置是:

在此处输入图像描述

所以,我的配置(launch.json)是:

   {
        "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
    } 

为了运行,我已经Run iOS on device在我运行的设备上启动了应用程序之后Attach to iOS on device。因此,当我认为一切正常时:visual studio 向我返回此错误:

Attaching to ios
Configuring debugging proxy
Unable to find webview <- this is my error.

我无法解决此错误,我该如何工作并找到 webview?我试图设置这个:

"attachDelay": 5000

但没有成功。有任何想法吗 ?

谢谢

标签: iosangularcordovaionic-frameworkios-webkit-debug-proxy

解决方案


推荐阅读