JPH0269837A - Program debug support device - Google Patents
Program debug support deviceInfo
- Publication number
- JPH0269837A JPH0269837A JP63223084A JP22308488A JPH0269837A JP H0269837 A JPH0269837 A JP H0269837A JP 63223084 A JP63223084 A JP 63223084A JP 22308488 A JP22308488 A JP 22308488A JP H0269837 A JPH0269837 A JP H0269837A
- Authority
- JP
- Japan
- Prior art keywords
- execution
- program
- data
- tracing
- monitoring
- 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.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 claims description 60
- 238000000034 method Methods 0.000 description 14
- 238000012806 monitoring device Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 2
- 235000019892 Stellar Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000008676 import Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明はプログラムのデバッグ支援装置に関し、特にデ
バッグ対象プログラムの実行監視を1旨定された範囲に
ついて行ってプログラムの実行ステップにかかる実行デ
ータをファイルに格納し、この格納した実行データに基
づいて別途指示された追跡開始位置より実行順または逆
方向にプログラムの実行を追跡した結果を出力手段から
出力することにより、プログラムのデバッグを容易にし
たプログラムデバッグ支援装置に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a program debugging support device, and particularly to a program debugging support device that monitors the execution of a program to be debugged over a predetermined range and collects execution data related to program execution steps. By storing the execution data in a file and outputting the result of tracing the program execution in the execution order or in the reverse direction from a separately specified tracing start position based on the stored execution data, the program can be easily debugged. The present invention relates to a program debugging support device.
新規に作成し又は新たな改造を加えたソースプログラム
にバグが存在するか否かを調べそれを修正するプログラ
ムデバッグは、一般に、ソースプログラムを翻訳するこ
とにより得られるオブジェクトプログラムを実行し、プ
ログラム作成者の期待する結果と異なる結果が現れた場
合、その原因を追求し、該当するソースプログラムの箇
所を修正することにより行われる。このようなプログラ
ムのデバッグを支援する装置として、従来、オブジェク
トプログラムの実行過程において、該当するソースプロ
グラムの段落名を記憶媒体や印刷装置に出力する装置が
ある。Program debugging, which involves checking and correcting bugs in a newly created or newly modified source program, is generally done by executing an object program obtained by translating the source program and creating the program. If a result differs from what the user expected, the cause is investigated and the relevant part of the source program is corrected. Conventionally, as a device for supporting debugging of such a program, there is a device that outputs a paragraph name of a corresponding source program to a storage medium or a printing device during the execution process of an object program.
上述した従来のプログラムデバッグ支援装置によれば、
ソースプログラムの段落の実行順等は把握することがで
きるが、各段落内の実行ステップの詳細な実行状況たと
えば実行ステップの入力に対する出力結果等は分からな
い。このため、プログラムの実行結果が期待するもので
ない場合、従来は、原因となる実行ステップを発見する
為に、ソースプログラムのリストを見ながら全実行ステ
ップを人手で演算し直すことにより各実行ステップの流
れを追跡する作業を行っていた。According to the conventional program debugging support device described above,
Although the execution order of the paragraphs of the source program can be known, the detailed execution status of the execution steps within each paragraph, such as the output results for the input of the execution steps, cannot be known. For this reason, if the execution result of a program is not what you expected, conventionally, in order to discover the execution step that is the cause, you manually recalculate all the execution steps while looking at the source program list. I was working on tracking the flow.
本発明はこのような面倒な作業を不要とし、プログラム
のデバッグを容易に行うことができるプログラムデバッ
グ支援装置を提供することを目的とする。SUMMARY OF THE INVENTION An object of the present invention is to provide a program debugging support device that eliminates the need for such troublesome work and allows programs to be easily debugged.
本発明のプログラムデバッグ支援装置は、上記の目的を
達成するために、デバッグ対象となるプログラムのオブ
ジェクトプログラムを記憶するオブジェクトプログラム
ファイルと、前記デバッグ対象となるプログラムのソー
スプログラムを記憶するソースプログラムファイルと、
実行監視条件および実行追跡条件を入力する入力手段と
、実行追跡結果を出力する出力手段と、前記オブジェク
トプログラムを実行し、前記入力手段から入力された実
行監視条件で示される範囲内の各実行ステップの入出力
データ、対応する前記ソースプログラムの段落名および
行番号を含む実行データをプログラム実行監視データフ
ァイルに記憶するプログラム実行監視手段と、前記実行
監視データファイルに記憶された実行データのうち前記
入力手段から入力された実行追跡条件で示される実行追
跡開始位置から実行の順方向側または逆方向側のうちの
前記実行追跡条件で措定された側の各実行データとそれ
ら実行データに対応する前記ソースプログラムの段落の
内容とを前記出力手段から出力するプログラム実行追跡
手段とを備えている。In order to achieve the above object, the program debugging support device of the present invention includes an object program file that stores an object program of a program to be debugged, and a source program file that stores a source program of the program to be debugged. ,
an input means for inputting execution monitoring conditions and execution tracing conditions, an output means for outputting execution tracing results, and each execution step within the range indicated by the execution monitoring conditions input from the input means by executing the object program. program execution monitoring means for storing execution data including input/output data, corresponding paragraph names and line numbers of the source program in a program execution monitoring data file; Each piece of execution data on the forward side or the backward side of execution from the execution tracing start position indicated by the execution tracing condition input from the means and the source corresponding to the execution data. and program execution tracking means for outputting the contents of the paragraphs of the program from the output means.
本発明のプログラムデバッグ支援装置においては、オブ
ジェクトプログラムファイルが、デバッグ対象となるプ
ログラムのオブジェクトプログラムを記憶し、ソースプ
ログラムファイルが、前記デバッグ対象となるプログラ
ムのソースプログラムを記憶し、プログラム実行監視手
段が、前記オブジェクトプログラムを実行して入力手段
から入力された実行監視条件で示される範囲内の各実行
ステップの入出力データ、対応する前記ソースプログラ
ムの段落名および行番号を含む実行データをプログラム
実行監視データファイルに記憶し、プログラム実行追跡
手段が、前記実行監視データファイルに記憶された実行
データのうち前記入力手段から入力された実行追跡条件
で示される実行追跡結果位1から実行の順方向側または
逆方向側の各実行データおよびそれら実行データに対応
する前記ソースプログラムの段落の内容とを出力手段か
ら出力する。In the program debugging support device of the present invention, the object program file stores the object program of the program to be debugged, the source program file stores the source program of the program to be debugged, and the program execution monitoring means , executes the object program and monitors program execution to collect input/output data of each execution step within the range indicated by the execution monitoring conditions input from the input means, and execution data including the paragraph name and line number of the corresponding source program. The program execution tracking means stores data in a data file, and the program execution tracking means selects the execution data stored in the execution monitoring data file from the execution tracing result position 1 indicated by the execution tracing condition inputted from the input means to the forward direction of execution or Each piece of execution data on the backward side and the content of the paragraph of the source program corresponding to the execution data are outputted from the output means.
次に、本発明の実施例について図面を参照して詳細に説
明する。Next, embodiments of the present invention will be described in detail with reference to the drawings.
第1図は本発明のプログラムデバッグ支援装置の一実施
例のブロック図である。この実施例のプログラムデバッ
グ支援装置は、プログラム実行監視装置2およびプログ
ラム実行追跡装置3を含む処理装置1と、デバッグ対象
となるプログラムのオブジェクトプログラムを記憶する
オブジェクトプログラムファイル40が格納されている
記憶媒体4と、プログラムの実行監視により得られた実
行データを記憶するプログラム実行監視データファイル
50が格納されている記憶媒体5と、デバング対象とな
るプログラムのソースプログラムを記憶するソースプロ
グラムファイル60が格納されている記憶媒体6と、実
行監視条件および実行追跡条件を入力する入力装置7と
、実行追跡結果を表示する表示装置8とから構成されて
いる。FIG. 1 is a block diagram of an embodiment of a program debugging support device of the present invention. The program debugging support device of this embodiment includes a processing device 1 including a program execution monitoring device 2 and a program execution tracking device 3, and a storage medium in which an object program file 40 storing an object program of a program to be debugged is stored. 4, a storage medium 5 that stores a program execution monitoring data file 50 that stores execution data obtained by monitoring program execution, and a source program file 60 that stores a source program of a program to be debugged. The system includes a storage medium 6, an input device 7 for inputting execution monitoring conditions and execution tracking conditions, and a display device 8 for displaying execution tracking results.
プログラム実行監視装置2は、オブジェクトプログラム
ファイル40中のオブジェクトプログラムを実行し、入
力装置7から入力された実行監視条件で示される範囲内
の各実行ステップの入出力データ、対応するソースプロ
グラムの段落名および行番号を含む実行データをプログ
ラム実行監視データファイル50に記憶する装置である
。また、プログラム実行追跡装置3は、実行監視データ
ファイル50に記憶された実行データのうち入力装置7
から入力された実行追跡条件で示される範囲内の各実行
データとそれら実行データに対応するソースプログラム
の段落の内容とを表示装置8に表示する装置である。The program execution monitoring device 2 executes the object program in the object program file 40, and includes input/output data of each execution step within the range indicated by the execution monitoring conditions input from the input device 7, and the paragraph name of the corresponding source program. This is a device that stores execution data including the information and line numbers in the program execution monitoring data file 50. Furthermore, the program execution tracking device 3 selects the input device 7 from among the execution data stored in the execution monitoring data file 50.
This is a device that displays on the display device 8 each execution data within the range indicated by the execution trace conditions inputted from the execution data and the contents of the paragraphs of the source program corresponding to the execution data.
第2図はプログラム実行監視データファイル50の内容
の一例を示す図である。このプログラム実行監視データ
ファイル50は、オブジェクトプログラムファイル40
に格納されたオブジェクトプログラムのプログラム名、
その版数等の情報を記録するレコード500と、そのオ
ブジェクトプログラムの実行監視の結果得られた実行デ
ータを記録するレコード群の集まりである複数の実行デ
ータ群501−1〜501−nとで構成される。FIG. 2 is a diagram showing an example of the contents of the program execution monitoring data file 50. This program execution monitoring data file 50 is the object program file 40.
program name of the object program stored in
Consisting of a record 500 that records information such as the version number, and a plurality of execution data groups 501-1 to 501-n that are a collection of records that record execution data obtained as a result of monitoring the execution of the object program. be done.
各実行データ群はそれぞれデバッグ対象プログラムの一
つの段落に対応している。Each execution data group corresponds to one paragraph of the program to be debugged.
第3図は第2図の実行データ群501−1〜501−n
のうちの任意の一つの実行データ群501−iの内容例
を示す図である。実行データ群501−iは、各々が一
つのレコードである実行データ501−i−1〜501
−1−mで構成される。各実行データ501−i−1〜
501−1mは、デバッグ対象プログラムのオブジェク
トプログラムの一つの実行ステップに対応しており、そ
の実行ステップに対応するソースプログラムの段落塩1
行番号、データの入出力ID(例えば0で入力、lで出
力)、データ名(変数名)、データ長、データの属性(
数字1文字等の区別)、入力または出力のデータの値を
含んでいる。FIG. 3 shows execution data groups 501-1 to 501-n in FIG.
It is a figure which shows the example of the content of arbitrary one execution data group 501-i among them. The execution data group 501-i includes execution data 501-i-1 to 501, each of which is one record.
-1-m. Each execution data 501-i-1~
501-1m corresponds to one execution step of the object program of the debug target program, and paragraph 1 of the source program corresponding to the execution step
Line number, data input/output ID (for example, input with 0, output with l), data name (variable name), data length, data attribute (
Contains the value of input or output data.
第4図はプログラム実行監視装置2による処理の流れ図
、第5図はプログラム実行追跡装置3による処理の流れ
図であり、以下、各図を参照して本実施例の動作を説明
する。FIG. 4 is a flowchart of processing by the program execution monitoring device 2, and FIG. 5 is a flowchart of processing by the program execution tracking device 3. The operation of this embodiment will be described below with reference to each figure.
オブジェクトプログラムファイル40に記憶されたオブ
ジェクトプログラムを実行することにより、ソースプロ
グラムファイル60に記憶された対応するソースプログ
ラムのデバッグを行う場合、先ず利用者は、入力装置7
から、デバッグ対象とするプログラムの名前、どのよう
な条件が成立したときに実行の監視を開始させるかを示
す実行監視開始条件およびどのような条件が成立したと
き実行の監視を終了させるかを示す実行監視終了条件等
を含む実行監視コマンドを入力して、プログラム実行監
視装置2を起動する。When debugging the corresponding source program stored in the source program file 60 by executing the object program stored in the object program file 40, the user first uses the input device 7 to debug the corresponding source program stored in the source program file 60.
, the name of the program to be debugged, the execution monitoring start condition that indicates what conditions are met to start execution monitoring, and the conditions that indicate what conditions are met to end execution monitoring. The program execution monitoring device 2 is started by inputting an execution monitoring command including execution monitoring termination conditions and the like.
起動されたプログラム実行監視装置2は、第4図に示す
ように、先ず、入力された実行監視コマンドを取り込み
(ステップ41)、その内の実行監視開始条件および実
行監視終了条件をそれぞれ内部の記憶領域にセットしく
ステップ42.43)、次に実行監視コマンドで示され
るデバッグ対象プログラムの名前に従ってオブジェクト
プログラムファイル40から該当するオブジェクトプロ
グラムを読み込んで、これを起動する(ステップ44)
。As shown in FIG. 4, the activated program execution monitoring device 2 first takes in the input execution monitoring command (step 41), and stores the execution monitoring start condition and execution monitoring end condition in its internal memory. (steps 42 and 43), and then reads the corresponding object program from the object program file 40 according to the name of the program to be debugged indicated by the execution monitoring command and starts it (step 44).
.
そして、以下のようにしてステップ45〜49を実行す
ることにより、実行監視コマンドで指定された実行監視
条件の範囲に含まれる各実行ステップの入出力データ、
対応するソースプログラムの段落名および行番号等を含
む実行データを一つのレコードとしてプログラム実行監
視データファイル50に順に記憶していく。Then, by executing steps 45 to 49 as follows, input/output data of each execution step included in the range of execution monitoring conditions specified by the execution monitoring command,
Execution data including paragraph names, line numbers, etc. of the corresponding source program are sequentially stored in the program execution monitoring data file 50 as one record.
先ず、プログラム実行監視装置2は、起動したオブジェ
クトプログラムが一つの実行ステップを実行する毎に、
その実行ステップにかかる実行データを取り込む(ステ
ップ45)。ここで取り込む実行データは、その実行ス
テップで入力または出力されたデータの値、属性、デー
タ長、データ名、入出力ID、当該実行ステップに対応
するソ−スプログラムの段落名および行番号である。次
に、内部の記憶領域に記憶している実行監視開始条件と
上記取り込んだ実行データ中の該当する項目の値とが一
致するか否かを調べることにより実行監視開始条件で指
定された箇所の実行が行われたか否かを判別する(ステ
ップ46)。そして、−敗しなければ即ち実行監視開始
箇所でなければ、ステップ45に戻り、上述した動作を
繰り返す。First, the program execution monitoring device 2 performs the following operations every time the started object program executes one execution step.
Execution data related to the execution step is fetched (step 45). The execution data to be imported here is the value, attribute, data length, data name, input/output ID of the data input or output in the execution step, the paragraph name and line number of the source program corresponding to the execution step. . Next, by checking whether the execution monitoring start condition stored in the internal storage area matches the value of the corresponding item in the imported execution data, the location specified by the execution monitoring start condition is checked. It is determined whether the execution has been performed (step 46). If there is no failure, that is, if it is not the execution monitoring start point, the process returns to step 45 and the above-described operations are repeated.
また、−敗すれば即ち実行監視開始箇所であれば、今回
取り込んだ実行データをプログラム実行監視データファ
イル50に次のレコードとして記録する(ステップ47
)。そして、今回取り込んだ実行データの該当する項目
の値と内部の記憶領域に記憶している実行監視終了条件
とが一致するか否かを調べることにより実行監視終了条
件で指定された箇所の実行が行われたか否かを判別しく
ステップ49)、一致しなければ即ち実行監視終了箇所
でなければステン148に進み、オブジェクトプログラ
ムが次の実行ステップを実行することにより、その実行
ステップにかかる実行データを取り込み、ステップ47
でその取り込んだ実行データをプログラム実行監視デー
タファイル50へ次のレコードとして記録する。また、
ステップ49で実行監視の終了と判定したときは第4図
の処理を終了する。このとき、プログラム実行監視デー
タファイル50に最後を示す終了レコードを記録する。Moreover, if - it is a failure, that is, if it is the execution monitoring start point, the execution data imported this time is recorded as the next record in the program execution monitoring data file 50 (step 47).
). Then, by checking whether the value of the corresponding item of the execution data imported this time matches the execution monitoring termination condition stored in the internal storage area, the execution of the part specified by the execution monitoring termination condition is executed. It is determined whether the execution has been executed or not (step 49). If they do not match, that is, if the execution monitoring is not finished, the process proceeds to step 148, where the object program executes the next execution step, and the execution data related to that execution step is stored. Import, step 47
The captured execution data is recorded in the program execution monitoring data file 50 as the next record. Also,
When it is determined in step 49 that the execution monitoring has ended, the process shown in FIG. 4 is ended. At this time, an end record indicating the end is recorded in the program execution monitoring data file 50.
以上のような処理が行われることにより、プログラム実
行監視データファイル50に、実行監視コマンドで指定
された実行監視開始条件に合致する箇所から実行監視終
了条件に合致する箇所までの範囲に含まれる各実行ステ
ップにかかる実行データが、その実行順に記録されるこ
とになる。By performing the above processing, each part included in the range from the part matching the execution monitoring start condition specified by the execution monitoring command to the part matching the execution monitoring end condition is added to the program execution monitoring data file 50. Execution data related to execution steps are recorded in the order of execution.
さて、デバッグ対象となるプログラムの実行が終了した
後、利用者が、実行追跡したいプログラム名、どのよう
な条件が成立したときに実行の追跡を開始させるか即ち
追跡開始点にかかる実行追跡開始位置条件、および追跡
方向はプログラムの実行順か或いは逆方向かを指定する
追跡方向指定等を含む実行追跡コマンドを入力装置7か
ら入力すると、プログラム実行追跡装置3が起動され、
第5図に示す処理が開始される。Now, after the execution of the program to be debugged has finished, the user can enter the name of the program to be traced, the conditions under which execution tracing should be started, that is, the execution tracing start position corresponding to the tracing start point. When an execution tracing command including a condition and a tracing direction designation specifying whether the program is executed in the order of execution or in the reverse direction is inputted from the input device 7, the program execution tracing device 3 is activated.
The process shown in FIG. 5 is started.
先ずプログラム実行追跡装置3は、入力装置7から入力
された実行追跡コマンドを取り込み(ステップ51)、
その実行追跡コマンド中に含まれる追跡対象プログラム
名と同一の名前を先頭レコードに持つプログラム実行監
視データファイル50を探索してその先頭レコード即ち
レコード500を読み込む(ステップ52)、次に、ス
テップ51で取り込んだ実行追跡コマンド中の追跡開始
位置条件および追跡方向を内部の記憶領域にセットしく
ステップ53)、プログラム実行監視データファイル5
0のレコードカウント2に“2゛°をセットする(ステ
ップ54)。そして、プログラム実行監視データファイ
ル50のレコードカウント!が指示するレコードを読み
込み、ステップ53で内部の記憶領域にセットした追跡
開始位置条件とそのレコードに含まれる実行データの該
当する項目とが一致するか否かを調べることにより、追
跡開始位置であるか否かを判定する(ステップ56)。First, the program execution tracking device 3 takes in an execution tracking command input from the input device 7 (step 51),
The program execution monitoring data file 50 whose first record has the same name as the tracked program name included in the execution tracking command is searched and its first record, that is, record 500 is read (step 52).Next, in step 51, Set the tracking start position condition and tracking direction in the captured execution tracking command in the internal storage area (Step 53), program execution monitoring data file 5
Set record count 2 of 0 to "2°" (step 54). Then, read the record indicated by record count! of the program execution monitoring data file 50, and set the tracking start position set in the internal storage area in step 53. By checking whether the condition matches the corresponding item of the execution data included in the record, it is determined whether it is the tracking start position (step 56).
一致しない場合すなわち追跡開始位置でないときは、レ
コードカウントlを+1してステップ55に戻り、プロ
グラム実行監視データファイル50から次のレコードつ
まり実行データを読み込み、ステップ56で追跡開始位
置か否かを判定する。If they do not match, that is, if it is not the tracing start position, the record count l is incremented by 1, the process returns to step 55, the next record, that is, the execution data is read from the program execution monitoring data file 50, and it is determined in step 56 whether or not it is the tracing start position. do.
ステップ56で追跡開始位置と判定したときは、追跡対
象プログラム名および当該取り込んだ実行データに含ま
れる段落名をもとに、ソースプログラムファイル60か
ら同一名のソースプログラムを見つけると共にそのソー
スプログラム中の上記段落名の段落の内容つまりその段
落に含まれる全てのソース行を読み込み(ステップ58
)、これを表示装置8の画面の例えば左側の部分に表示
する(ステラフ゛59)。なお、ソースプログラム自体
にも版数等の情報が記録されているので、ステップ52
で読み込んだレコード500中に記録された版数との比
較を行い、異なる版数のソースプログラムの場合にはエ
ラーとして処理するものである。次に、今回取り込んだ
実行データを表示装置8の画面の例えば右側の部分に表
示する(ステツブ60)。即ち、追跡開始位置に達する
と、その追跡開始位置にかかる実行データが表示装置8
に表示されると共に、その追跡開始位置に相当するソー
ス行を含む段落の全てのソース行が表示装置8に表示さ
れる。When the tracking start position is determined in step 56, a source program with the same name is found from the source program file 60 based on the tracked program name and the paragraph name included in the imported execution data, and the Reads the contents of the paragraph with the above paragraph name, that is, all source lines included in that paragraph (step 58
), this is displayed on, for example, the left side of the screen of the display device 8 (stellar screen 59). Note that information such as the version number is also recorded in the source program itself, so step 52
A comparison is made with the version number recorded in the record 500 read in, and if the source program is of a different version, it is treated as an error. Next, the currently captured execution data is displayed, for example, on the right side of the screen of the display device 8 (step 60). That is, when the tracking start position is reached, the execution data related to the tracking start position is displayed on the display device 8.
, and all source lines of the paragraph including the source line corresponding to the tracing start position are displayed on the display device 8.
次に、内部の記憶領域にセットした追跡方向を判定しく
ステップ61)、順方向であればレコードカウントlを
+IL(ステップ62)、逆方向であればレコードカウ
ントlを−lする(ステップ63)。なお、本実施例で
は追跡方向の指定がない場合、処理を終了するようにし
ている。Next, determine the tracking direction set in the internal storage area (step 61), and if the direction is forward, record count l is +IL (step 62), and if it is backward, record count l is incremented by -l (step 63). . Note that in this embodiment, if no tracking direction is specified, the process is terminated.
次に、更新したレコードカウントlに従い、プログラム
実行監視データファイル50から次のレコードを読み込
み(ステップ64)、再び追跡方向を判定しくステップ
65)、順方向であれば今回読み込んだレコードがプロ
グラム実行監視データファイル50の終わりを示す終了
レコードか否かを判定しくステップ66)、終了レコー
ドでなければステップ68に進み、終了レコードであれ
ば処理を終了する。また、追跡方向が逆方向であれば、
今回読み込んだレコードがプログラム実行監視データフ
ァイル50の先頭のレコード即ちレコード500か否か
を判定し、レコード500でなければステップ6日に進
み、レコード500であれば処理を終了する。Next, according to the updated record count l, the next record is read from the program execution monitoring data file 50 (step 64), and the tracking direction is determined again (step 65). If the direction is forward, the record read this time is the program execution monitoring data file 50. It is determined whether or not it is an end record indicating the end of the data file 50 (step 66). If it is not an end record, the process proceeds to step 68, and if it is an end record, the process is terminated. Also, if the tracking direction is the opposite direction,
It is determined whether the record read this time is the first record of the program execution monitoring data file 50, that is, record 500. If it is not record 500, the process proceeds to step 6, and if it is record 500, the process is terminated.
追跡方向が順方向或いは逆方向であり且つ今回読み込ん
だレコードが最終レコード或いはレコード500でなく
実行データを含むレコードであるときに制御が移行する
ステップ68では、今回読み込んだレコードの実行デー
タ中に含まれる段落名が、直前に読み込んだ実行データ
中の段落名と等しいか否かを判定しくステップ68)、
等しければソースプログラムの該当する段落の内容は既
に表示装置8に表示済みなので、ステップ60に進んで
今回の実行データを表示装置8に表示し、異なっていれ
ばステップ58に進んでソースプログラムの該当する段
落を読み込み、次のステップ59でその段落を表示装置
8に表示してから、ステップ60で今回の実行データを
表示装置8に表示する。In step 68, where control is transferred when the tracking direction is forward or backward and the record read this time is not the final record or record 500 but is a record containing execution data, Step 68)
If they are equal, the content of the corresponding paragraph of the source program has already been displayed on the display device 8, so the process advances to step 60 and the current execution data is displayed on the display device 8. If they are different, the process advances to step 58 and the content of the corresponding paragraph of the source program is displayed on the display device 8. The paragraph to be executed is read, the paragraph is displayed on the display device 8 in the next step 59, and the current execution data is displayed on the display device 8 in step 60.
以上のような処理が行われることにより、実行追跡コマ
ンドで指定した追跡開始位置から実行追跡コマンドで指
定した追跡方向側の実行データと該当するソースプログ
ラムの段落の内容とが表示装置8に表示されることにな
る。By performing the above processing, the execution data from the tracing start position specified by the execution tracing command to the tracing direction specified by the execution tracing command and the contents of the paragraph of the corresponding source program are displayed on the display device 8. That will happen.
なお、以上の実施例では、プログラム実行追跡装置3は
実行追跡開始位置からプログラム実行監視データファイ
ル50の先頭または最終までの範囲の実行データおよび
関連するソースプログラムの段落を抽出して表示したが
、実行追跡コマンド中に実行追跡終了位置にかかる条件
を含ませ、その条件が成立した時点で追跡処理を終了さ
せるようにしても良い。In the above embodiment, the program execution tracking device 3 extracts and displays the execution data and related paragraphs of the source program in the range from the execution tracking start position to the beginning or end of the program execution monitoring data file 50. A condition regarding the execution tracing end position may be included in the execution tracing command, and the tracing process may be terminated when the condition is satisfied.
以上説明したように、本発明のプログラムデバング支援
装置は、実行監視条件を与えてプログラム実行監視手段
を働かせ、その後実行追跡条件を与えてプログラム実行
追跡手段を働かせることにより、実行追跡条件で示され
る範囲内に含まれるソースプログラムの段落の内容と、
各実行ステップの入出力データ1段落名および行番号を
含む実行データとが出力手段から出力されるので、デバ
ッグ担当者は、その出力内容を見ることにより、ソース
プログラムのどの段落のどの実行ステップでどのような
入出力データが得られ、どのような順序でステップが実
行されたか等のプログラム実行状況を容易に認識するこ
とが可能となり、効率良くプログラムのデバッグを行う
ことが可能となる。As explained above, the program debugging support device of the present invention provides execution monitoring conditions to cause the program execution monitoring means to operate, and then provides execution tracing conditions to operate the program execution tracing means, so that the program debugging support device according to the present invention can be configured as indicated by the execution tracing conditions. the contents of the paragraphs of the source program contained within the range;
The input/output data for each execution step 1 Execution data including the paragraph name and line number is output from the output means, so the debugger can check which execution step in which paragraph of the source program by looking at the output contents. It becomes possible to easily recognize the program execution status, such as what input/output data was obtained and in what order steps were executed, and it becomes possible to debug the program efficiently.
第1図は本発明の一実施例のブロック図、第2図はプロ
グラム実行監視データファイルの内容の一例を示す図、
第3図は実行データ群の内容の一例を示す図、第4図は
プログラム実行監視装置による処理例の流れ図および、
第5図はプログラム実行追跡装置による処理例の流れ図
である。
図において、
l・・・処理装置
2・・・プログラム実行監視装置
3・・・プログラム実行追跡装置
4.5.6・・・記憶媒体
7・・・入力装置
8・・・表示装置
40・・・オブジェクトプログラムファイル50・・・
プログラム実行監視データファイル60・・・ソースプ
ログラムファイルFIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing an example of the contents of a program execution monitoring data file, FIG. 3 is a diagram showing an example of the contents of an execution data group, and FIG. 4 is a diagram showing an example of the contents of an execution data group. FIG. 5 is a flowchart of an example of processing by the program execution monitoring device; FIG. 5 is a flowchart of an example of processing by the program execution tracking device. In the figure, l...Processing device 2...Program execution monitoring device 3...Program execution tracking device 4.5.6...Storage medium 7...Input device 8...Display device 40...・Object program file 50...
Program execution monitoring data file 60...source program file
Claims (1)
ムを記憶するオブジェクトプログラムファイルと、 前記デバッグ対象となるプログラムのソースプログラム
を記憶するソースプログラムファイルと、実行監視条件
および実行追跡条件を入力する入力手段と、 実行追跡結果を出力する出力手段と、 前記オブジェクトプログラムを実行し、前記入力手段か
ら入力された実行監視条件で示される範囲内の各実行ス
テップの入出力データ、対応する前記ソースプログラム
の段落名および行番号を含む実行データをプログラム実
行監視データファイルに記憶するプログラム実行監視手
段と、 前記実行監視データファイルに記憶された実行データの
うち前記入力手段から入力された実行追跡条件で示され
る実行追跡開始位置から実行の順方向側または逆方向側
のうちの前記実行追跡条件で指定された側の各実行デー
タとそれら実行データに対応する前記ソースプログラム
の段落の内容とを前記出力手段から出力するプログラム
実行追跡手段とを具備したことを特徴とするプログラム
デバッグ支援装置。[Scope of Claims] An object program file that stores an object program of a program to be debugged, a source program file that stores a source program of the program to be debugged, and an input for inputting execution monitoring conditions and execution tracing conditions. means, an output means for outputting an execution trace result, executing the object program and input/output data of each execution step within a range indicated by the execution monitoring conditions input from the input means, and of the corresponding source program. program execution monitoring means for storing execution data including paragraph names and line numbers in a program execution monitoring data file; and a program execution monitoring means for storing execution data including paragraph names and line numbers in a program execution monitoring data file; Each piece of execution data on the side specified by the execution tracing condition from the execution tracing start position on the forward or backward side of execution and the contents of the paragraphs of the source program corresponding to the execution data are output from the output means. 1. A program debugging support device comprising: program execution tracing means for outputting program execution.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63223084A JPH0269837A (en) | 1988-09-06 | 1988-09-06 | Program debug support device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63223084A JPH0269837A (en) | 1988-09-06 | 1988-09-06 | Program debug support device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0269837A true JPH0269837A (en) | 1990-03-08 |
Family
ID=16792589
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63223084A Pending JPH0269837A (en) | 1988-09-06 | 1988-09-06 | Program debug support device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0269837A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009001297A (en) * | 2007-06-20 | 2009-01-08 | Sanko Co Ltd | Mounting structure of IC tag holder for pallet |
| JP2012190219A (en) * | 2011-03-10 | 2012-10-04 | Fujitsu Ltd | Information processing device and trace log acquisition method |
-
1988
- 1988-09-06 JP JP63223084A patent/JPH0269837A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009001297A (en) * | 2007-06-20 | 2009-01-08 | Sanko Co Ltd | Mounting structure of IC tag holder for pallet |
| JP2012190219A (en) * | 2011-03-10 | 2012-10-04 | Fujitsu Ltd | Information processing device and trace log acquisition method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8028278B2 (en) | Method of generating and utilizing debug history | |
| US6658649B1 (en) | Method, apparatus and article of manufacture for debugging a user defined region of code | |
| US6964036B2 (en) | Descriptive variables while debugging | |
| US6961924B2 (en) | Displaying variable usage while debugging | |
| US7178135B2 (en) | Scope-based breakpoint selection and operation | |
| US6981248B2 (en) | Conditional breakpoint encountered indication | |
| US7089535B2 (en) | Code coverage with an integrated development environment | |
| JPH07334211A (en) | Data trace method of programmable controller | |
| US20030018957A1 (en) | Debugger monitor with anticipatory highlights | |
| CA2492367C (en) | Data processing system | |
| CN117520155A (en) | RPA flow debugging method and device, electronic equipment and storage medium | |
| JP2000207246A (en) | Debugging support apparatus and method, and recording medium recording debug support software | |
| JP3389745B2 (en) | Apparatus and method for measuring program performance | |
| JP2001184235A (en) | Log information acquisition and analysis device | |
| JPH04217034A (en) | Display system for program trace | |
| JPH0468446A (en) | Debugging supporting device | |
| JPH06250876A (en) | Interactive debugging supporting system | |
| JP2910548B2 (en) | Data check device | |
| JPH05151030A (en) | Information display method when the user program ends abnormally | |
| JPS60252959A (en) | On-line trace controlling system | |
| JPS6341948A (en) | Symbolic debug system | |
| JPH0448343A (en) | Program debug back-up device | |
| JPS63640A (en) | Execution control system for partial unit of data flow | |
| JP2002073371A (en) | Program debugging method | |
| JPH05274190A (en) | Work station operating information analyzing system |