~ubuntu-branches/ubuntu/raring/qtscript-opensource-src/raring

« back to all changes in this revision

Viewing changes to src/scripttools/debugging/scripts/commands/next.qs

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-06 08:11:37 UTC
  • Revision ID: package-import@ubuntu.com-20130206081137-vipd9uzeow4achs2
Tags: upstream-5.0.1+dfsg
ImportĀ upstreamĀ versionĀ 5.0.1+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
name = "next";
 
2
 
 
3
group = "running";
 
4
 
 
5
shortDescription = "Step program, proceeding through subroutine calls";
 
6
 
 
7
longDescription = "Like the \"step\" command as long as subroutine calls do not happen;";
 
8
longDescription += "\nwhen they do, the call is treated as one instruction.";
 
9
longDescription += "\nIf a number N is given as argument, this will be done N times before execution is stopped.";
 
10
aliases = [ "n" ];
 
11
 
 
12
seeAlso = [ "step", "continue", "finish", "advance" ];
 
13
 
 
14
function execute() {
 
15
    var count = 1;
 
16
    if (arguments.length != 0) {
 
17
        var arg = arguments[0];
 
18
        // ### evaluate the expression in the current frame?
 
19
        var num = parseInt(arg);
 
20
        if (!isNaN(num) && (num >= 1))
 
21
            count = num;
 
22
    }
 
23
    scheduleStepOver(count);
 
24
};
 
25
 
 
26
function handleResponse(resp) {
 
27
}