JPH06250876A - Interactive debugging supporting system - Google Patents

Interactive debugging supporting system

Info

Publication number
JPH06250876A
JPH06250876A JP5037705A JP3770593A JPH06250876A JP H06250876 A JPH06250876 A JP H06250876A JP 5037705 A JP5037705 A JP 5037705A JP 3770593 A JP3770593 A JP 3770593A JP H06250876 A JPH06250876 A JP H06250876A
Authority
JP
Japan
Prior art keywords
program
variable
source
variable value
debug
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.)
Withdrawn
Application number
JP5037705A
Other languages
Japanese (ja)
Inventor
Osamu Kurita
治 栗田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP5037705A priority Critical patent/JPH06250876A/en
Publication of JPH06250876A publication Critical patent/JPH06250876A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Digital Computer Display Output (AREA)

Abstract

PURPOSE:To easily collect information at the time of debugging by visually displaying a source list with variable values in the case of displaying a source list at the time of program debugging. CONSTITUTION:A variable value table preparing part 10 for sampling a real variable at the time of executing variables in a program, a variable editing/ outputting part 11 for visually displaying correspondence between a source program 8 consisting of symbolic codes and a source program substituted by variable values and a variable value table 4 for storing the real variable of each line at the time of executing the program are connected to a debugging supporting part 6. A program to be tested is executed by the supporting part 6, real variable values are acquired and stored in the table 4 and a source list with variable values is visually displayed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、対話型デバック支援
システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interactive debug support system.

【0002】[0002]

【従来の技術】従来、プログラムをデバックするデバッ
ク支援システムは、プログラムを実行させループあるい
は例外条件または結果の誤りが生じるとき、ソースプロ
グラムに記述されているシンボリック情報、例えばプロ
グラム名,変数名,ラベル,行番号を利用し、プログラ
ムの障害情報を出力することができる。また、デバック
支援システムは、中断点あるいは例外発生個所や一文ご
とにプログラムの実行を追跡する際、対応するソースプ
ログラム行を可視表示することができる。
2. Description of the Related Art Conventionally, a debug support system for debugging a program executes symbolic information, such as a program name, a variable name, a label, which is described in a source program when the program is executed and a loop or an exception condition or an error in the result occurs. , Problem information of the program can be output by using the line number. In addition, the debug support system can visually display the corresponding source program line when tracing the execution of the program for each break point or exception occurrence point or for each sentence.

【0003】しかし、プログラムのソースリストの可視
表示と、そのプログラムで定義している変数の実行時の
変数値の可視表示とは、別別の機能として扱われ、同時
に可視表示することができない。そのため、変数値の変
化を追跡するとき、障害情報の取得に手間がかかった。
However, the visible display of the source list of the program and the visible display of the variable value at the time of execution of the variables defined in the program are treated as different functions and cannot be displayed simultaneously. Therefore, when tracking the change of the variable value, it took time and effort to acquire the failure information.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の手法で
は、変数値およびそれの変化を、プログラムの実行を指
定の行で中断させその時点における指定の変数の値を可
視表示すること、あるいは特定の変数の値を常に可視表
示すること、によって検査できるが、実行する各行毎に
変数の変化がソースプログラムのリストと対比し、検査
することができない。
In the above-mentioned conventional method, the variable value and its change are interrupted by executing the program at a specified line, and the value of the specified variable at that time is visually displayed or specified. The value of the variable can be inspected by always displaying it, but the change of the variable cannot be inspected because it is compared with the list of the source program for each line executed.

【0005】[0005]

【課題を解決するための手段】この発明の目的は、プロ
グラムの実行中に、プログラムの各行で使用されている
変数の値を変数値テーブルに登録し、プログラムのソー
スリストを出力する際、変数の値を変数値テーブルから
取得し、プログラムのソースリストとそのソースリスト
で使用されている変数に取得した変数値が置換えられて
いるソースリストとを対比して編集し、同一リストで可
視表示する。それによって、デバック時の障害情報取得
が迅速かつ容易になるため、効率的に作業ができる。
SUMMARY OF THE INVENTION An object of the present invention is to register the values of variables used in each line of a program in a variable value table during execution of the program and output the source list of the program. Value from the variable value table, edit and compare the source list of the program with the source list in which the acquired variable value replaces the variable used in that source list, and display it in the same list. . Thereby, the trouble information can be acquired quickly and easily at the time of debugging, and the work can be performed efficiently.

