Promise Tab in Chrome DevTools

2020-06-08 12:55发布

问题:

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