debug exposes a function; simply pass this function the name of your module, and it will return a decorated version of console.error for you to pass debug statements ...
You can use this code to run both Oracle 11 and Oracle 12 forms applications. It has been tested this on the following versions: 11.1.2.1, 11.1.2.2, 12.2.1.3, and 12 ...