I know how to get a stack trace for the currently executing "thread" (console.trace or new Error().stack), but how can I get a stack trace for all the different "threads" in a running Node.js process? Basically I want something like thread apply all bt in GDB.
Note: I am aware that Node is single-threaded and doesn't really have multiple threads. But there are still multiple "logical threads" that can coexist at the same time - for instance if a webserver is has multiple requests that are in the process of being served, but several of them were descheduled in an async function call or are blocked waiting on i/o.