1 / 39

Action Diagram Debugger for Advantage 2E

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!

vienna
Download Presentation

Action Diagram Debugger for Advantage 2E

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Action Diagram DebuggerforAdvantage 2E Data Management and Application Development Session Code: DA160SN

  2. 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.

  3. 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.

  4. Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary

  5. 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

  6. 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

  7. The Generation Process • Compilation Errors • Scan for *ERR in compile listings for messages Device File Data Model Generated Source Help Generate Compile Program

  8. Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary

  9. 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

  10. 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

  11. Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary

  12. 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

  13. 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.

  14. 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.

  15. 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.

  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. 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.

  21. 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.

  22. 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.

  23. 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

  24. Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary

  25. 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

  26. Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary

  27. Check Generated Source • Scans source for generator errors and warning messages • Includes device and optional help source

  28. Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary

  29. 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

  30. 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.

  31. 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.

  32. 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.

  33. 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.

  34. 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.

  35. 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

  36. Agenda • The Generation Process • Current Unit Testing Tools • Edit Model Job List • Check Function Action Diagram • Check Generated Source • Action Diagram Debugger • Session Summary

  37. 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

  38. Questions & Answers

  39. Session Evaluation Form After completing your session evaluation form ... ... please place it in the basket at the back of the room.

More Related