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

Debugging: no simple way to get a list of pending async computations #17862

Closed
reverofevil opened this issue Dec 25, 2017 · 4 comments
Closed
Labels
feature request Issues that request new features to be added to Node.js. inspector Issues and PRs related to the V8 inspector protocol

Comments

@reverofevil
Copy link

reverofevil commented Dec 25, 2017

  • Version: v8.9.3 / any
  • Platform: Windows 8.1 x64 / any
  • Subsystem: debugger API

Consider the case when some library created a long setTimeout or any setInterval and didn't cancel it when finished some main action. There should be a tab in Inspector (and corresponding debugger API) to show the list of pending asynchronous computations, so that it's clear why Node.js process is unable to shut down.

@Trott
Copy link
Member

Trott commented Dec 25, 2017

Ref: #1128

@Trott Trott added the feature request Issues that request new features to be added to Node.js. label Dec 25, 2017
@Trott
Copy link
Member

Trott commented Dec 25, 2017

@nodejs/v8-inspector

@joyeecheung
Copy link
Member

Technically speaking the requested information is already exposed via process._getActiveHandles(), the missing part is probably a new domain in the inspector protocol that integrate this information.

Note that with #14901 and nodejs/llnode#122 it's possible to get that information from a core dump or a running process attached by lldb.

@refack refack added the inspector Issues and PRs related to the V8 inspector protocol label Nov 11, 2018
@refack
Copy link
Contributor

refack commented Nov 11, 2018

@refack refack closed this as completed Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. inspector Issues and PRs related to the V8 inspector protocol
Projects
None yet
Development

No branches or pull requests

4 participants