Visual Studio Debugger无法连接到iOS模拟器中的远程Apache Cordova应用程序
我一直在试图使用Visual Studio 2015 RC在Windows 8.1虚拟机中调试Apache Cordova应用程序。该应用程序运行在iOS模拟器中的MAC操作系统主机使用vs-mda-remote(我试过不同的iPhone版本),但调试总是超时。似乎没有正确的错误,只有以下:
I have been trying to debug an Apache Cordova app with Visual Studio 2015 RC in a Windows 8.1 Virtual Machine. The app is running in an iOS simulator in a MAC OS host using vs-mda-remote (I've tried with different iPhone versions), but the debug always times out. There doesn't seem to be a proper error, only the following:
启动进程C:\Program Files(x86)\\ \\ nodejs\\\
ode.exeC:\Users\User\AppData\Roaming\\\
pm\\\
ode_modules\vs-tac\emulator.js--platform ios --action launch --path
Starting launch process C:\Program Files (x86)\nodejs\node.exe "C:\Users\User\AppData\Roaming\npm\node_modules\vs-tac\emulator.js" --platform ios --action launch --path
C:\XXXXX\bld\ios\Debug\buildInfo.json--serverUrl iMac-User.local:3000 --language pt -PT --cliVersion 5.1.1 --deployTargetiPhone 5
"C:\XXXXX\bld\ios\Debug\buildInfo.json" --serverUrl iMac-User.local:3000 --language pt-PT --cliVersion 5.1.1 --deployTarget "iPhone 5"
超时将调试程序连接到远程Apache Cordova应用程序。请参阅JavaScript控制台输出的输出窗口。
Timed out connecting debugger to remote Apache Cordova app. See Output window for JavaScript console output.
------ Cordova Tools 5.1.1已安装。
------ Cordova Tools 5.1.1 already installed.
emulated - 已成功发送到ios模拟器
emulated - Successfully sent to ios Simulator
在/ Users / user / remote-builds / builds / 5689 / cordovaApp上为目标iPhone 5模拟应用程序
Emulating app at /Users/user/remote-builds/builds/5689/cordovaApp for target iPhone 5
在远程iOS设备中调试服务器iMac-User.local中的buildNumber 5689:3000 ...
Asking to debug in remote iOS device for buildNumber 5689 in server iMac-User.local:3000...
无法调试远程iOS,以便将C:\XXXXX\bld\ios\Debug\buildInfo.json编译为 http ://iMac-User.local:3000 :
iPhone 5
Fail to debug remote iOS in order to compile C:\XXXXX\bld\ios\Debug\buildInfo.json to http://iMac-User.local:3000 : iPhone 5
我已经尝试清理cordova的缓存,使用vs-mda-remote --secure false和我在网上找到的一些其他建议。然而,没有什么似乎工作。它不是项目本身,作为我的朋友是能够调试它。从他的电脑的配置似乎和我的一样。
I have already tried to clean cordova's cache, using vs-mda-remote --secure false and some other suggestions I found online. However, nothing seems to work. It's not the project itself, as a friend of mine is able to debug it. The configuration from his computer seem to be the same as mine.
有什么可能是问题的想法?
感谢。
Any ideas on what might be the problem? Thanks.
我发现了问题,安装Homebrew时肯定出了问题。所以我重新安装它,并强制安装ios-webkit-debug-proxy。这解决了我的问题,我现在可以调试应用程序。
I have found the problem, there must have been something wrong with the installation of Homebrew. So I reinstalled it, and forced install ios-webkit-debug-proxy. This solved my problem and I am now able to debug the app.