科尔多瓦调试应用(Android)与Visual Studio 2015年新模拟器 [英] Debugging Cordova App (android) with Visual Studio 2015 New Emulator

查看:259
本文介绍了科尔多瓦调试应用(Android)与Visual Studio 2015年新模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这是否是我在做一些愚蠢的事或只是补防的前沿..
我开发了一个简单的应用程序科尔多瓦但那是学术,因为我可以重复这个问题上与标准WIZZARD生产的默认应用程序。

I am not sure if this is me doing something stupid or just up against the bleeding edge.. I am developing a simple Cordova app but that is academic since I can repeat this issue with the standard 'Wizzard produced' default application.

我的应用程序工作,并同时使用纹波和偶尔与真实的设备调试罚款与VS2013。
我没有对器件造成永久性的访问,所以我认为Id尝试新的VS2015与CTP5模拟器。到现在为止还挺好。所有作品OK和应用程序不会部署到模拟器,并开始。然而,VS是停留在部署过程中,从来没有出来。要,我要'用CTRL-Break出它的程度。和调试器永远不会启动..构建输出的最后几行是:

I had the app working and debugging fine with VS2013 using both Ripple and occasionally with a real device. I don't have permanent access to the device so I thought Id try the new VS2015 CTP5 with emulator. So far so good. All builds ok and the app does get deployed to the emulator, and starts. However, VS is stuck in the 'deploying' process and never comes out. To the extent that I have to 'ctrl-Break' out of it. and the debugger never starts.. The last few lines of the build output are:

2>  Built the following apk(s):
2>      C:\Users\Brett\Documents\VisualStudioCordova\Projects\mblapp\mblapp\bld\Debug\platforms\android\ant-build\CordovaApp-debug.apk
2>  Using apk: `C:\Users\Brett\Documents\VisualStudioCordova\Projects\mblapp\mblapp\bld\Debug\platforms`\android\ant-build\CordovaApp-debug.apk
2>  Installing app on device...
2>  Launching application...
2>  LAUNCH SUCCESS
2>  Command finished with error code 0: `C:\Users\Brett\Documents\VisualStudioCordova\Projects\mblapp\mblapp\bld\Debug\platforms`\android\cordova\run.bat --nobuild,--target=169.254.138.177:5555,--debug
2>  

因此​​,有一个错误存在,但我真的不明白这是什么意思。

So there is an error there but I really don't get what it means..

好了,我又回到了VS2013,但现在2015年的安装已经改变了一些东西,使用脉动,现在突破了code。在在code意想不到的地方..不..断点和JavaScript的控制台说,在其下拉菜单中已暂停在断点。我不能直接进入2015年模拟器,但出于兴趣,我离开后,2015年被关闭,可以连接并使用VS 2013的调试运行模拟器..伟大的..但它不是一个伟大的方式开始调试。

Ok, So I went back to VS2013 but now the 2015 install has changed something and using Ripple it now breaks out of the code at unexpected places in the code.. not breakpoints.. and the javascript console says 'Paused at breakpoint' in its dropdown. I cant access the 2015 Emulator directly, but out of interest I left the emulator running after 2015 was closed and CAN connect AND debug using VS 2013.. great.. but its not a great way to start debugging..

我真的很喜欢新的仿真器的外观和它似乎与2013年工作的伟大..所以不会有任何人知道如何使VS2013部署到新的模拟器? ..我尝试运行它,确实有一些成功。但我不能找到哪里VS2015已经隐藏了VHD文件。

I really like the look of the new Emulator and it does seem to work great with 2013.. so does anyone out there know how to make VS2013 deploy to the new emulator? .. I tried running it and did have some success. But I cant find where VS2015 has hidden its VHD file..

或者说,没有人知道为什么VS2015可能没有正确部署..我很高兴去与一个可行的解决方案..只是现在林卡住不前进,它的卸载2015年和可能的2013重装回去...
非常感谢。

Or, does anyone know why VS2015 might not be deploying correctly.. Im happy to go with a solution that works.. Just that right now Im stuck not going forward, and its an uninstall 2015 and probable reinstall 2013 to go back... Many thanks.

推荐答案

确定..香港专业教育学院张贴了这个作为一个答案,因为它处理它的一部分..和我做挣扎了一下,所以可能帮助别人。
从运行的VS2013模拟器。
你需要去到文件夹

OK.. Ive posted this as an answer because it does deal with part of it.. and I did struggle a bit so it might help someone else. Running the emulator from VS2013. You need to go to the folder

C:\\ Program Files文件(x86)的\\微软的Visual Studio模拟器为Android \\ 1.0

C:\Program Files (x86)\Microsoft Visual Studio Emulator for Android\1.0

在安装模拟器。具有VS2015运行它至少一次,它创造了一个名为vsemu.vhd和vsemu.sdcard.vhd。这两个文件复制到我用'myemu'同一个文件夹类似的东西。
然后启动模拟器我创建了一个简单快捷的目标属性:

where the emulator is installed. Having run it at least once from VS2015, it had created a file called vsemu.vhd and vsemu.sdcard.vhd. Copy both these files to something similar in the same folder I used 'myemu'. Then to start the emulator I created a simple shortcut with the target property:

C:\\ Program Files文件(x86)的\\微软的Visual Studio仿真器
  Android版\\ 1.0 \\ XDE.exe/ VHD bretts.vhd /视频1080x1920

"C:\Program Files (x86)\Microsoft Visual Studio Emulator for Android\1.0\XDE.exe" /vhd bretts.vhd /video 1080x1920

这台分辨率太..您可以通过使用发现所有的启动标志等:

this sets the resolution too.. You can find all the startup flags etc by using:

... XDE /?

...XDE /?

林不知道,但我认为它存储在SD卡文件中的各种应用的快捷方式。虽然我不会发誓它。如果有新的变化有生​​病转贴。

Im not sure yet, but I think it stored the various app shortcuts in the sdcard file.. although I wouldn't swear to it. Ill repost if something changes there.

好吧调试..我开始VS2013,并设置调试目标,如设备。这工作得很好..至今。

Ok Debugging.. I started VS2013 and set the debug target as 'Device'. This worked fine.. so far.

标识仍然爱知道为什么2015年没有正确部署虽然,现在我只是假设最前沿的其止血的一部分。
干杯

Id still love to know why 2015 is not deploying properly though, for now I'll just assume its the 'bleeding' part of the bleeding edge. Cheers

这篇关于科尔多瓦调试应用(Android)与Visual Studio 2015年新模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