diff options
Diffstat (limited to 'src/scripttools/debugging/scripts/commands/step.qs')
-rw-r--r-- | src/scripttools/debugging/scripts/commands/step.qs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/scripttools/debugging/scripts/commands/step.qs b/src/scripttools/debugging/scripts/commands/step.qs new file mode 100644 index 0000000..1aacec0 --- /dev/null +++ b/src/scripttools/debugging/scripts/commands/step.qs @@ -0,0 +1,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) { +} |