Tracing & Debugging in People Tools 8.4x CMS411
-
Upload
iouri-chadour -
Category
Documents
-
view
137 -
download
1
description
Transcript of Tracing & Debugging in People Tools 8.4x CMS411
![Page 1: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/1.jpg)
Tracing & Debugging in PeopleTools 8.4x
Kai MarkowitzTechnical Lead
** This presentation has notes, don’t just view/print the slides **
April 2007
Student Administration
![Page 2: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/2.jpg)
22
Student Administration
Introduction PeopleTools 8.4x Changes Tracing SQL & PeopleCode Tracing SQR Programs Tracing Cobol Programs Tracing App Engine Programs PeopleCode Debugging Questions
Agenda
![Page 3: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/3.jpg)
33
Student Administration
Introduction PeopleTools 8.4x ChangesPeopleTools 8.4x Changes Tracing SQL & PeopleCodeTracing SQL & PeopleCode Tracing SQR ProgramsTracing SQR Programs Tracing Cobol ProgramsTracing Cobol Programs Tracing App Engine ProgramsTracing App Engine Programs PeopleCode DebuggingPeopleCode Debugging QuestionsQuestions
Agenda
![Page 4: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/4.jpg)
44
Student Administration
IntroductionIntroduction PeopleTools 8.4x Changes Tracing SQL & PeopleCodeTracing SQL & PeopleCode Tracing SQR ProgramsTracing SQR Programs Tracing Cobol ProgramsTracing Cobol Programs Tracing App Engine ProgramsTracing App Engine Programs PeopleCode DebuggingPeopleCode Debugging QuestionsQuestions
Agenda
![Page 5: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/5.jpg)
55
Student Administration
No more pstools.exe on the local client!– CS 8.9 can’t be run in two-tier mode.
No tracing/debugging in two-tier mode.– App Engine programs are the only exception
to this. Trace files are on the application server.
– Examining the trace files requires access to the Unix server.
PeopleTools 8.4x Changes
![Page 6: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/6.jpg)
66
Student Administration
IntroductionIntroduction PeopleTools 8.4x ChangesPeopleTools 8.4x Changes Tracing SQL & PeopleCode Tracing SQR ProgramsTracing SQR Programs Tracing Cobol ProgramsTracing Cobol Programs Tracing App Engine ProgramsTracing App Engine Programs PeopleCode DebuggingPeopleCode Debugging QuestionsQuestions
Agenda
![Page 7: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/7.jpg)
77
Student Administration
These are very good trace settings to use in order to get a very “light” but useful trace.– Use a unique
User ID when tracing to make the trace file easier to read.
Tracing SQL & PeopleCode
![Page 8: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/8.jpg)
88
Student AdministrationTracing SQL & PeopleCode
Trace files are found in the PS_SERVDIR/LOGS directory of your application server.– PS_SERVDIR is a Unix environment variable.
![Page 9: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/9.jpg)
99
Student AdministrationTracing SQL & PeopleCode
![Page 10: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/10.jpg)
1010
Student AdministrationTracing SQL & PeopleCode
SQL Error
![Page 11: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/11.jpg)
1111
Student AdministrationTracing SQL & PeopleCode
PeopleCode Error
![Page 12: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/12.jpg)
1212
Student AdministrationTracing SQL & PeopleCode
If you find an area of PeopleCode that appears to be a performance issue or returns “unexpected” results, you can trace the same area again with an expanded set of trace options
![Page 13: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/13.jpg)
1313
Student AdministrationTracing SQL & PeopleCode
Expanded PeopleCode Error
![Page 14: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/14.jpg)
1414
Student Administration
IntroductionIntroduction PeopleTools 8.4x ChangesPeopleTools 8.4x Changes Tracing SQL & PeopleCodeTracing SQL & PeopleCode Tracing SQR Programs Tracing Cobol ProgramsTracing Cobol Programs Tracing App Engine ProgramsTracing App Engine Programs PeopleCode DebuggingPeopleCode Debugging QuestionsQuestions
Agenda
![Page 15: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/15.jpg)
1515
Student Administration
Append the –s flag to the Process Definition to see a list of the SQL in the program and execution counts .
Tracing SQR Programs
![Page 16: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/16.jpg)
1616
Student AdministrationTracing SQR Programs
![Page 17: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/17.jpg)
1717
Student Administration
Append the –debug flag to the Process Definition along with the debug flag(s) you want to see.
Tracing SQR Programs
![Page 18: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/18.jpg)
1818
Student Administration
The trace file can be accessed directly within the Process Monitor.
Tracing SQR Programs
![Page 19: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/19.jpg)
1919
Student Administration
IntroductionIntroduction PeopleTools 8.4x ChangesPeopleTools 8.4x Changes Tracing SQL & PeopleCodeTracing SQL & PeopleCode Tracing SQR ProgramsTracing SQR Programs Tracing Cobol Programs Tracing App Engine ProgramsTracing App Engine Programs PeopleCode DebuggingPeopleCode Debugging QuestionsQuestions
Agenda
![Page 20: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/20.jpg)
2020
Student Administration
Override the Parameters List in the Process Definition using the following template:– PRCSNAME ORACLE/%%DBNAME%%/%%OPRID%
%/%%OPRPSWD%%/%%RUNCNTLID%%/%%INSTANCE%%/255/%%DBFLAG%%
Tracing Cobol Programs
![Page 21: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/21.jpg)
2121
Student Administration
The trace file can be accessed directly within the Process Monitor.
Tracing Cobol Programs
![Page 22: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/22.jpg)
2222
Student AdministrationTracing Cobol Programs
PeopleSoft Cobol
![Page 23: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/23.jpg)
2323
Student AdministrationTracing Cobol Programs
Trace (Body)
![Page 24: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/24.jpg)
2424
Student AdministrationTracing Cobol Programs
Trace (Timings)
1.
3.
2.
![Page 25: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/25.jpg)
2525
Student AdministrationTracing Cobol Programs
SQL Error
![Page 26: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/26.jpg)
2626
Student AdministrationTracing Cobol Programs
“DMS” Error: Select Item
![Page 27: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/27.jpg)
2727
Student AdministrationTracing Cobol Programs
“DMS” Error: Bind Variable
![Page 28: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/28.jpg)
2828
Student AdministrationTracing Cobol Programs
Subscript out of range
![Page 29: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/29.jpg)
2929
Student Administration
Tracing Cobol executed from a RemoteCall in PeopleCode (e.g., pushbutton) is the most complex type of trace to setup in PeopleTools 8.4x.
Requires making changes to the psappsrv.cfg file on the Unix server.– Located in PS_SERVDIR directory.
Impacts everyone using the application. Be sure to turn off the trace as soon as you are done.
Tracing Cobol Programs
![Page 30: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/30.jpg)
3030
Student Administration
Set TraceSQL=255 in psappsrv.cfg*.*Note: The associated “Mask” value must
be set higher than this.
Tracing Cobol Programs
![Page 31: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/31.jpg)
3131
Student Administration
Set RCCBL Redirect=1 in psappsrv.cfg.
Tracing Cobol Programs
![Page 32: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/32.jpg)
3232
Student Administration
Cobol trace files can be found in the PS_SERVDIR/LOGS directory*.*Note: The .err file is only found if there is a Cobol error.
Tracing Cobol Programs
![Page 33: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/33.jpg)
3333
Student Administration
IntroductionIntroduction PeopleTools 8.4x ChangesPeopleTools 8.4x Changes Tracing SQL & PeopleCodeTracing SQL & PeopleCode Tracing SQR ProgramsTracing SQR Programs Tracing Cobol ProgramTracing Cobol Programs Tracing App Engine Programs PeopleCode DebuggingPeopleCode Debugging QuestionsQuestions
Agenda
![Page 34: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/34.jpg)
3434
Student Administration
App Engine programs rule! App Engine programs can be traced in
two-tier mode from the Application Designer.
The PeopleCode Debugger can be used with App Engine programs in two-tier mode from the Application Designer*.*Note: This is the only case in PeopleTools 8.4x where the
PeopleCode Debugger can be run in two-tier mode
Tracing App Engine Programs
![Page 35: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/35.jpg)
3535
Student Administration
Append the appropriate trace flag(s) to the Process Definition.• -TRACE 131 (App Engine trace, required)• -TOOLSTRACEPC 2048 (PCode trace, optional)
• -TOOLSTRACESQL 31 (SQL trace, optional)
Tracing App Engine Programs
![Page 36: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/36.jpg)
3636
Student Administration
The trace files can be accessed directly in process monitor.
Tracing App Engine Programs
![Page 37: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/37.jpg)
3737
Student Administration
Trace (Body)
Tracing App Engine Programs
![Page 38: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/38.jpg)
3838
Student Administration
Trace (SQL Timings)
Tracing App Engine Programs
![Page 39: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/39.jpg)
3939
Student Administration
Trace (PeopleCode Timings)
Tracing App Engine Programs
![Page 40: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/40.jpg)
4040
Student Administration
Trace (Totals & Environment)
Tracing App Engine Programs
![Page 41: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/41.jpg)
4141
Student Administration
SQL Error (Process Monitor)
Tracing App Engine Programs
![Page 42: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/42.jpg)
4242
Student Administration
SQL Error (Trace)
Tracing App Engine Programs
![Page 43: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/43.jpg)
4343
Student Administration
PeopleCode Error (Process Monitor)
Tracing App Engine Programs
![Page 44: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/44.jpg)
4444
Student Administration
PeopleCode Error (Trace)
Tracing App Engine Programs
![Page 45: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/45.jpg)
4545
Student Administration
Dynamic Call Error (Trace)
Tracing App Engine Programs
![Page 46: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/46.jpg)
4646
Student Administration
For two-tier tracing, you must run App Engine processes through the web browser at least once; you need to do this in order to have a Run Control ID and Process Instance Number*.
Tracing App Engine Programs
![Page 47: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/47.jpg)
4747
Student Administration
Turn on your Application Engine Trace flags in the Configuration Manager.
Tracing App Engine Programs
![Page 48: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/48.jpg)
4848
Student Administration
With the App Engine program open in the Application Designer, press the Run Program icon and enter the Run Control ID and Process Instance Number. Click ‘OK’ to run the App Engine process in two-tier mode.
Tracing App Engine Programs
Defaults
![Page 49: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/49.jpg)
4949
Student Administration
You can find the log files for the run in the C:\TEMP\PS\DBName directory*.*Note: The location of this file can vary depending on the
particular configuration of your workstation.
Tracing App Engine Programs
![Page 50: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/50.jpg)
5050
Student Administration
To debug PeopleCode in an App Engine program, turn on the PeopleCode Debugger Mode and set breakpoints before running.
Tracing App Engine Programs
![Page 51: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/51.jpg)
5151
Student Administration
IntroductionIntroduction PeopleTools 8.4x ChangesPeopleTools 8.4x Changes Tracing SQL & PeopleCodeTracing SQL & PeopleCode Tracing SQR ProgramsTracing SQR Programs Tracing Cobol ProgramsTracing Cobol Programs Tracing App Engine ProgramsTracing App Engine Programs PeopleCode Debugging QuestionsQuestions
Agenda
![Page 52: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/52.jpg)
5252
Student Administration
Online PeopleCode Debugging must be done three-tier from the Citrix desktop.– Login to App Designer with the name of the
application server.
PeopleCode Debugging
![Page 53: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/53.jpg)
5353
Student Administration
Debugging swaps back and forth between browser session and App Designer*.*Note: You must login to both sessions with the same Userid.
PeopleCode Debugging
![Page 54: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/54.jpg)
5454
Student Administration
IntroductionIntroduction PeopleTools 8.4x ChangesPeopleTools 8.4x Changes Tracing SQL & PeopleCodeTracing SQL & PeopleCode Tracing SQR ProgramsTracing SQR Programs Tracing Cobol ProgramsTracing Cobol Programs Tracing App Engine ProgramsTracing App Engine Programs PeopleCode DebuggingPeopleCode Debugging Questions
Agenda
![Page 55: Tracing & Debugging in People Tools 8.4x CMS411](https://reader033.fdocuments.net/reader033/viewer/2022061116/546662f4b4af9fff458b4856/html5/thumbnails/55.jpg)
5555
Student Administration