I use these two smart icons to easily toggle the "Debug LotusScript" action. It uses an environment variable called "UserDebugMode". When I first start the Notes client, the first thing I do is click the "Set Debug LotusScript Off" smart icon just to make sure it's off.
"Set Debug LotusScript Off" Smart Icon
- @Environment("UserDebugMode";"0")
"Toggle Debug LotusScript" Smart Icon -
@Command([DebugLotusScript]);
@If(@Environment("UserDebugMode") = "0";
@Do(
@Environment("UserDebugMode";"1");
@Prompt([OK];"Debug ON";"Debug
mode is now ON"));
@Do(
@Environment("UserDebugMode";"0");
@Prompt([OK];"Debug OFF";"Debug
mode is now OFF")))
This was first published in April 2003