Search notes:

.scriptrun

hello-world.js

"use strict"

var g_text;

function initializeScript() {
  //
  // initializeScript() is executed with both
  // .scriptrun and .scriptload
  //
     g_text = "Hello world.\n";

}

function invokeScript() {
  //
  // invokeScript() is like main() in C: it is invoked
  // when .scriptrun is used to execute a script
  //

     host.diagnostics.debugLog(g_text);
}

Loading and executing hello-world.js

0:003> .scriptrun C:/Users/Rene/hello-world.js
JavaScript script successfully loaded from 'C:\Users\Rene\hello-world.js
Hello world.
0:003> dx Debugger.State.Scripts
Debugger.State.Scripts
    hello-world

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759612690, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/development/Debugging/tools/commands/dot/script/run(64): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78