Solution #3:

Control the debugging with a cookie

Steps:

  1. How to toggle the cookie on and off
  2. How to check the cookie in REXX