Adds an Ember tab to the browser's Developer Tools that allows you to inspect Ember objects in your application.
翻译准备中
插件JavaScript · SCSSGitHub @emberjs自行安装运营者未确认
试用过了吗? 点一下就好,无需登录。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Adds an Ember tab to the browser's Developer Tools that allows you to inspect Ember objects in your application.
Install the extension from the Chrome Web Store.
OR:
pnpm installpnpm build to build the dist directorychrome://extensions in ChromeDeveloper mode is checkeddist/chrome folder in the cloned repoInstall the Firefox addon.
OR:
pnpm installpnpm build to build the dist directoryabout:debugging#/runtime/this-firefox in Firefoxdist/firefox/manifest.json file in the cloned repopnpm installpnpm build to build the dist directorychrome://extensions in OperaDeveloper mode is checkeddist/chrome folder in the cloned repojavascript: (function() { var s = document.createElement('script'); s.src = '//ember-extension.s3.amazonaws.com/dist_bookmarklet/load_inspector.js'; document.body.appendChild(s); }());
Internet explorer will open an iframe instead of a popup due to the lack of support for cross-origin messaging.
For development:
pnpm serve:bookmarkletjavascript: (function() { var s = document.createElement('script'); s.src = 'http://localhost:9191/bookmarklet/load_inspector.js'; document.body.appendChild(s); }());
Or to do this more easily in the future, create a new bookmark in your browser, and copy the above script as the URL.
The expected behavior is a new window opening with the URL http://localhost:9191/bookmarklet/<pane-root>/index.html?inspectedWindowURL=<inspected-app-url>, running your local ember-inspector. The content should be the same as the one you see when using the published extension, but not properly styled.
If your Ember app is running on Vite, you may need @embroider/legacy-inspector-support to get things working in your app.
The Ember Inspector uses window messages, so if you are using window messages in your application code, make sure you verify the sender and add checks to your event listener so as not to conflict with the inspector's messages.
Want to work on inspector? See DEVELOPMENT.md