MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_context_print_stack_stderr

Function gjs_context_print_stack_stderr

gjs/stack.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "gjs/context.h"
24
25void gjs_context_print_stack_stderr(GjsContext* self) {
26 auto* cx = static_cast<JSContext*>(gjs_context_get_native_context(self));
27
28 g_printerr("== Stack trace for context %p ==\n", self);
29 js::DumpBacktrace(cx, stderr);
30}
31
32void gjs_dumpstack() {
33 Gjs::SmartPointer<GList> contexts{gjs_context_get_all()};

Callers 1

gjs_dumpstackFunction · 0.85

Calls 1

Tested by

no test coverage detected