5 ms·
The common answer is a stack trace. In JavaScript you can get that any time and any where with: new Error().stack; Stack traces lose their helpfulness in
by austin-cheney 1y ago
The common answer is a stack trace. In JavaScript you can get that any time and any where with:
new Error().stack;
Stack traces lose their helpfulness in applications with high frequency network traffic because the network buffer will likely not be the start of flow control but a stack trace cannot run deeper than that.
- shivajikobardan 1y agoI realized I do not understand how function calls use stack (exactly and accurately I mean I can imagine some stack push pop happening). Any guidance for resources? I seeked in google but turns out most materials are related to assembly language programming which I have no idea about.
- austin-cheney 1y agoA stack trace just lists the steps an application went through by calls to non primitive references. This varies pretty significantly by language. An item in the stack is a step in memory. That is about as much as I know.
- brazukadev 1y ago// new Error().stack; or just console.trace()