src/scripttools/debugging/scripts/commands/step.qs
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 name = "step";
       
     2 
       
     3 group = "running";
       
     4 
       
     5 shortDescription = "Step program until a new statement is reached";
       
     6 
       
     7 longDescription = "If a number N is given as argument, this will be done N times before execution is stopped.";
       
     8 
       
     9 aliases = [ "s" ];
       
    10 
       
    11 seeAlso = [ "next" ];
       
    12 
       
    13 function execute() {
       
    14     var count = 1;
       
    15     if (arguments.length != 0) {
       
    16         var arg = arguments[0];
       
    17         // ### evaluate the expression in the current frame?
       
    18         var num = parseInt(arg);
       
    19         if (!isNaN(num) && (num >= 1))
       
    20             count = num;
       
    21     }
       
    22     scheduleStepInto(count);
       
    23 };
       
    24 
       
    25 function handleResponse(resp) {
       
    26 }