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

Inspector messages are only processed while the JavaScript is executed. #11425

Closed
eugeneo opened this issue Feb 16, 2017 · 2 comments
Closed
Assignees
Labels
inspector Issues and PRs related to the V8 inspector protocol

Comments

@eugeneo
Copy link
Contributor

eugeneo commented Feb 16, 2017

  1. Run node --inspect -e "setInterval(() => console.log('A message'), 10000)"
  2. Connect some front-end.

Expected: Responsive debugging experience.
Actual: Debugging feels sluggish.

What happens behind the scenes is that the inspector messages are only processed when V8 loop is ran (e.g. as a response to a timer).

@eugeneo eugeneo self-assigned this Feb 16, 2017
@mscdex mscdex added the inspector Issues and PRs related to the V8 inspector protocol label Feb 16, 2017
@eugeneo
Copy link
Contributor Author

eugeneo commented Feb 16, 2017

I have a fix - but it is on top of another PR so I will post it once that one is in.

@eugeneo
Copy link
Contributor Author

eugeneo commented Feb 28, 2017

This is a duplicate of #11589, closing

@eugeneo eugeneo closed this as completed Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inspector Issues and PRs related to the V8 inspector protocol
Projects
None yet
Development

No branches or pull requests

2 participants