To use mod_console, import the module into your Servoy 4 installation. Add the module to an existing solution (or it can be run standalone as a solution). To open the console, call "globals.mod_console_show()" from somewhere in your solution, and the console will appear in a dialog.
By default, the code is executed in the global scope (where the 'this' keyword evaluate to Servoy's global scope object), but optionally, you can select "Form" in the scope popup, and enter a form name to have the code evaluated in the scope of that form -- ie, as if it were a method defined on the form. This is accomplished by dynamically creating a method on the form in the runtime and running it.
mod_console is useful for exploring code and objects in your solution, inspecting objects in the runtime to help with debugging, or just generally playing around. Remember any operations performed are "real" and manipulation of data, etc., will be saved to the database.
mod_console is distributed under an MIT license, and is free for you to do with as you please.
- License: MIT
- Category: Module