src/scripttools/debugging/scripts/commands/backtrace.qs
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:40:16 +0200
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
permissions -rw-r--r--
Revision: 201003 Kit: 201007

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);
}