src/scripttools/debugging/scripts/commands/step.qs
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Fri, 16 Apr 2010 11:39:52 +0300
branchRCL_3
changeset 9 740e5562c97f
parent 0 1918ee327afb
permissions -rw-r--r--
8b5beb2a553102639e9eb38c8f8f0f6775e8545b

name = "step";

group = "running";

shortDescription = "Step program until a new statement is reached";

longDescription = "If a number N is given as argument, this will be done N times before execution is stopped.";

aliases = [ "s" ];

seeAlso = [ "next" ];

function execute() {
    var count = 1;
    if (arguments.length != 0) {
        var arg = arguments[0];
        // ### evaluate the expression in the current frame?
        var num = parseInt(arg);
        if (!isNaN(num) && (num >= 1))
            count = num;
    }
    scheduleStepInto(count);
};

function handleResponse(resp) {
}