summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/scripts/commands/next.qs
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripttools/debugging/scripts/commands/next.qs')
-rw-r--r--src/scripttools/debugging/scripts/commands/next.qs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/scripttools/debugging/scripts/commands/next.qs b/src/scripttools/debugging/scripts/commands/next.qs
new file mode 100644
index 0000000..bc37a01
--- /dev/null
+++ b/src/scripttools/debugging/scripts/commands/next.qs
@@ -0,0 +1,27 @@
+name = "next";
+
+group = "running";
+
+shortDescription = "Step program, proceeding through subroutine calls";
+
+longDescription = "Like the \"step\" command as long as subroutine calls do not happen;";
+longDescription += "\nwhen they do, the call is treated as one instruction.";
+longDescription += "\nIf a number N is given as argument, this will be done N times before execution is stopped.";
+aliases = [ "n" ];
+
+seeAlso = [ "step", "continue", "finish", "advance" ];
+
+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;
+ }
+ scheduleStepOver(count);
+};
+
+function handleResponse(resp) {
+}