Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide experimental access to V8's Inspector API #445

Open
wants to merge 6 commits into
base: php7
Choose a base branch
from

Conversation

stesie
Copy link
Member

@stesie stesie commented Aug 22, 2020

This PR allows low-level access to V8's Inspector API, primarily to get call count/coverage data from it.

Theoretically it's possible to connect to V8's debugger this way. However I suppose this would cause problems, if you set a breakpoint in your JavaScript code, since that would block PHP code execution also. So I'd assume, in order to allow proper access to the debugger, further changes will be needed.

Also this only allows for programatic access to the inspector backend, i.e. it does not allow out-of-the-box connections from Chrome DevTools via websockets. However it should now be possible to implement a websocket server in PHP, that bridges messages with the V8Inspector instance (and then connect Chrome DevTools to that one).

A simple example regarding programatic access is shown in the README file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants