src/scripttools/debugging/scripts/commands/step.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 = "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) {
}