Ripple Emulator / Chrome浏览器在我尝试打开开发人员工具时关闭 [英] Ripple Emulator / Chrome Browser closing when I attempt to open developer tools

查看:1375
本文介绍了Ripple Emulator / Chrome浏览器在我尝试打开开发人员工具时关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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


源映射' angular-sanitize.min.js.map'for file
'mdha:



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



**更新11/3/2015 **
我们刚刚发布了更新4,这解决了这个问题。如果您仍遇到问题,请告诉我们。


I am trying to use Ripple inside Visual Studio 2015 to debug my app. I want to view Local Storage, but when I open developer tools, Chrome closes and the Javascript console displays this error:

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

How can I get rid of the error?

Edit

I created a new project using File->New Project->Javascript->Apache Cordova Apps->Ionic Tabs App. I was presented with a dialog:

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?

Answer "No" and the problem I had occurs. Answer "Yes" and it doesn't.....so I guess I need to figure out how to get Visual Studio to give me the dialog again, or work out how to change it manually....

EDIT 2 I tried this:

  1. Right click on the project -> unload
  2. Right click again -> Edit MyProject.jsproj
  3. Changed <TypeScriptToolsVersion>1.4</TypeScriptToolsVersion> to 1.6

No luck yet...

EDIT 3 I just realised that the message regarding the source map 'angular-sanitize.min.js.map' not being read is always displayed when I close the browser window, not just when it crashes. So the message is probably not much help for this particular issue.

EDIT 4 I copied my App into the new, working project created using Ionic Tabs App and I still get the problem. So probably two different root causes.

解决方案

I'm sorry for your trouble. There is a bug in Visual Studio 2015 where VS will close Chrome if it is debugging and the Chrome Dev Tools are brought up. The reason this happens is because the Dev Tools send a disconnect signal to any debugger that is already attached, and at the moment VS interprets this message as a sign that the Chrome has closed, so it exits the process.

We have a fix for this coming out in a future Cordova Update (it is slated for Update 4 which should be in a few weeks). In the meantime, you can get around the issue by launching Ripple from VS without the debugger attached. You can either do this by pressing ctrl + F5, or by clicking this menu item:

Thanks again for reporting this issue! Please note - the other issues are unrelated to Chrome closing. They should be benign.

** Update 11/3/2015 ** We just released update 4 which fixes this problem. Please let me know if you still run into problems.

这篇关于Ripple Emulator / Chrome浏览器在我尝试打开开发人员工具时关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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