Browse Prior Art Database

Source Code Monitoring

IP.com Disclosure Number: IPCOM000037267D
Original Publication Date: 1989-Dec-01
Included in the Prior Art Database: 2005-Jan-29
Document File: 2 page(s) / 54K

Publishing Venue

IBM

Related People

Seaman, RP: AUTHOR

Abstract

As part of the initialization process of the system to be monitored, a test is made to see if source code monitoring is required. If so, an editor is also initialized and this runs as a co-routine in parallel with the system, which becomes another co-routine.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 97% of the total text.

Page 1 of 2

Source Code Monitoring

As part of the initialization process of the system to be monitored, a test is made to see if source code monitoring is required. If so, an editor is also initialized and this runs as a co-routine in parallel with the system, which becomes another co-routine.

Once the editor is initialized, it automatically swaps back to the system co- routine and control stays with the system co-routine until a statement, the smallest executable element in the high level language of the source code, is about to be 'executed' by execution of the counterpart object code. At this point, control is automatically transferred to the editor co-routine and this enables the user to interact with what is happening. Since the editor is a co-routine, no time has to be wasted re-initializing it.

As the program is executed, that section of the source code around the current statement is displayed with the current statement highlighted. The user can take a trace file, view the variables and modify or cause to be executed user- specified logic at each statement.

When the user has taken such action in the editor as the user deems appropriate, the user has the option of returning control to the program being monitored, either generally or in a 'single-step' one statement at a time mode. The transfer of control is via a SWAP instruction.

This arrangement, generally illustrated in the diagram, enables the user to understand, debug and analyze the program.

1

Page 2 of 2

2

[Thi...