J2V8 icon indicating copy to clipboard operation
J2V8 copied to clipboard

Can not pause while script is running

Open zhangjiagege opened this issue 4 years ago • 1 comments

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.

zhangjiagege avatar Aug 26 '21 13:08 zhangjiagege

Hi @zhangjiagege,

What is ExecutorService? Without a simple snippet, it's difficult to find what is the problem. We are internally using the V8Inspector in our project and it works very well.

Could you please provide a simple code snippet to reproduce?

ahmadov avatar Sep 07 '21 09:09 ahmadov