【0006】そのため、この発明の、試験対象プログラ
ムを記憶する記憶部と、前記プログラムを実行させデバ
ック情報を採取するデバック支援部と、前記デバック支
援部に対するデバック指令を入力し、前記デバック情報
を可視表示する端末装置と、を有する対話型デバック支
援システムにおいて、前記プログラムのソースプログラ
ムを格納するソースプログラムファイルと、 前記プロ
グラムの変数のポインタを含むデバック情報を格納する
デバック用データベースと、前記プログラム実行時の前
記変数の値を採取し、変数値テーブルに記憶する変数値
テーブル作成部と、前記ソースプログラムと、前記ソー
スプログラムの変数に前記変数の値が置換えられている
ソースプログラムとを対比し、可視表示する変数値編集
出力部と、を備える。
Therefore, according to the present invention, a storage unit for storing a program to be tested, a debug support unit for executing the program and collecting debug information, and a debug command for the debug support unit are input to make the debug information visible. In an interactive debugging support system having a terminal device for displaying, a source program file storing a source program of the program, a debugging database storing debugging information including pointers of variables of the program, and a program execution time The variable value table creation unit that collects the value of the variable and stores the variable value table in the variable value table, the source program, and the source program in which the variable of the source program is replaced with the variable of the source program are visible. And a variable value edit output unit to be displayed. .

【0007】[0007]

【実施例】次に、この発明の実施例について図面を参照
して説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0008】この発明の一実施例の構成を示す図1を参
照すると、この対話型デバック支援システム1は、実行
する試験対象プログラムのプログラム部を記憶するプロ
グラム部領域2,そのデータ部を記憶するデータ部領域
3およびプログラム各行の実行時の変数値を記憶する変
数値テーブル4と、を有する記憶部5と、プログラムを
実行し、指定行で停止させてデバック情報を採取し、指
定行に対応するソース行を可視表示するデバック支援部
6と、デバック支援部6にデバック指示を入力し、ソー
スリストを可視表示する端末装置7と、試験対象プログ
ラムのソースプログラムファイル8と、ソースプログラ
ムのコンパイル時に得られる変数のポインターを含むデ
バック用データベース9と、実行中のプログラムの各行
の変数値をソースプログラムファイル8,デッバック用
データベース9およびデータ部3から採取する変数値テ
ーブル作成部10と、ソースプログラムとその変数に変
数値を置換え、編集し、可視表示する変数値編集部11
と、を備える。
Referring to FIG. 1 showing a configuration of an embodiment of the present invention, the interactive debug support system 1 stores a program section area 2 for storing a program section of a test target program to be executed and a data section thereof. A storage unit 5 having a data value area 3 and a variable value table 4 for storing the variable values at the time of execution of each line of the program, and executing the program, stopping at the specified line, collecting debug information, and responding to the specified line A debug support unit 6 for visually displaying source lines, a terminal device 7 for visually displaying a source list by inputting a debug instruction to the debug support unit 6, a source program file 8 of a program to be tested, and a source program compilation time. Sources the debug database 9 that contains the pointers of the obtained variables and the variable values of each line of the program being executed. Program files 8, the variable value table creating unit 10 taken from Debbakku database 9 and the data unit 3, replacing the value of a variable in the source program and its variables, and edit variable values editing unit 11 for visual display
And

【0009】更に、変数値テーブル作成部10の機能構
成を示す図2と、変数値編集部11の機能構成を示す図
3と、シンボリックコードで表わされるソースプログラ
ムおよびその変数に変数値を置換えられているソースプ
ログラムとを対比し、編集し可視表示する画面を例示す
る図4と、を援用し、この実施例の動作を説明する。
Further, FIG. 2 showing the functional configuration of the variable value table creating section 10, FIG. 3 showing the functional configuration of the variable value editing section 11, and the variable values can be replaced by the source program and its variables represented by symbolic codes. The operation of this embodiment will be described with reference to FIG. 4 exemplifying a screen that is edited and visually displayed in comparison with the source program that is being used.

【0010】変数値テーブル作成部10の構成を示す図
2を参照し、それの動作の詳細を説明すると、端末装置
7によって、試験対象のプログラム2のデバック開始を
指示すると、デバック支援部6は、変数値テーブル作成
部10を起動する。変数値テーブル作成部10の変数値
作成制御部22は試験対象プログラムに対し、全てのプ
ログラム行に中断点を設定する指令をデバック支援部6
に送付する。デバック支援部6はプログラムを実行さ
せ、各行毎に、その実行を中断し、その行の中断アドレ
スを変数値テーブル作成制御部22に送付する。そし
て、変数値テーブル作成制御部22では、デバック用デ
ータベース9に格納されているプログラムのデバック情
報の行番号を基に、その中断アドレスに対応する行番号
に変換する。変換される行番号はソースリスト解析部2
1に送付され、ソースリスト解析部21は、その行番号
に対応する行の内容をソースプログラムファイル8から
取得し、その行を単語に分割し、変数値テーブル作成制
御部22に送付する。変数値テーブル作成制御部22は
単語を1個づつ変数値取得部23に送付する。変数値取
得部23では、単語が変数であるか否かをデバック用デ
ータベース9のデバック情報を基に判定する。単語が変
数である場合、変数値取得部23はデバック情報を基に
変数の値が格納されているアドレスを算出し、データ部
領域3から変数の値を取得する。取得される変数値は変
数値テーブル作成制御部22に送付され、変数の値およ
び行番号を編集し、変数値テーブルに登録する。
Referring to FIG. 2 showing the configuration of the variable value table creating section 10, the operation thereof will be described in detail. When the terminal device 7 instructs the debugging start of the program 2 to be tested, the debugging support section 6 The variable value table creation unit 10 is activated. The variable value creation control unit 22 of the variable value table creation unit 10 issues a command to the test target program to set the break points on all program lines.
To send. The debug support unit 6 executes the program, interrupts the execution of each line, and sends the interrupt address of the line to the variable value table creation control unit 22. Then, the variable value table creation control unit 22 converts the line number of the debug information of the program stored in the debug database 9 into the line number corresponding to the interruption address. The line number to be converted is the source list analysis unit 2
1, the source list analysis unit 21 acquires the contents of the line corresponding to the line number from the source program file 8, divides the line into words, and sends the words to the variable value table creation control unit 22. The variable value table creation control unit 22 sends the words to the variable value acquisition unit 23 one by one. The variable value acquisition unit 23 determines whether or not the word is a variable based on the debug information in the debug database 9. When the word is a variable, the variable value acquisition unit 23 calculates the address in which the value of the variable is stored based on the debug information, and acquires the value of the variable from the data area 3. The acquired variable value is sent to the variable value table creation control unit 22, and the variable value and line number are edited and registered in the variable value table.

【0011】次に、変数値編集出力部11の動作を図3
を参照し説明すると、変数値テーブル4に格納されてい
る変数値を取得し、プログラムのソースリスト8および
プログラムで使用している全ての変数の値を対比できる
リストに編集し、可視表示する変数値付きソースリスト
編集処理を行う。
Next, the operation of the variable value edit output unit 11 will be described with reference to FIG.
, The variable values stored in the variable value table 4 are acquired, the source list 8 of the program is edited, and the values of all the variables used in the program are edited in a list that can be compared and displayed visually. Perform valued source list edit process.

