Visual Studio 2013 Update 4 and Apache Cordova CTP3 Breaking/Stopping on Javascript lines with no breakpoints

三世轮回 提交于 2019-12-02 05:00:53

问题


I am running Visual Studio 2013 Update 4 with Tools for Apache Cordova CTP3 installed. After creating a brand new Apache Cordova project, and then debugging it, it breaks/pauses/stops on seemingly random lines of javascript files where there are no breakpoints. Meaning, it stops on lines as if there was a breakpoint there, but there really isn't. I'm using RIPPLE debugging only. I don't use a device or emulator AT ALL.

At one point, I had installed Visual Studio 2015 CTP5, and an associated update to the Android Emulator that was recommended. I since have uninstalled them.


回答1:


This is a bug that appeared since a recent update to Chrome, and it is being worked on. You can run your app on Ripple by hitting F5 through the debugger breaks (hardly satisfactory), or Ctrl+F5 to start your app without debugging in Ripple. To debug, the better option is to run on on an emulator. The VS Emulator for Android on VS 2015 Preview has been working well for me. In VS 2013, GenyMotion is probably the best option for Android.




回答2:


I have having the same problem as discussed here but noone seems able to help https://social.msdn.microsoft.com/Forums/vstudio/en-US/10b9a01c-4afa-443e-83d5-fa4cd92493c0/visual-studio-cordova-templateangularjstodo-example-project-debug-issue?forum=vsdebug&prof=required




回答3:


I fixed it by doing: Tools > Options > Tools for Apache Cordova > Cordova Tools. Then click on the button 'Clear Cordova Cache'. Give it a few minutes..




回答4:


Another thing I noticed, is that I might have had CTP3.0 vs CTP3.1. Be sure to take a real close look at https://support.microsoft.com/en-us/kb/3014133?wa=wsignin1.0



来源:https://stackoverflow.com/questions/28376223/visual-studio-2013-update-4-and-apache-cordova-ctp3-breaking-stopping-on-javascr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!