Debugging Barbara Unverferth 1 Techniques March 2002.

65
Debugging Barbara Unverferth 1 Techniques March 2002
  • date post

    19-Dec-2015
  • Category

    Documents

  • view

    217
  • download

    4

Transcript of Debugging Barbara Unverferth 1 Techniques March 2002.

Page 1: Debugging Barbara Unverferth 1 Techniques March 2002.

Debugging

Barbara Unverferth

1

Techniques

March 2002

Page 2: Debugging Barbara Unverferth 1 Techniques March 2002.

2

Agenda

Debugging difficulties with today’s technology

How to break a problem apart

What tools are available to you?

Problem Isolation System

Demo of Problem Isolation System and Support Site search capabilities

Page 3: Debugging Barbara Unverferth 1 Techniques March 2002.

3

Debugging Difficulties with Today’s Technology

The “olden days”: COBOL to VSAM on MVS

Today:

Multi-tiered

Multi-vendor

Multi-products

Communications

DBMS’s

Security

Different people supporting different aspects

Page 4: Debugging Barbara Unverferth 1 Techniques March 2002.

4

How to Break a Problem Apart

-12 data receive error, Error in transferring data, ODIN_10, or ODIN_4….”Where do I start?”

Identify the components and pull them apart

What is on each platform?

If existing application, what changed?

Page 5: Debugging Barbara Unverferth 1 Techniques March 2002.

5

What Tools are Available for You?

Rdaapp, API Query Tool

Edastart –t, Interactive Agent, TSCOM3 in batch on MVS

Tracing

Turning retrieval off

Page 6: Debugging Barbara Unverferth 1 Techniques March 2002.

6

What Tools are Available for You?

Rdaapp, API Query Tool – NT:

Page 7: Debugging Barbara Unverferth 1 Techniques March 2002.

7

What Tools are Available for You?

Rdaapp, API Query Tool – UNIX, MVS, VM:<<< RDAAPP : Initializing EDA/API SQL, Version 5, Release 1 >>>

Default communications config file : /u2/css/ibi/srv51/ffs/etc/odin.cfg

Override? (Press enter for default) :

<<< Initialization Successful >>>

Enter User Name : Enter Password :

Enter server name, number, SELF, URL or ? (Hit return for 'LOOPBACK') :

<<< Successfully connected to synchronous server LOOPBACK >>>

Enter Command (? for command help):

Page 8: Debugging Barbara Unverferth 1 Techniques March 2002.

8

What Tools are Available for You?

RDAAPP commands: A Attach(Bind) paramters to prepared

statement B Browse... C Commit D Describe <table> E Execute <prepared statement handle> F Issue FOCUS REQUEST <request>; I Set EDAINFO display <ON or OFF> M Set fetch mode to A[lpha] or B[inary] O Set fetch mode to one row at a time P Prepare SQL <statement>; Q Disconnect R Rollback S Execute SQL <statement> or ? for help; T Set trace display <ON or OFF> U Unprepare <prepared statement handle> V Inspect/Set <EDA variable number> [<new

setting>] X Execute RPC <name> [<parameters>] or ? for

help

Page 9: Debugging Barbara Unverferth 1 Techniques March 2002.

9

What Tools are Available for You?

Edastart –t, Interactive Agent, TSCOM3 in batch on MVS

Page 10: Debugging Barbara Unverferth 1 Techniques March 2002.

10

What Tools are Available for You?

Edastart –t, Interactive Agent, TSCOM3 in batch on MVS

Allows you to test without using any communications or workload management

FOCUS-like environment

Dialogue manager commands must be in a FOCEXEC

Page 11: Debugging Barbara Unverferth 1 Techniques March 2002.

11

What Tools are Available for You?

Edastart –t, Interactive Agent, TSCOM3 in batch on MVS

Any errors generated from profiles should be shown here

Not full screen mode so cannot use TED or CRTFORM

FIN to exit

Page 12: Debugging Barbara Unverferth 1 Techniques March 2002.

12

What Tools are Available for You?

Tracing Tool on NT:

Page 13: Debugging Barbara Unverferth 1 Techniques March 2002.

13

What Tools are Available for You?

Tracing Components SET TRACEON=component Can be placed in global or user profiles, Remote

Procecure Call More detail at: http://techsupport.ibi.com/app/css_web_tool/Trace_General.htm

To trace at a user level: SET TRACEUSER=ON

How to get just the SQL SET TRACEON=STMTRACE Extract the SQL generated and running in native

SQL tool How to turn off other components:

SET TRACEOFF=ALL

Page 14: Debugging Barbara Unverferth 1 Techniques March 2002.

14

What Tools are Available for You?

Tracing Hub and Sub

Trace commands can be put in profile at each server

If using –REMOTE BEGIN:

-REMOTE BEGIN

SET TRACEOFF=ALL

SET TRACEON=STMTRACE

SET TRACEUSER=ON

TABLE FILE …..

Page 15: Debugging Barbara Unverferth 1 Techniques March 2002.

15

What Tools are Available for You?

Turning retrieval off:

SET XRETRIEVAL = OFF

Good for testing problems that occur prior to or after (and not related to) data retrieval

Do not need to have DBMS table created

Page 16: Debugging Barbara Unverferth 1 Techniques March 2002.

16

An Example

-12 from an application when running a Remote Procedure Call (RPC)

First, remove application (MS Acccess, etc)

Test with API Query Tool (rdaapp) from client and at server level

Does the problem still occur?

If yes, then test with Interactive Agent

(edastart –t)

You will sometimes get a more descriptive error here

Page 17: Debugging Barbara Unverferth 1 Techniques March 2002.

17

Another Example

Here is our configuration:

Windows NT Microsoft Access ODBC Hub TCP/IP HP-UX Sub Oracle

Page 18: Debugging Barbara Unverferth 1 Techniques March 2002.

18

Let’s remove these pieces one by one:

Remove components one at a time

Page 19: Debugging Barbara Unverferth 1 Techniques March 2002.

19

First we take out Microsoft Access, test using ODBC Query Tool:

Remove Microsoft Access

Page 20: Debugging Barbara Unverferth 1 Techniques March 2002.

20

ODBC Test Tool

Page 21: Debugging Barbara Unverferth 1 Techniques March 2002.

21

If the problem still occurs, we can remove ODBC and test

using the API client query tool to access the hub directly

Remove ODBC

Page 22: Debugging Barbara Unverferth 1 Techniques March 2002.

22

API Test Tool

Page 23: Debugging Barbara Unverferth 1 Techniques March 2002.

23

If problem still exists, we can remove the hub and

test directly on the sub, using the EDA client query tool

Remove Hub, go directly to Sub

Page 24: Debugging Barbara Unverferth 1 Techniques March 2002.

24

<<< RDAAPP : Initializing EDA/API SQL, Version 5, Release 1 >>>

Default communications config file : /u2/css/ibi/srv51/ffs/etc/odin.cfg

Override? (Press enter for default) :

<<< Initialization Successful >>>

Enter User Name :

Enter Password :

Enter server name, number, SELF, URL or ? (Hit return for 'LOOPBACK') :

<<< Successfully connected to synchronous server LOOPBACK >>>

Enter Command (? for command help):

RDAAPP on HP-UX Sub

Page 25: Debugging Barbara Unverferth 1 Techniques March 2002.

25

If problem still exits, we can remove the

communications and test the agent directly using the Interactive Agent

Remove Communications

Page 26: Debugging Barbara Unverferth 1 Techniques March 2002.

26

RELEASE = R720510B

GEN_NUM = 12.05

SOURCE_DATE = 10/30/2001 17:04:49

BUILD_DATE = 10/31/2001 01:26:14

INSTALLATION_DATE= 10/31/2001 01:54:29

>>

Edastart –t on HP-UX

Page 27: Debugging Barbara Unverferth 1 Techniques March 2002.

27

Using the Interactive Agent, we are able to see the

underlying error:

Problem found!

Page 28: Debugging Barbara Unverferth 1 Techniques March 2002.

28

Problem Isolation System

Web-based application

Walks you through the components

Provides information on how to test at each level

Shows how to run test tools

Explains how to turn on tracing

Located on support site at:

http://techsupport.ibi.com/app/css_web_tool/default.htm

Page 29: Debugging Barbara Unverferth 1 Techniques March 2002.

29

Demonstration of Problem Isolation System and Support Site Search Capabilities

Live demo but in case that doesn’t work…

Page 30: Debugging Barbara Unverferth 1 Techniques March 2002.

30

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 31: Debugging Barbara Unverferth 1 Techniques March 2002.

31

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 32: Debugging Barbara Unverferth 1 Techniques March 2002.

32

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 33: Debugging Barbara Unverferth 1 Techniques March 2002.

33

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 34: Debugging Barbara Unverferth 1 Techniques March 2002.

34

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 35: Debugging Barbara Unverferth 1 Techniques March 2002.

35

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 36: Debugging Barbara Unverferth 1 Techniques March 2002.

36

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 37: Debugging Barbara Unverferth 1 Techniques March 2002.

37

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 38: Debugging Barbara Unverferth 1 Techniques March 2002.

38

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 39: Debugging Barbara Unverferth 1 Techniques March 2002.

39

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 40: Debugging Barbara Unverferth 1 Techniques March 2002.

40

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 41: Debugging Barbara Unverferth 1 Techniques March 2002.

41

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 42: Debugging Barbara Unverferth 1 Techniques March 2002.

42

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 43: Debugging Barbara Unverferth 1 Techniques March 2002.

43

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 44: Debugging Barbara Unverferth 1 Techniques March 2002.

44

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 45: Debugging Barbara Unverferth 1 Techniques March 2002.

45

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 46: Debugging Barbara Unverferth 1 Techniques March 2002.

46

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 47: Debugging Barbara Unverferth 1 Techniques March 2002.

47

Demonstration of Problem Isolation System and Support Site Search Capabilities

Support site

Page 48: Debugging Barbara Unverferth 1 Techniques March 2002.

48

Demonstration of Problem Isolation System and Support Site Search Capabilities

Support site

Page 49: Debugging Barbara Unverferth 1 Techniques March 2002.

49

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 50: Debugging Barbara Unverferth 1 Techniques March 2002.

50

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 51: Debugging Barbara Unverferth 1 Techniques March 2002.

51

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 52: Debugging Barbara Unverferth 1 Techniques March 2002.

52

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 53: Debugging Barbara Unverferth 1 Techniques March 2002.

53

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 54: Debugging Barbara Unverferth 1 Techniques March 2002.

54

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 55: Debugging Barbara Unverferth 1 Techniques March 2002.

55

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 56: Debugging Barbara Unverferth 1 Techniques March 2002.

56

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 57: Debugging Barbara Unverferth 1 Techniques March 2002.

57

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 58: Debugging Barbara Unverferth 1 Techniques March 2002.

58

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 59: Debugging Barbara Unverferth 1 Techniques March 2002.

59

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 60: Debugging Barbara Unverferth 1 Techniques March 2002.

60

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 61: Debugging Barbara Unverferth 1 Techniques March 2002.

61

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 62: Debugging Barbara Unverferth 1 Techniques March 2002.

62

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 63: Debugging Barbara Unverferth 1 Techniques March 2002.

63

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 64: Debugging Barbara Unverferth 1 Techniques March 2002.

64

Demonstration of Problem Isolation System and Support Site Search Capabilities

Page 65: Debugging Barbara Unverferth 1 Techniques March 2002.

65

Demonstration of Problem Isolation System and Support Site Search Capabilities