Module: environment-internal-commands Synopsis: The internal-only commands provided by the environment Author: Andy Armstrong Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND /// Internal properties // Debugger property define class () end class ; define command-property debugger => (summary: "Debugger property", documentation: "Property to specify whether to crash into the debugger", type: ) end command-property debugger; define method show-property (context :: , property :: ) => () message(context, "Debugger: %s", if (context.context-server.server-debugger?) "on" else "off" end) end method show-property; define method set-property (context :: , property :: , debugger? :: , #key save?) => () context.context-server.server-debugger? := debugger? end method set-property; // Profile commands property define class () end class ; define command-property profile-commands => (summary: "Profile commands property", documentation: "Property to specify whether to profile commands", type: ) end command-property profile-commands; define method show-property (context :: , property :: ) => () message(context, "Profile commands: %s", if (context.context-server.server-profile-commands?) "on" else "off" end) end method show-property; define method set-property (context :: , property :: , profile-commands? :: , #key save?) => () context.context-server.server-profile-commands? := profile-commands? end method set-property; // Patching property define class () end class ; define command-property patching => (summary: "Patching property", documentation: "Property to specify whether to build patch DLLs", type: ) end command-property patching; define method show-property (context :: , property :: ) => () message(context, "Patching: %s", if (environment-variable("OPEN_DYLAN_SYSTEM_DEVELOPER") = "yes") "on" else "off" end) end method show-property; define method set-property (context :: , property :: , patching? :: , #key save?) => () environment-variable("OPEN_DYLAN_SYSTEM_DEVELOPER") := if (patching?) "yes" else "" end; end method set-property; /// Registry commands define command-group internal into environment (summary: "miscellaneous internal commands", documentation: "Miscellaneous internal-only commands.") property debugger; property patching; property profile-commands; end command-group internal;