vs code调试cordova/ionic程序配置

390

 

之前用xcode调试ionic程序多有不便,比如console.log输出一个对象,xcode中只能看到输出“object”。

js相关代码的数据,还是要在vscode中看才行。

使用vscode调试ionic项目时,可以安装运行app,但却无法连接到调试模式,vs code提示:

Unable to communicate with target

cordova unable to find webview

解决办法:

设置》safari浏览器》高级》开启 web检查器 选项

留下一个答复

Please enter your comment!
Please enter your name here