为什么在调试index.js中的括号时,Visual Studio Cordova项目始终会恢复

时间:2015-03-05 20:11:54

标签: visual-studio-cordova ripple

我刚创建了一个vs-cordova应用程序。当我在Chrome浏览器上篡改这个应用程序时,一切都按预期工作。

,但 调试器在cordova.js和index.js结束时中断。 index.js在下面。断点击中最后的粗体区域。但为什么?我在输出区域没有看到任何内容。我通过CTRL + Alt + E打开CLR错误,但也没有帮助。我也没有看到js-output上的任何错误。这个函数是匿名的没有名字。所以最后的括号看起来很好,不是吗?

现在,我只是点击了F5然后继续。很酷但我发现这有点烦人了一会儿!特别是对于android target.It打破了许多地方的代码。你有什么建议吗?

BTW,据我所知,调试器首先停止为我开始调试时添加到项目中的cordova.js然后找到index.js。

(function () {
"use strict";

document.addEventListener( 'deviceready', onDeviceReady.bind( this ), false );

function onDeviceReady() {
    // Handle the Cordova pause and resume events
    document.addEventListener( 'pause', onPause.bind( this ), false );
    document.addEventListener( 'resume', onResume.bind( this ), false );

    // TODO: Cordova has been loaded. Perform any initialization that requires Cordova here.
};

function onPause() {
    // TODO: This application has been suspended. Save application state here.
};

function onResume() {
    // TODO: This application has been reactivated. Restore application state here.
};

})();

enter image description here

1 个答案:

答案 0 :(得分:1)

这是由于我们的网络调试代码出现问题,该代码在最近更新Chrome后浮出水面。它已在最近推出的VS 2015 CTP6中得到修复。它也将在我们对VS2013的下一次扩展更新中修复。