【0012】先ず、端末装置7からデバック支援部6を
通じ、変数付きソースリストの可視表示が変数値編集出
力制御部25に指示されると、変数値編集出力制御部2
5は、可視表示の指示に含まれるソーススリストの行番
号を基に、ソースプログラムの先頭から順に指定される
行番号をソースリスト検索部26に送付する。ソースリ
スト検索部26では、その行番号に対応する行の内容を
ソースプログラムファイル8から取得し、更に、渡され
る行番号に対応する変数の値を数値テーブル4から取得
する。取得する行の内容と変数の値は変数値編集出力制
御部25に送付される。変数値編集出力制御部25で
は、送付される行の内容と変数の値を変数値置換出力部
24に送付する。変数値置換出力部24では、その行の
内容と変数の値を編集し、端末装置7に可視表示する。
First, when the visual display of the source list with variables is instructed to the variable value edit output control unit 25 from the terminal device 7 through the debug support unit 6, the variable value edit output control unit 2
Reference numeral 5 sends line numbers sequentially designated from the beginning of the source program to the source list search unit 26 based on the line numbers of the source list included in the visual display instruction. The source list search unit 26 acquires the contents of the line corresponding to the line number from the source program file 8, and further acquires the value of the variable corresponding to the passed line number from the numerical value table 4. The content of the acquired line and the value of the variable are sent to the variable value edit output control unit 25. The variable value edit output control unit 25 sends the contents of the line to be sent and the value of the variable to the variable value replacement output unit 24. The variable value replacement output unit 24 edits the content of the line and the value of the variable and visually displays them on the terminal device 7.

【0013】更に、次は、変数値置換出力部24が出力
する変数値付きソースリストの可視表示画面を例示する
図4を参照すると、番号27の行はソース行である。右
矢印が付されている番号28の行は変数名を変数値に変
換されているソース行である。001000行を例にす
ると、A(I)=0がシンボリックコードによって表わ
されるソース行である。5(100)=0が変数名を変
数の値に変換されているソース行である。変数名を変数
の値に変換されているソース行の“5”は配列変数A
(100)の値である。そして、この値は“0”が代入
される前の値である。100は変数Iの値を表わす。
Further, referring to FIG. 4 exemplifying the visual display screen of the source list with variable values output by the variable value substitution output unit 24, the line number 27 is the source line. The line numbered 28 with a right arrow is a source line in which a variable name is converted into a variable value. Taking line 001000 as an example, A (I) = 0 is the source line represented by the symbolic code. 5 (100) = 0 is the source line in which the variable name is converted into the variable value. "5" in the source line where the variable name is converted to the variable value is array variable A
It is a value of (100). Then, this value is a value before "0" is substituted. 100 represents the value of the variable I.

【0014】[0014]

【発明の効果】以上説明したように、この発明によれ
ば、プログラムの実行中にプログラムの各行で使用され
ている変数の値を変数値テーブルに退避し、プログラム
のソースリスートを出力する際、変数値テーブルから各
行で使用している変数の値を取得し、プログラムのソー
スリストとプログラムで定義している全ての変数の値を
同一リストに編集し、可視表示することにより、デバッ
ク時のデバック情報を容易に収集できる。
As described above, according to the present invention, when the value of the variable used in each line of the program is saved in the variable value table during execution of the program and the source list of the program is output, the variable Debug information at the time of debugging by acquiring the value of the variable used in each line from the value table, editing the source list of the program and the values of all variables defined in the program in the same list, and displaying them visually Can be easily collected.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の一実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.

【図2】図1の変数値テーブル作成部の構成を示す図で
ある。
FIG. 2 is a diagram showing a configuration of a variable value table creation unit in FIG.

【図3】図1の変数値編集出力部の構成を示す図であ
る。
FIG. 3 is a diagram showing a configuration of a variable value edit output unit in FIG.

【図4】変数値付きソースリストの可視表示画面の一例
である。
FIG. 4 is an example of a visible display screen of a source list with variable values.

【符号の説明】[Explanation of symbols]

