summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/scripts/commands/print.qs
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripttools/debugging/scripts/commands/print.qs')
-rw-r--r--src/scripttools/debugging/scripts/commands/print.qs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/scripttools/debugging/scripts/commands/print.qs b/src/scripttools/debugging/scripts/commands/print.qs
new file mode 100644
index 0000000..9b98d16
--- /dev/null
+++ b/src/scripttools/debugging/scripts/commands/print.qs
@@ -0,0 +1,23 @@
+// ### exactly the same as eval, but provided for convenience
+
+name = "print";
+
+group = "status";
+
+shortDescription = "Print value of an expression";
+
+longDescription = "";
+
+argumentTypes = [ "script" ];
+
+function execute() {
+ if (arguments.length == 0) {
+ message("Missing argument (expression).");
+ return;
+ }
+ setEvaluateAction(0);
+ scheduleEvaluate(getCurrentFrameIndex(), arguments[0], "console input (" + Date() + ")");
+};
+
+function handleResponse(resp, id) {
+}