JPH0792771B2 - Program execution status display system - Google Patents
Program execution status display systemInfo
- Publication number
- JPH0792771B2 JPH0792771B2 JP61075050A JP7505086A JPH0792771B2 JP H0792771 B2 JPH0792771 B2 JP H0792771B2 JP 61075050 A JP61075050 A JP 61075050A JP 7505086 A JP7505086 A JP 7505086A JP H0792771 B2 JPH0792771 B2 JP H0792771B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- execution status
- execution
- function
- executed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機プログラムの開発およびテスト作業の
計算機による支援に係り、特にビジュアルな表現形式で
実行経過および実行位置を確認する場合に好適なプログ
ラム実行状況表示システムに関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention relates to computer support for computer program development and test work, and is particularly suitable for confirming execution progress and execution position in a visual expression format. The present invention relates to a program execution status display system.
従来、ソフトウェア等の需要増加に伴なって、計算機プ
ログラムの開発やそのプログラムのテストを計算機等の
支援システムにより行っている。というのは、一旦作成
された計算機プログラム等においては、一度も修正せず
に使用できるものは、ほとんどなく、計算機を用いて作
成されたプログラムが正常に実行されるかどうかテスト
する必要がある。このようなプログラムのテストを行う
場合は、プログラム中に中断点を設定し、中断点まで実
行した後、データを調べ、パスに異常が有るか無いかを
調べていた。2. Description of the Related Art Conventionally, as demand for software and the like has increased, computer programs have been developed and tested by support systems such as computers. This is because almost no computer program or the like that has been created can be used without modification, and it is necessary to test whether the program created using the computer can be executed normally. In the case of testing such a program, a break point is set in the program, after the break point is executed, the data is checked to see if there is an abnormality in the path.
これとは別に、対話用端末(CRT)の画面上にソースプ
ログラムを表示し、ソースコード(ソースプログラム)
上の動きをカーソルで示すもの(ANIMATER)があった
(日立 T−560/20ビデオデータシステム パーソナル
ステーション プログラムプロダクト LevelII COBOL操
作編マニュアル p63〜68参照)。Separately from this, the source program is displayed on the screen of the interactive terminal (CRT) and the source code (source program)
There was a cursor movement (ANIMATER) to show the above movement (refer to Hitachi T-560 / 20 Video Data System Personal Station Program Product LevelII COBOL Operation Manual, p63-68).
上記従来の方式では、プログラムの実行経過が分からな
いため、データの数値に頼る、いわゆるプログラムの内
部を覗くしかなく、外部からの判定ができないという問
題があった。また、別の方法でも、一度通過したパスを
見ることができないという問題があった。In the above-mentioned conventional method, since the execution progress of the program is not known, there is a problem that it is only possible to look inside the so-called program, which depends on the numerical value of the data, and it is not possible to make a determination from the outside. In addition, there is a problem in that it is not possible to see a path that has already passed even if another method is used.
本発明の目的は、このような従来の問題を解決し、プロ
グラムの開発等において、プログラムのテストを行う場
合、プログラムの実行状況をリアルタイムに視覚的に把
握可能とし、全体のプログラムの流れやパスの異常を視
覚で容易に理解でき、さらにプログラム開発の工数を削
減させるプログラム実行状況表示システムを提供するこ
とにある。An object of the present invention is to solve such a conventional problem and to make it possible to visually grasp the execution status of the program in real time when the program is tested in the development of the program, etc. An object of the present invention is to provide a program execution status display system that enables easy visual understanding of abnormalities and reduces man-hours for program development.
上記目的を達成するため、本発明のプログラム実行状況
表示システムは、(イ)計算機によるプログラムの実行
状況を表示装置の画面に表示するプログラム実行状況表
示システムであって、計算機で実行されるプログラムの
流れ図を、表示装置の画面に表示するプログラム構造表
示機能4と、各流れ図記号に対応するプログラム要素
が、実行済み、実行中、未実行のいずれの状態であるか
を示す情報を、各流れ図記号毎に登録し、プログラム要
素の実行開始時に、対応する流れ図記号の情報を未実行
から実行中にリアルタイムで更新し、実行完了した時点
で、実行中から実行済にリアルタイムで更新する実行状
況管理機能3と、この実行状況管理機能3の更新動作お
よび更新結果に基づき、各流れ図記号を、未実行状態と
実行中状態および実行済み状態として識別可能に且つリ
アルタイムに表示する実行状況表示機能5を少なくとも
有することを特徴とする。In order to achieve the above-mentioned object, a program execution status display system of the present invention is (a) a program execution status display system for displaying the execution status of a program by a computer on the screen of a display device. The program structure display function 4 for displaying the flow chart on the screen of the display device, and information indicating whether the program element corresponding to each flow chart symbol is in the executed, executing, or unexecuted state, Execution status management function that registers each time, updates the information of the corresponding flow chart symbol in real time from non-execution to execution at the start of execution of the program element, and updates it from execution to execution in real time when execution is completed 3 and the update operation of the execution status management function 3 and the update result, the flow chart symbols are changed to the unexecuted state, the in-execution state, and the actual state. And having a running status display function 5 that identifiably and displayed in real time as the finished state, at least.
また、(ロ)上記(イ)に記載のプログラム実行状況表
示システムにおいて、実行状況管理機能3は、各流れ図
記号の実行回数を計数して、各流れ図記号の実行状態を
示す情報とともに登録し、実行状況表示機能5は、各流
れ図記号の表示時に、実行状況管理機能3で計数した表
示対象の各流れ図記号の実行回数を、この各流れ図記号
に付加して表示することを特徴とする。(B) In the program execution status display system described in (a) above, the execution status management function 3 counts the number of executions of each flow chart symbol and registers it together with information indicating the execution state of each flow chart symbol, The execution status display function 5 is characterized in that, at the time of displaying each flow chart symbol, the number of times of execution of each flow chart symbol to be displayed counted by the execution situation management function 3 is added to each flow chart symbol and displayed.
人間が理解しやすい視覚でとらえ得るように、プログラ
ムのテスト実行中に、プログラムを構成する要素(高級
言語構造では、ステートメントに相当)の各々につい
て、(1)実行中、(2)実行済み、(3)未実行、
(4)要素が実行された回数を各々記憶し、次の要素の
実行に移った時、記憶していたものを更新し、さらにこ
れらの記憶情報を基に、対話用端末の画面上の対応する
要素を色わけして表示させることにより、対話画面上に
ブロックの実行状況をリアルタイムに表示させるもので
ある。In order to make it easy for humans to understand visually, during each test execution of the program, for each of the elements (corresponding to a statement in the high-level language structure) that make up the program, (1) during execution, (2) already executed, (3) Not executed,
(4) The number of times each element is executed is stored, and when the execution of the next element is started, the stored one is updated, and the correspondence on the screen of the interactive terminal is further based on the stored information. By displaying the elements to be displayed in different colors, the execution status of the blocks is displayed in real time on the interactive screen.
以下、本発明の一実施例を、図面により詳細に説明す
る。An embodiment of the present invention will be described in detail below with reference to the drawings.
本実施例では、計算機と対話用端末を含む情報処理シス
テムについて適用されるものとして、以下の説明を行
う。また、情報処理システムの全体構成図については省
略し、本発明の特徴的な機能構成を基づいて説明する。In the present embodiment, the following description will be made assuming that it is applied to an information processing system including a computer and a dialogue terminal. Further, the overall configuration diagram of the information processing system is omitted, and the description will be given based on the characteristic functional configuration of the present invention.
第1図は、本発明の一実施例を示す情報処理システムに
組込まれる機能構成図である。この情報処理システムに
は対話用端末が含まれており、操作者は、その対話用端
末の画面上に表示されたメッセージやプログラムを見て
対話しながらプログラムの開発(例えば、プログラムテ
スト,プログラムデバッグ,プログラムレビュー等)を
行うことができる。FIG. 1 is a functional configuration diagram incorporated in an information processing system showing an embodiment of the present invention. This information processing system includes an interactive terminal, and the operator develops the program (for example, program test, program debug) while interacting by seeing the messages and programs displayed on the screen of the interactive terminal. , Program reviews, etc.) can be performed.
第1図において、1はプログラムを記憶し、必要に応じ
てそれを取り出すプログラム記憶機能、2はプログラム
記憶機能1より取り出されたプログラムについて、それ
を構成する要素を逐次実行するプログラム実行機能であ
る。3は各プログラム要素毎に実行状況情報を記憶する
ものであり、プログラム実行機能2が実行したプログラ
ム要素について、該情報を更新する実行状況管理機能で
ある。4はプログラム記憶機能1より取り出されたプロ
グラムについての構造を画面に表示するプログラム構造
表示機能である。5は実行状況管理機能3に記憶された
実行状況情報に応じて、プログラム構造表示機能4によ
り表示された画面上のプログラム要素毎に実行済みか否
かを表示する実行状況表示機能である。6は後述第2図
に示すようなプログラムを後述第3図に示すPADの表現
形式で画面上に視覚的に表示する表示装置である。In FIG. 1, 1 is a program storage function that stores a program and retrieves it as necessary, and 2 is a program execution function that sequentially executes the constituent elements of the program retrieved from the program storage function 1. . Reference numeral 3 stores execution status information for each program element, and is an execution status management function for updating the information about the program element executed by the program execution function 2. A program structure display function 4 displays the structure of the program retrieved from the program storage function 1 on the screen. Reference numeral 5 denotes an execution status display function that displays whether or not each program element on the screen displayed by the program structure display function 4 has been executed according to the execution status information stored in the execution status management function 3. A display device 6 visually displays a program as shown in FIG. 2 described later on the screen in a PAD expression format shown in FIG. 3 described later.
第2図は、第1図におけるプログラム記憶機能1に記憶
されたプログラムの例を示す図である。本例は、公知の
PL/M86言語で記述されており、行番01〜28に示すプログ
ラム要素から構成されている。FIG. 2 is a diagram showing an example of a program stored in the program storage function 1 in FIG. This example is known
It is written in the PL / M86 language and consists of program elements shown in line numbers 01 to 28.
以下、第2図に示すプログラムの例として、第1図の各
機能を詳細に説明する。Hereinafter, each function of FIG. 1 will be described in detail as an example of the program shown in FIG.
プログラム記憶機能1は、記憶している第2図のプログ
ラムを取り出し、これをプログラム実行機能2と、プロ
グラム構造表示機能4に与える。プログラム構造表示機
能4では、このプログラムの構造を表示装置6上の画面
に表示する。The program storage function 1 retrieves the stored program of FIG. 2 and supplies it to the program execution function 2 and the program structure display function 4. The program structure display function 4 displays the structure of this program on the screen of the display device 6.
第3図は、第2図のプログラムの構造を画面に表示した
例である。第3図では、プログラムの構造を表示する様
式として、公知のPAD(問題解析図:Problem Analysis D
iagram)を採用して表示した例を示している。第2図か
ら第3図のPADに変換表示する方式は、例えば、本発明
者等により先に提案されている特願昭60-228682号明細
書に示された方式により実現できる。ここで、30は表示
装置6の画面を示し、箱35〜箱52は第2図の行番01〜28
のプログラム要素とそれぞれ対応している。例えば、箱
35は行番01のプログラム要素と対応し、箱37は行番03の
プログラム要素と対応している。FIG. 3 is an example in which the structure of the program of FIG. 2 is displayed on the screen. In Fig. 3, the well-known PAD (Problem Analysis D: Problem Analysis D
iagram) is adopted and displayed. The method of converting and displaying the PAD shown in FIGS. 2 to 3 can be realized by, for example, the method shown in Japanese Patent Application No. 60-228682 previously proposed by the present inventors. Here, 30 indicates the screen of the display device 6, and boxes 35 to 52 are line numbers 01 to 28 in FIG.
It corresponds to each of the program elements of. For example, a box
Reference numeral 35 corresponds to the program element at line number 01, and box 37 corresponds to the program element at line number 03.
一方、プログラム実行機能2では、プログラムをプログ
ラム記憶機能1より受け取り、行番01〜28のプログラム
要素を先頭から順に実行する。第2図の例では、まず、
プログラムの先頭には行番01があるので、行番01のプロ
グラム要素を実行し、実行が完了したときは、その実行
が完了したことを実行状況管理機能3に知らせる。この
知らせにより実行状況管理機能3は、第2図のプログラ
ムの各要素に応じて、その要素が実行済みであるか否か
の情報を記憶する。On the other hand, the program execution function 2 receives the program from the program storage function 1 and sequentially executes the program elements in line numbers 01 to 28 from the beginning. In the example of FIG. 2, first,
Since the line number 01 exists at the beginning of the program, the program element of the line number 01 is executed, and when the execution is completed, the execution status management function 3 is notified that the execution is completed. By this notification, the execution status management function 3 stores, according to each element of the program of FIG. 2, information on whether or not the element has been executed.
第4図は、第1図における実行状況管理機能3の実行状
況記憶テーブルの構造例を示す図である。これは、プロ
グラム要素が実行済みか否かの情報を記憶するためのも
のである。FIG. 4 is a diagram showing an example of the structure of the execution status storage table of the execution status management function 3 in FIG. This is for storing information on whether or not the program element has been executed.
第4図においては、実行状況記憶テーブルは第3図に示
すような箱の番号が格納されるフィールド41と実行状況
フィールド42から構成され、各々のプログラム要素毎に
1ケ所ずつ記憶エリアを設け、その中に入る数値が
「1」の場合は実行済み、「0」の場合は未実行である
ことを示す構造を持たせてある。プログラムが実行され
る前は、すべてのエリアに未実行であることを示す
「0」が記憶されている。プログラム実行機能2が行番
01のプログラム要素を実行し、その実行が完了すると、
そのプログラム要素の実行が完了したという情報を実行
状況管理機能3に通知する。この通知を受け取ると、実
行状況管理機能3は、行番01のプログラム要素に対応す
るエリアにそれが実行済みであることを示す「1」を格
納する。すなわち、箱35に対応するエリアに「1」を格
納することになる。次に実行状況表示機能5は、各々の
プログラムのプログラム要素の実行状況情報と、そのプ
ログラム要素に対応して、表示装置6の画面30上に表示
されたプログラム要素の表示位置を、実行状況管理機能
3より、それぞれ受け取り、実行済みの要素について、
対応する画面30上の要素に実行済みであることを表示す
る。実行済みであることを示す表示様式としては、斜線
を用いる方式を第5図に示す。また、表示様式として
は、色付けして示す方式等でもよい。以下、第5図に示
す斜線の例を用いて説明する。In FIG. 4, the execution status storage table is composed of a field 41 for storing box numbers and an execution status field 42 as shown in FIG. 3, and one storage area is provided for each program element. A structure indicating that the numerical value entered therein is "1" has been executed and the numerical value entered therein is "not executed" is provided. Before the program is executed, "0" indicating that the program has not been executed is stored in all areas. Program execution function 2 is line number
When the program element of 01 is executed and its execution is completed,
The execution status management function 3 is notified of the information that the execution of the program element is completed. Upon receiving this notification, the execution status management function 3 stores "1" indicating that it has been executed in the area corresponding to the program element in line number 01. That is, "1" is stored in the area corresponding to the box 35. Next, the execution status display function 5 manages the execution status information of the program element of each program and the display position of the program element displayed on the screen 30 of the display device 6 in association with the program element. From the function 3, for each received and executed element,
The element on the corresponding screen 30 is displayed as having been executed. FIG. 5 shows a method using diagonal lines as a display mode indicating that the execution has been completed. Further, the display style may be a colorized style or the like. Hereinafter, description will be made using an example of diagonal lines shown in FIG.
以下同様に行番02以後のプログラム要素が順次実行さ
れ、これに対応して実行状況管理機能3は、第4図に示
す実行状況記憶テーブルの実行状況情報を更新する。実
行状況表示機能5が、これに基づき実行済みのプログラ
ム要素を画面30上で識別表示していくことにより、プロ
グラム実行状況がリアルタイムに表示できる。Similarly, the program elements on and after line number 02 are sequentially executed, and in response to this, the execution status management function 3 updates the execution status information in the execution status storage table shown in FIG. The execution status display function 5 identifies and displays the executed program elements on the screen 30 based on this, so that the program execution status can be displayed in real time.
第6図は、第1図の各機能によるプログラム実行状況表
示処理の動作フローチャートである。以下、第6図に従
って説明する。FIG. 6 is an operation flowchart of the program execution status display processing by each function of FIG. Hereinafter, description will be given with reference to FIG.
まず、プログラム記憶機能1によりどのプログラムを実
行するかを指定した情報を読み込み(ステップ601)、
引続いて指定されたプログラムを読み込む(ステップ60
2)。次にプログラム構造表示機能4により読み込んだ
プログラムの構造を解析し(ステップ603)、解析され
たプログラムの構造を表示装置6の画面30に表示する
(ステップ604)。プログラム実行機能2により読み込
んだプログラムの実行を行う前に、実行状況管理機能3
により第4図に示す実行状況記憶テーブルを初期化する
(ステップ605)。次にプログラム実行機能2により行
番Nを1として先頭のプログラム要素を取り出し(ステ
ップ606,607)、取り出したプログラム要素を実行する
(ステップ608)。実行後、実行状況管理機能3により
1番目のプログラム要素に対応する実行状況記憶テーブ
ルに「1」を格納する(ステップ609)。格納後、実行
状況表示機能5によりN番目の要素に対応した画面上の
箱の位置サイズを求め(ステップ610)、1番目のプロ
グラム要素に対応した箱にハッチングを入れる(ステッ
プ611)。このハッチングを入れた画面30は第5図を参
照されたい。プログラム実行機能2では、次番目のプロ
グラム要素があるか否かを調べる(ステップ612)、な
い場合は処理を終了し、ある場合は行番Nをプラス1し
て(ステップ613)、ステップ607に戻る。First, the program memory function 1 reads information specifying which program to execute (step 601),
Continue reading the specified program (step 60)
2). Next, the structure of the read program is analyzed by the program structure display function 4 (step 603), and the analyzed program structure is displayed on the screen 30 of the display device 6 (step 604). Before executing the program read by the program execution function 2, the execution status management function 3
Thus, the execution status storage table shown in FIG. 4 is initialized (step 605). Next, the program execution function 2 sets the line number N to 1 and extracts the first program element (steps 606 and 607) and executes the extracted program element (step 608). After execution, the execution status management function 3 stores "1" in the execution status storage table corresponding to the first program element (step 609). After storing, the position size of the box on the screen corresponding to the Nth element is obtained by the execution status display function 5 (step 610), and the box corresponding to the first program element is hatched (step 611). See FIG. 5 for the screen 30 with this hatching. In the program execution function 2, it is checked whether or not there is a next program element (step 612). If there is no next program element, the process is terminated. Return.
上記実施例では、プログラムの実行経過は表示される
が、現在どのプログラム要素を実行しているのかは表示
されない。この表示を行うためには、第1図の各機能を
以下により拡張する。In the above embodiment, the execution progress of the program is displayed, but which program element is currently being executed is not displayed. To perform this display, each function of FIG. 1 is expanded as follows.
第1に、プログラム実行機能2に「未実行」、「実行済
み」という情報だけでなく、「実行中」という情報を実
行状況管理機能3へ与える機能を付加する。第2に実行
状況管理機能3に、各プログラム要素毎に「未実行」,
「実行済み」に加えて、「実行中」であることを示す情
報を記憶する機能を付加する。このためには、例えば第
4図に示すテーブルにおいて、「0(未実行)」,「1
(実行済み)」に加えて、「2(実行中)」を格納す
る。プログラム実行機能2が、ある要素が実行中である
ことを示す情報を実行状況管理機能3に与えた時点で、
実行状況管理機能3は第4図のテーブル中のその要素に
該当する個所に「2」を書込む。次にプログラム実行機
能2が別の要素が実行中であることを示す情報を実行状
況管理機能3に与えた時点で実行状況管理機能3は該当
する「2」を「1」と書き換え、別の要素に対応する個
所を「2」と書き換える。First, the program execution function 2 is provided with a function of giving not only the information "unexecuted" and "executed" but also the information "executed" to the execution status management function 3. Secondly, the execution status management function 3 includes "unexecuted" for each program element,
In addition to “executed”, a function of storing information indicating “in execution” is added. For this purpose, for example, in the table shown in FIG. 4, "0 (unexecuted)", "1"
In addition to “(executed)”, “2 (in execution)” is stored. When the program execution function 2 provides the execution status management function 3 with information indicating that a certain element is being executed,
The execution status management function 3 writes "2" in the portion corresponding to the element in the table of FIG. Next, when the program execution function 2 provides the execution status management function 3 with information indicating that another element is executing, the execution status management function 3 rewrites the corresponding "2" to "1", and The part corresponding to the element is rewritten as "2".
第3に実行状況表示機能5に、プログラム構造表示機能
4により表示された画面上のプログラム要素毎に、実行
状況管理機能3に記憶された実行状況情報に応じて、未
実行、実行済みだけでなく、実行中であることが各々識
別できるように表示する機能を付加する。Thirdly, in the execution status display function 5, for each program element on the screen displayed by the program structure display function 4, depending on the execution status information stored in the execution status management function 3, only unexecuted or executed Instead, a function is added to display so that it can be identified that each is being executed.
第7図は、行番01のプログラム要素の実行が完了して、
現在行番02のプログラム要素が実行中である時点の画面
30の例を示す図である。各実行状況の表示様式は色々あ
るが、本例では、実行済みを右斜線、実行中を左斜線で
表示した例である。他の表示様式の例としては、実行済
みと実行中をモノクロとカラーで識別する方法などでも
よい。In Figure 7, the execution of the program element at line 01 is completed,
Screen when the program element at line number 02 is currently being executed
It is a figure which shows the example of 30. Although there are various display modes for each execution status, this example is an example in which the executed status is displayed by the right diagonal line and the running status is displayed by the left diagonal line. As another example of the display style, a method of distinguishing between executed and executed by monochrome and color may be used.
第8図は、第1図の機能に上記機能を追加した時のプロ
グラム実行状況表示処理の動作フローチャートである。
以下、第8図に従って説明する。FIG. 8 is an operation flowchart of the program execution status display processing when the above function is added to the function of FIG.
Hereinafter, description will be given with reference to FIG.
まず、プログラム記憶機能1によりどのプログラムを実
行するか指定した情報を読み込み(ステップ801)、引
続いて指定されたプログラムを読み込む(ステップ80
2)。次にプログラム構造表示機能4により読み込んだ
プログラムの構造を解析し(ステップ803)、解析され
たプログラムの構造を表示装置6の画面30に表示する
(ステップ804)。プログラム実行機能2により読み込
んだプログラムの実行を行う前に、実行状況管理機能3
により第4図に示す実行状況記憶テーブルを初期化する
(ステップ805)。次にプログラム実行機能2により行
番Nを1として先頭のプログラム要素を取り出す(ステ
ップ806,807)。追加したプログラム実行機能2により
取り出された行番Nと現在実行中のプログラム要素の行
番が等しいかどうかを調べ(ステップ808)、等しい場
合はステップ812に進む。等しくない場合は、実行状況
管理機能3により行番N−1番目のプログラム要素に対
応する実行状況記憶テーブル内の「2」を「1」にする
(ステップ809)。次に実行状況表示機能5によりN−
1番目の要素に対応した画面30上の箱の位置,サイズを
求め(ステップ810)、求めた箱に実行済みを示すハッ
チングを入れる(ステップ811)。次に実行状況管理機
能3により行列N番目の要素に対応する実行状況記憶テ
ーブルに「2」を格納すると(ステップ812)、実行状
況表示機能5にこの情報を通知する。この通知を受け取
ると、実行状況表示機能5は、行番N番目の要素に対応
する画面30上の箱の位置,サイズを求め(ステップ81
3)、求めた箱に実行中を示すハッチングを入れる(ス
テップ814)。ここで、ステップ811,813で示されるハッ
チングの例は第7図を参照されたい。First, information that specifies which program is to be executed is read by the program storage function 1 (step 801), and then the specified program is read (step 80).
2). Next, the structure of the program read by the program structure display function 4 is analyzed (step 803), and the analyzed structure of the program is displayed on the screen 30 of the display device 6 (step 804). Before executing the program read by the program execution function 2, the execution status management function 3
Thus, the execution status storage table shown in FIG. 4 is initialized (step 805). Next, the line number N is set to 1 by the program execution function 2 and the first program element is taken out (steps 806 and 807). It is checked whether or not the line number N fetched by the added program execution function 2 is equal to the line number of the program element currently being executed (step 808). If they are equal, the process proceeds to step 812. If they are not equal, the execution status management function 3 sets "1" to "2" in the execution status storage table corresponding to the program element at line number N-1 (step 809). Next, by the execution status display function 5, N-
The position and size of the box on the screen 30 corresponding to the first element are calculated (step 810), and the calculated box is hatched (step 811). Next, when the execution status management function 3 stores "2" in the execution status storage table corresponding to the Nth element of the matrix (step 812), the execution status display function 5 is notified of this information. Upon receiving this notification, the execution status display function 5 obtains the position and size of the box on the screen 30 corresponding to the Nth element in the line number (step 81).
3) Then, the hatched box indicating the execution is put in the obtained box (step 814). Here, see FIG. 7 for an example of the hatching shown in steps 811 and 813.
次にプログラム実行機能2によりN番目のプログラム要
素の実行をする(ステップ815)。その後、次番目のプ
ログラム要素があるかどうか調べ(ステップ816)、要
素がある場合は行番Nにプラス1して(ステップ81
7)、ステップ807に戻る。要素がない場合は、実行状況
管理機能3によりN番目の要素に対応した実行状況記憶
テーブル「2」を「1」にし(ステップ818)、この情
報をプログラム状況表示機能5に通知する。この通知を
受け取ると、実行状況表示機能5は、N番目の要素に対
応した画面30(第7図参照)上の箱の位置,サイズを求
め(ステップ819)、求めた箱に実行済みを示すハッチ
ングを入れる(ステップ820)。Next, the program execution function 2 executes the Nth program element (step 815). After that, it is checked whether there is a next program element (step 816), and if there is an element, the line number N is incremented by 1 (step 81).
7) and returns to step 807. If there is no element, the execution status management function 3 sets the execution status storage table "2" corresponding to the Nth element to "1" (step 818), and notifies the program status display function 5 of this information. Upon receiving this notification, the execution status display function 5 obtains the position and size of the box on the screen 30 (see FIG. 7) corresponding to the Nth element (step 819), and indicates the completed box. Add hatching (step 820).
実行状況として、実行中、実行済み、未実行だけでな
く、実行回数も画面に表示した方が全体の流れが理解し
やすい場合がある。このために、第1図に示す機能に下
記機能を追加する。機能追加の第1として、実行状況管
理機能3に実行回数を記憶させる機能を持たせる。As the execution status, it may be easier to understand the entire flow if the execution count is displayed on the screen in addition to the execution status, executed status, and non-execution status. Therefore, the following functions are added to the functions shown in FIG. As a first function addition, the execution status management function 3 has a function of storing the number of executions.
第9図は、実行回数を記憶するために第4図の記憶構造
を拡張した例を示す図である。この実行状況記憶テーブ
ルは、箱番号フィールド91,実行状況フィールド92,実行
回数フィールド963より構成されている。FIG. 9 is a diagram showing an example in which the storage structure of FIG. 4 is expanded to store the number of executions. This execution status storage table includes a box number field 91, an execution status field 92, and an execution count field 963.
実行状況管理機能3は、プログラムの開始時に実行回数
フィールド93のエリアに「0」を入れておき、プログラ
ム実行機能2によりある要素が実行中であることを示す
情報を与えられる都度、実行回数フィールド93の記憶エ
リアに格納されている整数値に1を加えてカウントアッ
プする。The execution status management function 3 puts “0” in the area of the execution count field 93 at the start of the program, and executes the execution count field each time the program execution function 2 gives information indicating that an element is being executed. The integer value stored in the storage area of 93 is incremented by one.
機能追加の第2として、実行状況表示機能5に今までの
機能に加え、実行状況管理機能3より実行回数の情報を
受け取り、さらに実行状況管理機能3により実行回数を
画面30上のどの位置へ表示するかという情報を受け取
り、それら情報を基に画面30上に実行回数を表示する機
能を追加する。As the second addition of the function, in addition to the functions that have been used up to now, the execution status display function 5 receives information about the execution count from the execution status management function 3, and the execution status management function 3 sends the execution count to any position on the screen 30. A function for receiving information about whether to display and displaying the execution count on the screen 30 based on the information is added.
第10図は、上記機能追加により実行回数を表示した画面
30の例を示す図である。ここでは、右斜線は実行済プロ
グラム要素の箱を示し、左斜線は現在実行中プログラム
要素の箱を示している。また、箱35と箱36の右肩に付さ
れている数字は箱35と箱36のプログラム要素が1回実行
されたことを示している。Figure 10 shows a screen displaying the number of executions due to the addition of the above functions.
It is a figure which shows the example of 30. Here, the right diagonal line indicates the box of the executed program element, and the left diagonal line indicates the box of the currently executing program element. The numbers attached to the right shoulders of the boxes 35 and 36 indicate that the program elements of the boxes 35 and 36 have been executed once.
第11図は、第1図の機能に第3実施例による機能を追加
した時のプログラム実行状況表示処理の動作フローチャ
ートである。以下、第11図に従って説明する。FIG. 11 is an operation flowchart of the program execution status display processing when the function of the third embodiment is added to the function of FIG. Hereinafter, description will be given with reference to FIG.
第11図のフローチャートは、第8図のフローチャートの
ステップ814と815の間に実行回数を表示するための処理
を追加したものであるので、その部分の処理動作につい
てだけここでは説明する。すなわち、ステップ814の処
理の後、追加された実行状況管理機能3によりN番目の
要素に対応する記憶テーブル(第9図参照)の実行回数
に「1」を加えこの情報を実行状況表示機能5に通知す
る(ステップ1101)。この通知を受け取ると、追加され
た実行状況表示機能5により実行回数の表示位置を求め
(ステップ1102)、求めた位置へ実行回数を画面30(第
10図参照)に表示する(ステップ1103)。この後、上述
したようなステップ815以降の処理を行う。Since the flowchart of FIG. 11 has a process for displaying the number of executions added between steps 814 and 815 of the flowchart of FIG. 8, only the processing operation of that part will be described here. That is, after the process of step 814, the execution status display function 5 adds this information by adding "1" to the execution count of the storage table (see FIG. 9) corresponding to the N-th element by the added execution status management function 3. (Step 1101). When this notification is received, the execution position display function 5 is added to obtain the execution position display position (step 1102), and the execution number is displayed on the screen 30 (No.
(See FIG. 10) (step 1103). After that, the processes of step 815 and thereafter as described above are performed.
以上の説明は、プログラム構造をPADの表現形式により
表示した例についてであったが、プログラムの構造の表
示様式として、フローチャートを採用することも可能で
ある。プログラムの構造の表示様式としてフローチャー
ト採用時とPAD採用時との相違は以下のようである。Although the above description is directed to an example in which the program structure is displayed in the PAD expression format, it is also possible to adopt a flowchart as the display format of the program structure. Differences between the flow chart adoption and the PAD adoption as the display format of the program structure are as follows.
プログラム構造表示機能4が、プログラム記憶機能1よ
り与えられたプログラムの構造をフローチャートとして
画面に表示することである。The program structure display function 4 is to display the structure of the program given from the program storage function 1 on the screen as a flowchart.
この相違を踏まえて、第1図に対して以下の機能拡張を
行うことにより本発明は実施可能である。Based on this difference, the present invention can be implemented by performing the following function expansion with respect to FIG.
第12図は、プログラム要素とPADとフローチャートの対
応の規則表を示す図である。プログラム表示機能4に第
12図における対応に従ってPADからフローチャートに変
換する機能を追加する。例えば、連接文のPADからフロ
ーチャートへの変換は規則73によって行う。また、同様
に反復の場合は規則74,判定の場合は規則75,DO CASE
文の場合は規則76による。FIG. 12 is a diagram showing a rule table corresponding to program elements, PADs, and flowcharts. Program display function 4
According to the correspondence in Fig. 12, a function to convert from PAD to flowchart is added. For example, conversion of a concatenated sentence from PAD to a flowchart is performed according to rule 73. Similarly, in the case of repetition, rule 74, in the case of judgment rule 75, DO CASE
In the case of sentences, it is according to Rule 76.
第13図は、第1図におけるプログラム構造表示機能4に
追加されたPADからフローチャートに変換する機能の処
理動作フローチャートである。FIG. 13 is a processing operation flowchart of the function for converting the PAD into the flowchart, which is added to the program structure display function 4 in FIG.
構造解析された箱が連接文の箱かどうかを調べ(ステッ
プ1301)、規則73の形に変換する(ステップ1302)。次
の箱があるかどうかを調べ(ステップ1303)、箱がある
場合はステップ1301に戻り、ない場合は処理を終了す
る。ステップ1301連接分を意味する箱がないときは、反
復を意味する箱がないかどうかを調べる(ステップ130
4)。箱がある場合は規則74の形に変換する(ステップ1
305)。箱がない場合は判定を示す箱があるかないか調
べ(ステップ1306)、そこで箱がある場合は規則75の形
に変換し(ステップ1307)、ない場合は規則76の形に変
換する(ステップ1308)。It is checked whether or not the box subjected to the structural analysis is a box of a connected sentence (step 1301), and it is converted into the form of rule 73 (step 1302). It is checked whether there is a next box (step 1303). If there is a box, the process returns to step 1301. If there is no box, the process ends. Step 1301 If there is no box that means concatenation, check whether there is a box that means repetition (Step 130).
Four). If there is a box, convert it to Rule 74 (Step 1
305). If there is no box, it is checked whether or not there is a box indicating the judgment (step 1306). If there is a box, it is converted to the form of rule 75 (step 1307), and if it is not, it is converted to the form of rule 76 (step 1308). ).
以上の方式は、フローチャート以外の様式で表示する場
合にも適用可能である。この場合には、表示様式に相当
する変換規則表を持たせる。この変換規則を辞書作成す
ることにより、表示様式の変換を容易にした場合の機能
構成は第14図に示すようになる。これは、第1図の構成
にプログラムの構造をPADから他の図形的構造に変換す
るための変換用の辞書を設けたものである。The above method can be applied to the case of displaying in a format other than the flowchart. In this case, a conversion rule table corresponding to the display style is provided. By creating a dictionary of these conversion rules, the functional configuration for facilitating the conversion of the display format is as shown in FIG. This is provided with a conversion dictionary for converting the structure of the program from PAD to another graphic structure in the configuration of FIG.
第15図は第14図における辞書機能7の処理動作のフロー
チャートである。以下、第15図に従って説明する。FIG. 15 is a flowchart of the processing operation of the dictionary function 7 in FIG. Hereinafter, description will be given with reference to FIG.
まず、操作者より表示様式の情報が入力されると、表示
様式の指定の情報を読み込む(ステップ1501)、指定さ
れた表示様式の変換規則を記憶中より検索し(ステップ
1502)、指定された表示様式の変換規則表をプログラム
構造表示機能4に渡す(ステップ1502)。First, when the display style information is input by the operator, the display style designation information is read (step 1501), and the conversion rule of the designated display style is retrieved from the stored memory (step 1501).
1502), the conversion rule table of the designated display format is passed to the program structure display function 4 (step 1502).
以上の処理によりPADのプログラム構造から他のプログ
ラムの構造に変換できる。Through the above processing, the PAD program structure can be converted into another program structure.
このように、本実施例および他の実施例においては、プ
ログラムのテストを行う場合、プログラムの構造を表示
装置(対話用端末)6の画面上に表示し、(1)実行済
み、(2)実行中、(3)未実行であるかを判別して、
実行の都度それに対応させて、画面表示することによ
り、テスト実行状況をビジュアル(視覚的)に表示する
ことができる。As described above, in the present embodiment and other embodiments, when the program is tested, the structure of the program is displayed on the screen of the display device (interaction terminal) 6, and (1) executed, (2) During execution, (3) Determine whether it is not executed,
By displaying the screen corresponding to each execution, the test execution status can be displayed visually.
以上説明したように、本発明によれば、プログラムの開
発等において、プログラムのテストを行う場合、表示装
置にプログラムの実行経過がビジュアル(視覚的)にリ
アルタイムに表示されることにより、全体のプログラム
の流れが容易に理解できるようになる。また、現在実行
中の位置および実行回数が表示されるので、パスの異常
を視覚で容易に理解できるようになる。したがって、プ
ログラムのテスト等の効率を向上でき、プログラム開発
の工数を削減させることができる。As described above, according to the present invention, when the program is tested in the development of the program or the like, the progress of execution of the program is visually displayed in real time on the display device, so that the entire program It becomes easy to understand the flow of. Further, since the position currently being executed and the number of times of execution are displayed, it becomes possible to easily visually understand the abnormality of the path. Therefore, the efficiency of program testing and the like can be improved, and the number of man-hours for program development can be reduced.
第1図は本発明の一実施例を示す情報処理システムに組
込まれる機能構成図、第2図は第1図におけるプログラ
ム記憶機能に記憶されたプログラムの例を示す図、第3
図は第1図におけるプログラム構造表示機能により第2
図の構造がPADで画面に表示された例を示す図、第4図
は第1図における実行状況管理機能3の実行状況記憶テ
ーブルの構造例を示す図、第5図はプログラムが実行さ
れている時の画面の例を示す図、第6図は第1図の各機
能によるプログラム実行状況表示処理の動作フローチャ
ート、第7図は現在実行中の位置を表示する機能を追加
しプログラムを実行させた時の画面の例を示す図、第8
図は第1図の機能に実行中の位置を表示する機能を追加
した時のプログラム実行状況表示処理の動作フローチャ
ート、第9図は実行回数を記憶する機能を追加した時の
記憶の構造例を示す図、第10図は実行回数を表示する機
能を追加した時のプログラム実行中時の画面の例を示す
図、第11図は第1図の機能に実行回数を表示する機能を
追加した時のプログラム実行状況表示処理の動作フロー
チャート、第12図は本実施例によるプログラム要素とPA
D,フローチャートの対応の規則表を示す図、第13図は第
1図のプログラム構造表示機能4に追加されたPADから
フローチャートに変換する機能の処理動作フローチャー
ト、第14図は本発明の他の実施例を示す対応規則表を辞
書化した場合の機能構成図、第15図は第14図の辞書機能
7の処理動作フローチャートである。 1:プログラム記憶機能、2:プログラム実行機能、3:実行
状況管理機能、4:プログラム構造表示機能、5:実行状況
表示機能、6:表示装置、7:辞書機能。FIG. 1 is a functional configuration diagram incorporated in an information processing system showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of a program stored in a program storage function in FIG. 1, and FIG.
The figure shows the second by the program structure display function in FIG.
FIG. 4 is a diagram showing an example in which the structure of the figure is displayed on the screen in PAD, FIG. 4 is a diagram showing an example of the structure of the execution status storage table of the execution status management function 3 in FIG. 1, and FIG. Fig. 6 shows an example of a screen when the program is running, Fig. 6 is an operation flowchart of the program execution status display processing by each function of Fig. 1, and Fig. 7 is a function to display the position currently being executed to execute the program. Figure 8 shows an example of the screen when
FIG. 9 is an operation flowchart of the program execution status display processing when the function of displaying the position being executed is added to the function of FIG. 1, and FIG. 9 is an example of a storage structure when the function of storing the number of executions is added. Fig. 10 is a diagram showing an example of the screen during program execution when the function for displaying the number of executions is added, and Fig. 11 is when the function for displaying the number of executions is added to the function in Fig. 1. FIG. 12 is an operation flowchart of the program execution status display process of FIG.
D, a diagram showing a corresponding rule table of a flow chart, FIG. 13 is a processing operation flow chart of a function for converting a PAD into a flow chart added to the program structure display function 4 of FIG. 1, and FIG. 14 is another embodiment of the present invention. FIG. 15 is a functional configuration diagram when the correspondence rule table showing the embodiment is made into a dictionary, and FIG. 15 is a processing operation flowchart of the dictionary function 7 in FIG. 1: Program storage function, 2: Program execution function, 3: Execution status management function, 4: Program structure display function, 5: Execution status display function, 6: Display device, 7: Dictionary function.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭57−14954(JP,A) 特開 昭57−103549(JP,A) 特開 昭60−215243(JP,A) 特開 昭60−7551(JP,A) 特開 昭59−186054(JP,A) ─────────────────────────────────────────────────── ─── Continuation of front page (56) Reference JP-A-57-14954 (JP, A) JP-A-57-103549 (JP, A) JP-A-60-215243 (JP, A) JP-A-60- 7551 (JP, A) JP 59-186054 (JP, A)
Claims (2)
装置の画面に表示するプログラム実行状況表示システム
であって、上記計算機で実行されるプログラムの流れ図
を、上記表示装置の画面に表示するプログラム構造表示
手段と、上記流れ図の各記号に対応する上記プログラム
要素が、実行済み、実行中、未実行のいずれの状態であ
るかを示す情報を、上記各流れ図記号毎に登録し、上記
プログラム要素の実行開始時に、対応する流れ図記号の
上記状態情報を未実行から実行中にリアルタイムで更新
し、実行完了した時点で、実行中から実行済にリアルタ
イムで更新する実行状況管理手段と、該実行状況管理手
段の更新動作および更新結果に基づき、上記各流れ図記
号を、未実行状態と実行中状態および実行済み状態とし
て識別可能に且つリアルタイムに表示する実行状況表示
手段を少なくとも有することを特徴とするプログラム実
行状況表示システム。1. A program execution status display system for displaying the execution status of a program by a computer on the screen of a display device, wherein the flow chart of the program executed by the computer is displayed on the screen of the display device. Means and information indicating whether the program element corresponding to each symbol in the flow chart is in the executed, executing, or unexecuted state is registered for each flow chart symbol, and the program element is executed. An execution status managing unit that updates the above-mentioned state information of the corresponding flow chart symbol in real time from unexecuted to executing at the time of start, and updates in real time from executing to executed when the execution is completed, and the execution status managing unit. Based on the update operation and update result of the above, each of the above flow chart symbols can be identified as an unexecuted state, an executing state, and an executed state. Program execution status display system characterized by having at least an execution status display means for displaying real-time.
実行状況表示システムにおいて、上記実行状況管理手段
は、上記各流れ図記号の実行回数を計数して、上記各流
れ図記号の実行状態を示す情報とともに登録し、上記実
行状況表示手段は、上記各流れ図記号の表示時に、上記
実行状況管理手段で計数した上記表示対象の各流れ図記
号の実行回数を、該各流れ図記号に付加して表示するこ
とを特徴とするプログラム実行状況表示システム。2. The program execution status display system according to claim 1, wherein the execution status management means counts the number of executions of each of the flow chart symbols and indicates the execution status of each of the flow chart symbols. The information is registered together with the information, and the execution status display means displays the number of executions of each flow chart symbol to be displayed counted by the execution situation management means in addition to each flow chart symbol when displaying each flow chart symbol. A program execution status display system characterized in that
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61075050A JPH0792771B2 (en) | 1986-04-01 | 1986-04-01 | Program execution status display system |
| CA000533461A CA1268557A (en) | 1986-04-01 | 1987-03-31 | Method for displaying program executing circumstances and an apparatus using the same |
| US07/282,868 US4872167A (en) | 1986-04-01 | 1988-12-09 | Method for displaying program executing circumstances and an apparatus using the same |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61075050A JPH0792771B2 (en) | 1986-04-01 | 1986-04-01 | Program execution status display system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62231344A JPS62231344A (en) | 1987-10-09 |
| JPH0792771B2 true JPH0792771B2 (en) | 1995-10-09 |
Family
ID=13564983
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61075050A Expired - Fee Related JPH0792771B2 (en) | 1986-04-01 | 1986-04-01 | Program execution status display system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0792771B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120023483A1 (en) * | 2010-07-20 | 2012-01-26 | Dan Welchman | System and method for use in indicating execution of application code |
| US10579753B2 (en) * | 2016-05-24 | 2020-03-03 | Ab Initio Technology Llc | Executable logic for processing keyed data in networks |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5714954A (en) * | 1980-07-02 | 1982-01-26 | Mitsubishi Electric Corp | Program debugging device of computer |
| JPS6053331B2 (en) * | 1980-12-19 | 1985-11-25 | 富士通株式会社 | computer system |
| JPS59186054A (en) * | 1983-04-07 | 1984-10-22 | Toshiba Corp | Test method of computer program |
| JPS607551A (en) * | 1983-06-27 | 1985-01-16 | Fujitsu Ltd | Program block tracing system |
| JPS60215243A (en) * | 1984-04-11 | 1985-10-28 | Hitachi Ltd | Program function simulation method |
-
1986
- 1986-04-01 JP JP61075050A patent/JPH0792771B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62231344A (en) | 1987-10-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5557774A (en) | Method for making test environmental programs | |
| US6351766B1 (en) | Front end navigator tool for automatically retrieving referenced URL links on distributed files for performing debugging, editing and browsing functions on distributed files | |
| EP0785510B1 (en) | Program debugging system for debugging a program having a graphical user interface | |
| US5983016A (en) | Execution engine in an object modeling tool | |
| EP0690378A1 (en) | Tool and method for diagnosing and correcting errors in a computer programm | |
| US7086033B2 (en) | Software debugger having a monitor for monitoring conditional statements within a software program | |
| JPS6116100B2 (en) | ||
| JPH0792771B2 (en) | Program execution status display system | |
| JPH0554277A (en) | Plant monitoring equipment | |
| JPH0934698A (en) | Software generation method and development support method | |
| US20020062208A1 (en) | Method and apparatus for visualization of microprocessor pipeline operation | |
| JP2002342113A (en) | Program execution status display method, its execution device, and its processing program | |
| JP3011115B2 (en) | Debug system | |
| JPH05346757A (en) | Training computer system | |
| JPH06259209A (en) | Process executing condition display device | |
| KR100224857B1 (en) | Apparatus for editing a design | |
| JP2882876B2 (en) | Program test method | |
| JP2731572B2 (en) | Logic simulation method | |
| JP2719277B2 (en) | Automatic program analyzer | |
| JPH052477A (en) | Graphical user interface creation method | |
| JP2749224B2 (en) | Performance analysis system for data driven programs | |
| JP2845519B2 (en) | Data path simulation device | |
| JPS63180141A (en) | Debugging system by conversational debugger | |
| JP2532621B2 (en) | Digital processor | |
| JPH03271836A (en) | Operating system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |