Ripple 模拟器 / Chrome 当我尝试打开开发者工具时浏览器关闭

Ripple Emulator / Chrome Browser closing when I attempt to open developer tools

我正在尝试使用 Ripple inside Visual Studio 2015 来调试我的应用程序。我想查看本地存储,但是当我打开开发人员工具时,Chrome 关闭并且 Javascript 控制台显示此错误:

The source map 'angular-sanitize.min.js.map' for file 'mdha:http://code.ionicframework.com/1.0.0-rc.5/js/ionic.bundle.min.js' could not be read from the specified location due to error 'Exception of type 'TypeScriptSourceMapReader.SourceMapReadFailedException' was thrown.'.The source map is using an unsupported formatThe source map is using an unsupported formatThe source map is using an unsupported format

如何消除错误?

编辑

我使用 File->New Project->Javascript->Apache Cordova Apps->Ionic Tabs App 创建了一个新项目。我看到了一个对话框:

Your project uses a version of TypeScript older than the version currently installed with Visual Studio. You may get errors if you try to build the project. Would you like us to upgrade the TypeScriptToolsVersion in your project file so you don't see this warning again?

回答"No",我遇到的问题就出现了。回答 "Yes" 但它没有.....所以我想我需要弄清楚如何让 Visual Studio 再次给我对话框,或者弄清楚如何手动更改它... .

编辑 2 我试过这个:

  1. 右键单击项目 -> 卸载
  2. 再次右击 -> 编辑 MyProject.jsproj
  3. 已将 <TypeScriptToolsVersion>1.4</TypeScriptToolsVersion> 更改为 1.6

还没有运气...

编辑 3 我刚刚意识到有关源地图 'angular-sanitize.min.js.map' 未被读取的消息总是在我关闭浏览器 window 时显示,而不仅仅是在它崩溃时显示。因此,该消息可能对这个特定问题没有太大帮助。

编辑 4 我将我的应用程序复制到使用 Ionic Tabs 应用程序创建的新工作项目中,但我仍然遇到问题。所以可能有两个不同的根本原因。

很抱歉给您带来麻烦。 Visual Studio 2015 中存在一个错误,如果 VS 正在调试并启动 Chrome 开发工具,它会关闭 Chrome。发生这种情况的原因是因为开发工具向任何已附加的调试器发送断开连接信号,此时 VS 将此消息解释为 Chrome 已关闭的标志,因此它退出了进程。

我们在未来的 Cordova 更新中对此进行了修复(计划更新 4,应该 几周后)。同时,你可以通过在没有附加调试器的情况下从 VS 启动 Ripple 来解决这个问题。您可以通过按 ctrl + F5 或单击此菜单项来执行此操作:

再次感谢您报告此问题!请注意 - 其他问题与 Chrome 关闭无关。它们应该是良性的。

** 2015 年 11 月 3 日更新 ** 我们刚刚发布了修复此问题的更新 4。如果您仍然 运行 遇到问题,请告诉我。