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

Can not pause while script is running #15

Open
zhangjiagege opened this issue Aug 26, 2021 · 1 comment
Open

Can not pause while script is running #15

zhangjiagege opened this issue Aug 26, 2021 · 1 comment

Comments

@zhangjiagege
Copy link

Hi,
When I running a script by ExecutorService.execute,cause this is a single thread executor,so before this script complete,I can not pause executing by V8Inspector.dispatchProtocolMessage("{ "id": 1, "method": "Debugger.pause" }"),actually,I can not do anything using dispatchProtocolMessage,because they're in diffrent thread,also can not use ExecutorService.execute to invoke V8Inspector.dispatchProtocolMessage because the script not complete this time.

@AlexTrotsenko
Copy link
Owner

@zhangjiagege indeed there are some limitations with current implementation, however they looks rather essential.

Have you tried to run sample app and debug usage of pause/resume method here? Does it works for you?

v8Messenger?.sendMessage(Protocol.Debugger.Pause, params, true)

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

No branches or pull requests

2 participants