1 対話型デバック支援システム 2 プログラム部領域 3 データ部領域 4 変数値テーブル 5 記憶部 6 デバック支援部 7 端末装置 8 ソースプログラムファイル 9 デバック用データベース 10 変数値テーブル作成部 11 変数値編集出力部 1 Interactive Debug Support System 2 Program Part Area 3 Data Part Area 4 Variable Value Table 5 Storage Part 6 Debug Support Part 7 Terminal Device 8 Source Program File 9 Debug Database 10 Variable Value Table Creation Part 11 Variable Value Edit Output Part

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 試験対象プログラムを記憶する記憶部
と、前記プログラムを実行させデバック情報を採取する
デバック支援部と、前記デバック支援部に対するデバッ
ク指令を入力し、前記デバック情報を可視表示する端末
装置と、を有する対話型デバック支援システムにおい
て、 前記プログラムのソースプログラムを格納するソースプ
ログラムファイルと、 前記プログラムの変数のポインタを含むデバック情報を
格納するデバック用データベースと、 前記プログラム実行時の前記変数の値を採取し、変数値
テーブルに記憶する変数値テーブル作成部と、 前記ソースプログラムと、前記ソースプログラムの変数
に前記変数の値が置換えられているソースプログラムと
を対比し可視表示する変数値編集出力部と、 を備える対話型デバック支援システム。
1. A storage device that stores a program to be tested, a debug support unit that executes the program and collects debug information, and a terminal device that inputs a debug command to the debug support unit and visually displays the debug information. In an interactive debugging support system having, a source program file storing a source program of the program, a debugging database storing debugging information including a pointer of a variable of the program, and a variable of the variable at the time of executing the program. A variable value table creation unit that collects values and stores them in a variable value table, the source program, and a variable value edit that visually displays the source program and the source program in which the values of the variables are replaced by the variables of the source program An interactive debugging support system that includes an output unit and Temu.
JP5037705A 1993-02-26 1993-02-26 Interactive debugging supporting system Withdrawn JPH06250876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5037705A JPH06250876A (en) 1993-02-26 1993-02-26 Interactive debugging supporting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5037705A JPH06250876A (en) 1993-02-26 1993-02-26 Interactive debugging supporting system

Publications (1)

Publication Number Publication Date
JPH06250876A true JPH06250876A (en) 1994-09-09

Family

ID=12504947

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5037705A Withdrawn JPH06250876A (en) 1993-02-26 1993-02-26 Interactive debugging supporting system

Country Status (1)

Country Link
JP (1) JPH06250876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016173799A (en) * 2015-03-18 2016-09-29 日本電気株式会社 Debug support apparatus and debug support method
CN111033475A (en) * 2017-11-10 2020-04-17 欧姆龙株式会社 Control program development support device, control program development support system, control program development support method, and control program development support program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016173799A (en) * 2015-03-18 2016-09-29 日本電気株式会社 Debug support apparatus and debug support method
CN111033475A (en) * 2017-11-10 2020-04-17 欧姆龙株式会社 Control program development support device, control program development support system, control program development support method, and control program development support program

Similar Documents

Publication Publication Date Title
US6658649B1 (en) Method, apparatus and article of manufacture for debugging a user defined region of code
US5926638A (en) Program debugging system for debugging a program having graphical user interface
US7178135B2 (en) Scope-based breakpoint selection and operation
JPH06250876A (en) Interactive debugging supporting system
JPS6175435A (en) Association system between syntax checker and text editor
JPH0926897A (en) Program analyzer and program analyzing method
JPH02275539A (en) Debugging system
JPS6254337A (en) Specification displaying system for program hierarchy
JPH05233323A (en) Debug supporting device for parallel program
JPH06290039A (en) Method for changing program
JPH0269837A (en) Program debug support device
JPH0264747A (en) Function trace/step trace switching control system
JPH0262639A (en) Interruption system for language debugger
JPH05334135A (en) Error information display system for abnormal end of program
JPH0327452A (en) Program debugging system
JPH06348541A (en) Program test system
JPS63278151A (en) Debugging device
JPH04162149A (en) Electronic computer
JPH0468446A (en) Debugging supporting device
JPH0431933A (en) Source program analyzing device
JPH01298436A (en) Automatic measuring system for program automatic preparing ratio data
JPH02238532A (en) Resident file analyzing device
JPH01223567A (en) Document preparing device
JPH06314112A (en) Numerical controller
JPH09297680A (en) Method and system for inputting parameter in application development environment

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000509