Skip to content

Missing async callstacks on setTimeout #11370

Closed
@roblourens

Description

@roblourens

When debugging Chrome, you can have code like

setTimeout(() => {
  console.log('timeout');
})

and if you pause in the timeout handler and enable async callstacks in Chrome DevTools, you'll see the callstack that lead to calling setTimeout:

image

But if I debug the same code in Node using the inspector protocol, I don't see async callstacks in this case. But I do see async callstacks for Promises. So it must have something to do with Node's timer implementation. Is there any way that it could surface async callstacks too?

Metadata

Metadata

Assignees

Labels

diag-agendaIssues and PRs to discuss during the meetings of the diagnostics working group.feature requestIssues that request new features to be added to Node.js.inspectorIssues and PRs related to the V8 inspector protocoltimersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions