Top Banner
Tracing & Debugging in PeopleTools 8.4x Kai Markowitz Technical Lead ** This presentation has notes, don’t just view/print the slides ** April 2007 Student Administration
55

Tracing & Debugging in People Tools 8.4x CMS411

Nov 15, 2014

Download

Documents

Iouri Chadour

Detail overview of tracing and debugging techniques in PeopleSoft by Kai Markowitz from CSU
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tracing & Debugging in People Tools 8.4x CMS411

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

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

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

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

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

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

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

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

99

Student AdministrationTracing SQL & PeopleCode

Page 10: Tracing & Debugging in People Tools 8.4x CMS411

1010

Student AdministrationTracing SQL & PeopleCode

SQL Error

Page 11: Tracing & Debugging in People Tools 8.4x CMS411

1111

Student AdministrationTracing SQL & PeopleCode

PeopleCode Error

Page 12: Tracing & Debugging in People Tools 8.4x CMS411

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

1313

Student AdministrationTracing SQL & PeopleCode

Expanded PeopleCode Error

Page 14: Tracing & Debugging in People Tools 8.4x CMS411

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

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

1616

Student AdministrationTracing SQR Programs

Page 17: Tracing & Debugging in People Tools 8.4x CMS411

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

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

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

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

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

2222

Student AdministrationTracing Cobol Programs

PeopleSoft Cobol

Page 23: Tracing & Debugging in People Tools 8.4x CMS411

2323

Student AdministrationTracing Cobol Programs

Trace (Body)

Page 24: Tracing & Debugging in People Tools 8.4x CMS411

2424

Student AdministrationTracing Cobol Programs

Trace (Timings)

1.

3.

2.

Page 25: Tracing & Debugging in People Tools 8.4x CMS411

2525

Student AdministrationTracing Cobol Programs

SQL Error

Page 26: Tracing & Debugging in People Tools 8.4x CMS411

2626

Student AdministrationTracing Cobol Programs

“DMS” Error: Select Item

Page 27: Tracing & Debugging in People Tools 8.4x CMS411

2727

Student AdministrationTracing Cobol Programs

“DMS” Error: Bind Variable

Page 28: Tracing & Debugging in People Tools 8.4x CMS411

2828

Student AdministrationTracing Cobol Programs

Subscript out of range

Page 29: Tracing & Debugging in People Tools 8.4x CMS411

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

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

3131

Student Administration

Set RCCBL Redirect=1 in psappsrv.cfg.

Tracing Cobol Programs

Page 32: Tracing & Debugging in People Tools 8.4x CMS411

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

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

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

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

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

3737

Student Administration

Trace (Body)

Tracing App Engine Programs

Page 38: Tracing & Debugging in People Tools 8.4x CMS411

3838

Student Administration

Trace (SQL Timings)

Tracing App Engine Programs

Page 39: Tracing & Debugging in People Tools 8.4x CMS411

3939

Student Administration

Trace (PeopleCode Timings)

Tracing App Engine Programs

Page 40: Tracing & Debugging in People Tools 8.4x CMS411

4040

Student Administration

Trace (Totals & Environment)

Tracing App Engine Programs

Page 41: Tracing & Debugging in People Tools 8.4x CMS411

4141

Student Administration

SQL Error (Process Monitor)

Tracing App Engine Programs

Page 42: Tracing & Debugging in People Tools 8.4x CMS411

4242

Student Administration

SQL Error (Trace)

Tracing App Engine Programs

Page 43: Tracing & Debugging in People Tools 8.4x CMS411

4343

Student Administration

PeopleCode Error (Process Monitor)

Tracing App Engine Programs

Page 44: Tracing & Debugging in People Tools 8.4x CMS411

4444

Student Administration

PeopleCode Error (Trace)

Tracing App Engine Programs

Page 45: Tracing & Debugging in People Tools 8.4x CMS411

4545

Student Administration

Dynamic Call Error (Trace)

Tracing App Engine Programs

Page 46: Tracing & Debugging in People Tools 8.4x CMS411

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

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

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

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

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

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

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

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

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

5555

Student Administration