KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Leave a backdoor into a database
PRODUCT: 4D | VERSION: 13.2 | PLATFORM: Mac & Win
Published On: March 29, 2013

It is very possible to make coding mistakes, such as an infinite loop in a startup method that happens so early in a database that it becomes almost impossible to get to the design mode. For this reason, it is a good practice to leave a "backdoor" into the design environment during the development of a database.

The code shown below can act as a back door when placed at the very top of the On Startup database method.

Since this is the first method to run in local and remote mode, it provides a developer with a way to break into the design mode at startup and then find the offending code and correct the problem.

Any combination of keys will work, just remember what the combination to the "backdoor" is.

If ((Macintosh command down | Windows Ctrl down) & Shift down)
   TRACE
End if