Read the APPX process stack
Use the process stack to find the caller when a process starts from more than one place. Level 1 is the process currently running.
Trace a call
In the ILF debugger, choose Direct Menu 1 (GO 1). Read down from level 1 to find the caller. For each frame, compare the application, version, process type, name and invocation type.
ECR ENTRY (HISTORY) (COMMENTS) 0000200.001.0000000 Inp Option Intercept -------------------------------------------------------------------- | Stack Trace | | | | Lvl# Ap/Ver Proc Type Process Name Invoked As | | 1 CTS 00 INPUT ECR ENTRY (HISTORY) (COMMENTS) SUBPROCESS | | 2 CTS 00 INPUT ECR ENTRY (HISTORY) SUBPROCESS | | 3 CTS 00 INPUT ECR ENTRY DETACHED | | 4 CTS 00 MENU MAIN MENU DETACHED | | 5 0LA 00 JOB SELECT DATABASE SUBPROCESS | | 6 0AD 00 INPUT APPLICATION DESIGN DETACHED | | 7 0LA 00 MENU APPX MENU DETACHED | | | | | --------------------------------------------------------------------For example, a main menu can call a submenu, then a JOB, an INPUT and a child INPUT. This chain is one branch of the process family. In this stack, the current process is ECR ENTRY (HISTORY) (COMMENTS). APPX MENU at the bottom started the chain. The Invoked As column shows where the scope changes. See Interprocess communication for sharing rules.
Open the debugger during a run
In the classic Application Design menu, choose option 4, Run Test Database. To run a process from its process editor, use Option 99. When the ILF debugger stops, use Direct Menu 1 (GO 1) to display the stack. The interrupt keys are listed below. If you have no TRAP to get you into the ILF editor in your current process, don't despair! In character mode you can press your interrupt key (generally Control-C), then ENTER. The ILF editor will stop at the next available ILF statement. From there, you can GO 1, to see your current Process Stack! In Release 5.1 & higher there is an API .UTIL LOAD STACK FILE which will populate the --- STACK file for you. You can then read the --- STACK file for debugging or other purposes. In Release 5.3 and higher you can break into a running program when using the APPX Desktop or HTML clients by pressing Control+END. 'END' refers to the key labelled END on your keyboard, not the APPX logical END key. This only works if you started the program from Application Design, or if you have APPX_DB_TRAPS set.Process stack in the debugger Download the 4.1 Designer Reference (Windows Help)