{"id":1348,"date":"2019-02-15T14:12:36","date_gmt":"2019-02-16T00:12:36","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=1331"},"modified":"2019-02-15T14:12:36","modified_gmt":"2019-02-16T00:12:36","slug":"print-a-trace-of-the-call-stack","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/print-a-trace-of-the-call-stack\/","title":{"rendered":"Print a trace of the call stack"},"content":{"rendered":"\n
In javascript you can print the call stack with something like this:<\/p>\n\n\n\n
function print_call_stack() {\n var stack = new Error().stack;\n console.log(\"PRINTING CALL STACK\");\n console.log( stack );\n}<\/code><\/pre>\n\n\n\n