Browse Prior Art Database

Method to Correlate Error Report to Source Code

IP.com Disclosure Number: IPCOM000039256D
Original Publication Date: 1987-May-01
Included in the Prior Art Database: 2005-Feb-01
Document File: 1 page(s) / 12K

Publishing Venue

IBM

Related People

Baker, DC: AUTHOR [+4]

Abstract

A method is described to provide easy correlation of the exact point in source code where an error log or report entry is generated. In large software systems, it is customary to have a standard mechanism for logging errors, whether hardware or software induced. Generally when a programmer is trying to ascertain the exact cause of an error, it is crucial to find the exact location in the source code which caused the error. The error logging strategy generally specifies that the software module name be included in the error report so that the offending module can be found. In languages like C, the preprocessor has predefined macros that can be used to give the current file name and the current line number in the source. Unfortunately, PLS does not have this capability.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 80% of the total text.

Page 1 of 1

Method to Correlate Error Report to Source Code

A method is described to provide easy correlation of the exact point in source code where an error log or report entry is generated. In large software systems, it is customary to have a standard mechanism for logging errors, whether hardware or software induced. Generally when a programmer is trying to ascertain the exact cause of an error, it is crucial to find the exact location in the source code which caused the error. The error logging strategy generally specifies that the software module name be included in the error report so that the offending module can be found. In languages like C, the preprocessor has predefined macros that can be used to give the current file name and the current line number in the source. Unfortunately, PLS does not have this capability. The present method functions to easily locate the "point of error" in its PLS coding. One powerful tool the PLS compiler offers is a cross-reference generator which will tell in which include file and at which line number an identifier is used for any identifier in a source program. The method involves the definition of a special series of literal identifiers whose only use is to supply a value to one field of error log. These identifiers are named things like "RAS_UNIQUE_1" through "RAS_UNIQUE_32" and are literally assigned values from 1 to 32, respectively. One field of the RAS error log for all terminal error logs is reserved as the point- of-error...