390 likes | 485 Views
Action Diagram Debugger for Advantage 2E. Data Management and Application Development Session Code: DA160SN. Abstract. Haven't you always wanted an Action Diagram Debugger for your Advantage 2E development environment? Well, you don't have to wait much longer!
E N D
Action Diagram DebuggerforAdvantage 2E Data Management and Application Development Session Code: DA160SN
Abstract • Haven't you always wanted an Action Diagram Debugger for your Advantage 2E development environment? • Well, you don't have to wait much longer! • This session outlines this long awaited solution being developed by CA partner HawkBridge, and how it will be able to benefit your overall development experience using Advantage 2E.
Biography • Darryl MillingtonHawkBridge Pty Ltd • Darryl Millington is a senior software engineer and consultant specializing in the AS/400. He has been providing Advantage 2E, RPG and COBOL business systems development and support for over 16 years. His extensive technical experience includes all aspects of Advantage 2E programming, data modeling and environment support. He has been a regular speaker at conferences for more than 14 years.
Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary
The Generation Process • Involves a two phase process • Source generated from data model objects • OS/400 objects compiled from generated source Device File Data Model Source Help Generate Compile Program
The Generation Process • Generation Errors • If YGENSRC job failed see job log for messages • Scan for ‘ E* ‘ in generated source for messages Device File Data Model Generated Source Help Generate Compile Program
The Generation Process • Compilation Errors • Scan for *ERR in compile listings for messages Device File Data Model Generated Source Help Generate Compile Program
Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary
Current Unit Testing Tools • What is unit testing? • Check conformance to design specification • Not concerned with achieving user requirements • Conducted by the developer • Minor errors removed save substantial time and resource later on
Current Unit Testing Tools • Use YDOCMDLFUN to perform desk checking • Desk checking is still the most cost effective tool • Use YWRKF to setup test data • A data file utility is an essential tool to developers • Allows test data to be setup easily • Use Y2CALL to execute function • Prompts user with input parameters required • Allows developer to check returned parameters • Use DSPJRN to check file updates performed • Journals provide detailed audit trail of all file updates
Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Easily jump between different job lists.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Entries remain on the list even after successful compilation of the object. Enables unit testing activities after compilation.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Quickly position the list to the desired entry or select specific types of entries to display.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Extensive number of subfile options available to increase developer productivity. Similar to Edit Model Object List options.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Start action diagram debugger directly from this screen.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Check Action Diagram and Generated Source directly from this screen.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Extensive number of function keys available to increase developer productivity. Similar to Edit Model Object List function keys.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys Enter key no longer submits model generation requests.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F14=Submitted Jobs F17=Subset F18=Options F19=Build F20=Check F21=Convert F23=More Options F24=More Keys Change submit generation options without exiting this screen.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 31=Object Locks 32=Owner Locks 38=Check Function 39=Check Source 81=Object Reference 82=Owner Reference 91=Object Usage 92=Owner Usage __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F14=Submitted Jobs F17=Subset F18=Options F19=Build F20=Check F21=Convert F23=More Options F24=More Keys Build, Check and Convert model job list entries on the current list.
Edit Model Job List HFJKDFR DISPLAY Edit Model Job List 3/06/04 10:19:37 Model . . . . . : HBUTLMDL Job List . . . : QSECOFRMember added by QSECOFR. 2=Edit 4=Delete 5=Display 8=Details 10=Action Diagram 12=Debug 13=Parameters 14=Generate 15=Create 16=Y2CALL 17=Device Design __________ ____ ___ _______ Opt Member Type Act Status Text __ HBAVREP PF GEN Customer Physical file __ HBAVREL0 LF GEN Customer Update index __ HBAVREL1 LF GEN Customer Retrieval index __ HBJVSRRD DSPF CRT Select Company Division Select record __ HBJWEFRD DSPF CRT edt Edit file __ HBJ3PFRP PRTF CRT prtfil Print file __ HBJ4DFRD DSPF GEN HTWrk Customers Display file __ HBJ5E1RD DSPF GEN HTCfmDlt Customer Edit record(1 screen __ HBJ6E1RD DSPF GEN HTEdt Customer Edit record(1 screen __ HBJ7D1RD DSPF GEN HTDsp Customer Display record(1 scr More... F3=Exit F4=Prompt F5=Refresh F6=Messages F9=Command Line F10=Submit F11=Alternate View F23=More Options F24=More Keys
Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary
Check Function Action Diagram • Scans action diagrams for errors • Expands program to include all internal functions • Allow developer to view and edit the error • Finds most generation errors • Freeware version has been around many years • New version more robust and flexible
Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary
Check Generated Source • Scans source for generator errors and warning messages • Includes device and optional help source
Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary
Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _ .-- <<< _ . ...1=Select <<< _ . > 2=Edit <<< _ . .-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _ . ¦ > Check return code. On error, send message and ignore. <<< _ . ¦ .-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _ . ¦ ¦ * Error message already sent. Ignore return code. <<< _B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _ . ¦ ¦ <<< _ . ¦ ¦-...NOT PGM.*Return code is *Normal <<< _ . ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into
Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _ .-- <<< _ . ...1=Select <<< _ . > 2=Edit <<< _ . .-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _ . ¦ > Check return code. On error, send message and ignore. <<< _ . ¦ .-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _ . ¦ ¦ * Error message already sent. Ignore return code. <<< _B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _ . ¦ ¦ <<< _ . ¦ ¦-...NOT PGM.*Return code is *Normal <<< _ . ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Similar subfile options to existing Edit Action Diagram in View Mode.
Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _ .-- <<< _ . ...1=Select <<< _ . > 2=Edit <<< _ . .-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _ . ¦ > Check return code. On error, send message and ignore. <<< _ . ¦ .-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _ . ¦ ¦ * Error message already sent. Ignore return code. <<< _B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _ . ¦ ¦ <<< _ . ¦ ¦-...NOT PGM.*Return code is *Normal <<< _ . ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Similar function keys to existing STRDBG command in Source Debug mode.
Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _ .-- <<< _ . ...1=Select <<< _ . > 2=Edit <<< _ . .-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _ . ¦ > Check return code. On error, send message and ignore. <<< _ . ¦ .-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _ . ¦ ¦ * Error message already sent. Ignore return code. <<< _B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _ . ¦ ¦ <<< _ . ¦ ¦-...NOT PGM.*Return code is *Normal <<< _ . ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Current breakpoint line is highlighted and is identified by a ‘>’ next to the line.
Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _ .-- <<< _ . ...1=Select <<< _ . > 2=Edit <<< _ . .-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _ . ¦ > Check return code. On error, send message and ignore. <<< _ . ¦ .-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _ . ¦ ¦ * Error message already sent. Ignore return code. <<< _B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _ . ¦ ¦ <<< _ . ¦ ¦-...NOT PGM.*Return code is *Normal <<< _ . ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Breakpoint lines are red and identified by a ‘B’ next to the line.
Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _ .-- <<< _ . ...1=Select <<< _ . > 2=Edit <<< _ . .-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _ . ¦ > Check return code. On error, send message and ignore. <<< _ . ¦ .-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _ . ¦ ¦ * Error message already sent. Ignore return code. <<< _B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _ . ¦ ¦ <<< _ . ¦ ¦-...NOT PGM.*Return code is *Normal <<< _ . ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into Display variable prompts for context and field name. Variable value is then displayed relative to the viewed function.
Action Diagram Debugger HFKLDFR DISPLAY Debug Function 3/06/04 13:12:32 Function: HTWrk Customers Impl Name: HBJ4DFR File : Customer Type : DSPFIL F=Function, H=Hide, S=Show, N=Narrative, R=References, T=Top, U=Usages, Z=Zoom _ > USER: Process subfile record (Pre-confirm) _ .-- <<< _ . ...1=Select <<< _ . > 2=Edit <<< _ . .-CASE <<< _ >. ¦-RCD.*SFLSEL is Edit <<< _ B. ¦ HTEdt Customer - Customer * <<< _ . ¦ > Check return code. On error, send message and ignore. <<< _ . ¦ .-CASE <<< _ B. ¦ ¦-PGM.*Return code is *Error occured on CALL... <<< _ . ¦ ¦ * Error message already sent. Ignore return code. <<< _B. ¦ ¦ PGM.*Return code = CND.*Normal <<< _ . ¦ ¦ <<< _ . ¦ ¦-...NOT PGM.*Return code is *Normal <<< _ . ¦ ¦ Send error message - ' HTReturn code invalid' <<< More... F3=End Function F5=Refresh F6=Add/Remove Breakpoint F10=Step F11=Display Variable F12=Resume F13=Function Breakpoints F14=Functions F21=Command entry F22=Step into
Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary
Session Summary Unit Testing will be easier and more efficient • New Edit Model Job List function • Greatly improves developer productivity • Action Diagram Debugger • Negates need to read and understand HLL source
Session Evaluation Form After completing your session evaluation form ... ... please place it in the basket at the back of the room.