为什么 Visual Studio Cordova 项目总是在调试 index.js 中的括号时恢复

Why Visual Studio Cordova project always resumes while debugging for parenthesis in index.js

我刚刚创建了一个 vs-cordova 应用程序。当我在 chrome 浏览器上运行此应用程序时,一切都按预期工作。

但是, 调试器在 cordova.js 和 index.js 结束时中断。 index.js 在下面。断点击中最后的粗体区域。但为什么?我在输出中没有看到任何内容 area.I opened CLR errors by CTRL+Alt+E ,但也没有帮助。我也没有在 js 输出上看到任何错误。该函数是匿名的,没有 name.So 最后的括号似乎没问题,不是吗?

现在,我只是按了 F5 并且 continue.It 很酷,但我发现这有一段时间有点烦人!特别是 android target.It 破坏了许多地方的代码。你对我有什么建议吗?

顺便说一句,据我所知,调试器首先停止 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.
};

} )();

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