简体   繁体   English

如何在运行Ember 1.0 rc5的站点上使用Ember Inspector?

[英]How can I use Ember Inspector on a site running Ember 1.0 rc5?

I need to do some digging around in a site thats running Ember.JS, but they are using an older version of Ember (Ember.VERSION : 1.0.0-rc.5) so the Ember Inspector add-on for chrome doesn't play nice with it since it apparently only supports Ember >=rc7. 我需要在运行Ember.JS的站点中进行一些挖掘,但是他们使用的是Ember的较旧版本(Ember.VERSION:1.0.0-rc.5),因此chrome的Ember Inspector插件没有与它一起玩,因为它显然仅支持Ember> = rc7。 ("You are using an old version of Ember (< rc7).") Does anyone know of any legacy versions of the inspector, preferably for Chrome? (“您使用的是Ember的旧版本(<rc7)。”)是否有人知道检查器的任何旧版本,最好是Chrome? On the view tree and routes tabs it throws typeerrors, and in the Data tab it says Im using too old a version. 在视图树和“路由”选项卡上,它引发类型错误,在“数据”选项卡中,它说我使用的版本太旧。 Keeping in mind I cannot update the site to the latest Ember.js, what can I do? 请记住,我无法将网站更新为最新的Ember.js,该怎么办?

I'm afraid you are out of luck there. 恐怕你在那里运气不好。 The thing with the inspector is that it doesn't go poking into Ember looking at stuff behind the scenes, it talks to Ember through a well defined interface in ember-extension-support that was added in rc7. 检查员需要注意的是,它不会盯着Ember看幕后的东西,而是通过rc7中添加的ember-extension-support中定义明确的界面与Ember进行对话。 Rc7 was released on 14 Aug 2013 and the first ember inspector on 1 Sep 2013 (the first one tagged at least) so you probably won't find anything supporting earlier then rc7. Rc7于2013年8月14日发布,第一位余烬检查员于2013年9月1日发布(至少第一个添加了标签),因此您可能找不到比rc7更早的任何支持。

So unless you really can't upgrade to a newer Ember your only option would be some good ol' debugging with Chrome Inspector and breakpoints (and possibly a few debugger-statements and console.log if you at least control the code). 因此,除非您真的无法升级到较新的Ember,否则唯一的选择是使用Chrome Inspector和断点(如果可能至少要控制代码,则可能需要一些调试器语句和console.log)进行一些良好的调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM