-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
diag-agendaIssues and PRs to discuss during the meetings of the diagnostics working group.Issues and PRs to discuss during the meetings of the diagnostics working group.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocoltimersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
Description
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:
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?
bajtos, Ginden, oliviertassinari, kirillgroshkov, roksui and 1 more
Metadata
Metadata
Assignees
Labels
diag-agendaIssues and PRs to discuss during the meetings of the diagnostics working group.Issues and PRs to discuss during the meetings of the diagnostics working group.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocoltimersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
