katie/data/scripts/backtrace.qs
Ivailo Monev a45f8b3bd8 convert resources to static data
images are in PNG format for now but that is likely to change

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-29 10:17:54 +03:00

26 lines
465 B
Text

name = "backtrace";
group = "stack";
shortDescription = "Print backtrace of stack frames";
longDescription = "";
aliases = [ "bt" ];
seeAlso = [ "frame", "info" ];
function execute() {
scheduleGetBacktrace();
};
function handleResponse(resp) {
var strings = resp.result;
var msg = "";
for (var i = 0; i < strings.length; ++i) {
if (i > 0)
msg += "\n";
msg += "#" + i + " " + strings[i];
}
message(msg);
}