Promise Tab in Chrome DevTools

亡梦爱人 提交于 2020-01-01 04:12:09

问题


I cannot see the promise Tab in Chrome Devtools, as in the SS 1 below, Could anyone help me in bringing that one in normal chrome not in canary. Thanks in advance for any help.

My Dev tool looks like the one in SS2.


回答1:


Beware!

As of April 2016, They have decided to remove the Promise Inspector experiment from Dev Tools, according to this commit.

until then

  • Go to chrome://flags and enable Developer Tools experiments.
  • Relaunch Chrome.
  • Then open dev tools
  • Go to settings -> experiments
  • check promise inspector
  • Close and open dev tools.
  • Press esc



回答2:


Something similar may be available soon, because Chrome 62 adds an API for querying objects:

queryObjects(Promise) returns all Promises

more info in the release notes: https://developers.google.com/web/updates/2017/08/devtools-release-notes



来源:https://stackoverflow.com/questions/32632670/promise-tab-in-chrome-devtools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!