summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/scripts/commands/step.qs
blob: 1aacec029119883b7622a7b9e753609d016cfdd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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) {
}