KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Bypassing startup code
PRODUCT: 4D | VERSION: 11.5 | PLATFORM: Mac & Win
Published On: December 11, 2009

When troubleshooting an application it can be very helpful to bypass your On Startup code. In general, you will only want to do this when you are the Designer and are running your database interpreted to troubleshoot your code. You can call the following method at the very start of your On Startup database method to enable this functionality. This way your trace will only occur when running the application locally and interpreted.

It is also a great help to 4D Technical Support if you add this code to your database before giving it to 4D in case you are sending it in for troubleshooting.

 ` --[HEADERSTART]-------------------------------------
 ` Description:
 ` Call this method On Startup, in order to bypass
 ` startup code.
 ` --[HEADEREND]---------------------------------------


If ((Application type=4D Local Mode ) & (Is compiled mode=False))
   TRACE
End if