JPH01226041A - Debugging support processing system for program including input/output sentence - Google Patents
Debugging support processing system for program including input/output sentenceInfo
- Publication number
- JPH01226041A JPH01226041A JP63051979A JP5197988A JPH01226041A JP H01226041 A JPH01226041 A JP H01226041A JP 63051979 A JP63051979 A JP 63051979A JP 5197988 A JP5197988 A JP 5197988A JP H01226041 A JPH01226041 A JP H01226041A
- Authority
- JP
- Japan
- Prior art keywords
- input
- program
- output
- statement
- sentence
- 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
- 238000000034 method Methods 0.000 claims description 11
- 238000003672 processing method Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野〕
本発明は入出力文を含むプログラムのデバッグ支援処理
方式に関し、特にプログラムの実行開始時にオプション
を指定できる機構をもつ計算機システム上で入出力文を
含むプログラム(以下、単にプログラムと称する)のデ
バッグを支援するデバッグ支援処理方式に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a debugging support processing method for programs containing input/output statements. The present invention relates to a debugging support processing method that supports debugging of a program (hereinafter simply referred to as a program) including the following.
−aに、プログラムのデバッグを行う場合には、プログ
ラムの処理の流れの解析が必要になることがある。この
プログラムの処理の流れを解析する方法として、従来は
以下の2つの方法が用いられていた。-a) When debugging a program, it may be necessary to analyze the process flow of the program. Conventionally, the following two methods have been used to analyze the flow of processing of this program.
まず、第1の方法は、利用者がプログラム中に出力文を
挿入して挿入された・出力文の出力結果に基づいてプロ
グラムの処理を流れを解析する方法である。The first method is a method in which a user inserts an output statement into a program and analyzes the flow of the program's processing based on the output result of the inserted output statement.
第2の方法は、計算機システムがデバッグ支援機能を有
する場合に、利用者がプログラムのコンパイル時にデバ
ッグ支援機能を動作させる指定を行い、さらにプログラ
ムの実行時にトレース点を設定することによってプログ
ラムの処理の流れを解析する方法である。The second method is when the computer system has a debug support function, the user specifies the debug support function to operate when compiling the program, and further sets trace points when the program is executed. This is a method of analyzing flow.
上述した従来のプログラムのデバッグ支援処理方式では
、以下に述べるような欠点がある。The conventional program debugging support processing method described above has the following drawbacks.
まず、第1の方法では、出力文の出力結果に基づいてプ
ログラムの処理の流れを解析していたので、利用者がデ
バッグの対象となるプログラムに出力文を挿入しなけれ
ばならず、また、必要なくなれば出力文の削除を行わな
ければならないという欠点がある。First, in the first method, the flow of program processing is analyzed based on the output result of the output statement, so the user has to insert the output statement into the program to be debugged. The disadvantage is that the output statement must be deleted when it is no longer needed.
また、第2の方法では、計算機システムが有するデバッ
グ支援機能を用いてプログラムの処理の流れを解析して
いたので、利用者はプログラムのコンパイル時にデバッ
グ支援機能を動作させる指定をしたうえでプログラムの
実行時にトレース点の指定をしなければならないという
欠点がある。In addition, in the second method, the flow of program processing was analyzed using the debugging support function of the computer system, so the user specified that the debugging support function should be activated when compiling the program, and then compiled the program. The disadvantage is that the trace point must be specified at runtime.
本発明の目的は、上述の点に鑑み、プログラムのデバッ
グを支援するためにプログラムの処理の流れを解析する
ときに利用者がプログラムの変更を行ったりデバッグ支
援機能を動作させる指定をしたうえでトレース点の指定
を行ったりする必要をなくした入出力文を含むプログラ
ムのデバッグ支援処理方式を提供することにある。In view of the above-mentioned points, an object of the present invention is to support program debugging by allowing a user to make changes to a program or specify to operate a debugging support function when analyzing the processing flow of a program. The object of the present invention is to provide a debugging support processing method for programs containing input/output statements that eliminates the need to specify trace points.
本発明の入出力文を含むプログラムのデバッグ支援方式
は、プログラムの実行開始時にオプションを指定できる
機構をもつ計算機システムにおいて、前記プログラムに
含まれる入出力文の実行処理を行う入出力実行処理手段
と、この入出力実行処理手段により呼び出され前記入出
力文の種類。The debugging support method for a program including input/output statements according to the present invention provides an input/output execution processing means for executing input/output statements included in the program in a computer system having a mechanism for specifying options at the start of program execution. , the type of input/output statement called by this input/output execution processing means.
前記入出力文で指定されている装置番号、前記プログラ
ムのプログラム名、前記入出力文の行番号等の入出力文
トレース情報を表示するか否かを示す入出力文トレース
情報表示指定オプションが前記プログラムの実行開始時
に予め指定されているか否かを認識するオプション認識
手段と、このオプション認識手段によって入出力文トレ
ース情報指定オプションが認識された場合に前記入出力
実行処理手段によって呼び出され前記入出力文トレース
情報を表示装置に表示する入出力文トレース情報表示手
段とを有する。The input/output statement trace information display specification option indicating whether to display input/output statement trace information such as the device number specified in the input/output statement, the program name of the program, the line number of the input/output statement, etc. an option recognition means that recognizes whether or not it has been specified in advance at the start of program execution; and an option recognition means that is called by the input/output execution processing means when the input/output statement trace information specification option is recognized by this option recognition means; and input/output sentence trace information display means for displaying sentence trace information on a display device.
本発明の入出力文を含むプログラムのデバッグ支援方式
では、入出力実行処理手段がプログラムに含まれる入出
力文の実行処理を行い、オプション認識手段が入出力実
行処理手段により呼び出され入出力文の種類、入出力文
で指定されている装置t1号、プログラムのプログラム
名、入出力文の行番号等の入出力文トレース情報を表示
するか否かを示す入出力文トレース情報表示指定オプシ
ョンがプログラムの実行開始時に予め指定されているか
否かを認識し、入出力文トレース情報表示手段がオプシ
ョン認識手段によって入出力文トレース情報指定オプシ
ョンが認識された場合に入出力実行処理手段によって呼
び出され入出力文トレース情報を表示装置に表示する。In the debugging support method for a program including input/output statements of the present invention, the input/output execution processing means executes the input/output statements included in the program, and the option recognition means is called by the input/output execution processing means to execute the input/output statements included in the program. The input/output statement trace information display specification option that indicates whether to display input/output statement trace information such as type, device t1 specified in the input/output statement, program name of the program, line number of the input/output statement, etc. When the input/output statement trace information display means recognizes the input/output statement trace information specification option by the option recognition means, the input/output statement trace information display means is called by the input/output execution processing means. Display statement trace information on a display device.
次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例の入出力文を含むプログラ
ムのデバッグ支援処理方式の構成を示すブロック図であ
る。本実施例の入出力文を含むプログラムのデバッグ支
援方式は、FORTRAN言語で作成されたプログラム
lと、オプション認識手段2と、入出力実行処理手段3
と、入出力文トレース情報表示手段4と、表示装置5と
から構成されている。FIG. 1 is a block diagram showing the configuration of a debugging support processing method for a program including input/output statements according to an embodiment of the present invention. The debugging support system for a program including input/output statements in this embodiment consists of a program l created in the FORTRAN language, an option recognition means 2, and an input/output execution processing means 3.
, an input/output statement trace information display means 4 , and a display device 5 .
次に、このように構成された本実施例の入出力文を含む
プログラムのデバッグ支援処理方式の動作について説明
する。Next, the operation of the debugging support processing method for a program including input/output statements according to the present embodiment configured as described above will be explained.
利用者は、必要であればプログラムlの実行開始時に入
出力文トレース情報を表示することを指、定するオプシ
ョンである入出力文トレース情報表示オプシジンを予め
指定する。If necessary, the user specifies in advance the input/output statement trace information display option, which is an option for specifying display of input/output statement trace information at the start of execution of the program l.
プログラム1の実行が開始され、プログラム1中に含ま
れる入出力文の実行を行う場合には、プログラム1は入
出力実行処理手段3を呼び出す。When execution of the program 1 is started and an input/output statement included in the program 1 is to be executed, the program 1 calls the input/output execution processing means 3.
プログラム1から呼び出された入出力実行処理手段3は
、入出力文の実行処理を行った後にオプション認識手段
2を呼び出す。The input/output execution processing means 3 called from the program 1 calls the option recognition means 2 after executing the input/output statement.
入出力実行処理手段3から呼び出されたオプション認識
手段2は、入出力文トレース情報表示オプションが指定
されていることを認識し、入出力実行処理手段3に対し
て通知する。The option recognition means 2 called by the input/output execution processing means 3 recognizes that the input/output statement trace information display option is specified, and notifies the input/output execution processing means 3.
オプション認識手段2から入出力文トレース情報表示オ
プションが指定されていることを通知された入出力実行
処理手段3は、入出力文トレース情報表示手段4を呼び
出す。なお、オプション認識手段2から入出力文トレー
ス情報表示オプションが指定されていることが通知され
なかった場合には、入出力実行処理手段3は、入出力文
トレース情報表示手段4を呼び出さない。The input/output execution processing means 3, notified by the option recognition means 2 that the input/output statement trace information display option has been designated, calls the input/output statement trace information display means 4. Note that if the option recognition means 2 does not notify that the input/output statement trace information display option is specified, the input/output execution processing means 3 does not call the input/output statement trace information display means 4.
入出力実行処理手段3から呼び出された入出力文トレー
ス情報表示手段4は、入出力実行処理手段3が処理した
入出力文の解析を行い、入出力文の種類、入出力文によ
って指定されている装置番号、プログラム1のプログラ
ム名および入出力文の行番号からなる入出力文トレース
情報を表示装置5に表示する。The input/output statement trace information display unit 4 called by the input/output execution processing unit 3 analyzes the input/output statement processed by the input/output execution processing unit 3, and determines the type of input/output statement and the information specified by the input/output statement. The input/output statement trace information consisting of the device number, the program name of program 1, and the line number of the input/output statement is displayed on the display device 5.
例えば、第1図に示すプログラムlの行番号「1000
Jの入出力文
WRITE (6,*) I、 Rの入出力文トレ
ース情報の表示について説明する。For example, line number "1000" of program l shown in FIG.
J's input/output statement WRITE (6, *) I, R's input/output statement trace information display will be explained.
なお、上記WRITE文中のr6Jは、表示装置5の装
置番号を示しているものとする。Note that r6J in the above WRITE statement indicates the device number of the display device 5.
まず、第2図に示すように、入出力実行処理手段3によ
る上記WRITE文の実行処理により、入出力並びrl
、RJの値r100 200Jが表示装置5に表示され
る。First, as shown in FIG. 2, the input/output execution processing means 3 executes the WRITE statement, causing
, RJ values r100 200J are displayed on the display device 5.
次に、入出力文トレース情報表示手段4による入出力文
トレース情報の表示処理により、入出力文の種類を示す
rEXEc’WRITE’J、装置番号を示すrUNI
T−6J、プログラム名を示すrPROG=MA IN
Jおよび実行処理が行われた入出力文の行番号を示すr
ELN= 1000」が表示装置5に表示される。Next, by displaying the input/output statement trace information by the input/output statement trace information display means 4, rEXEc'WRITE'J indicating the type of input/output statement and rUNI indicating the device number are displayed.
T-6J, rPROG indicating the program name = MA IN
J and r indicating the line number of the input/output statement that was executed
ELN=1000” is displayed on the display device 5.
C発明の効果〕
以上説明したように本発明は、プログラムの実行開始時
にオプションを指定するだけで入出力文トレース情報を
表示装置に表示できるようにしたことにより、利用者は
、プログラムのデバッグのためにプログラムの処理の流
れを解析するときにプログラムを変更することなしに各
入出力文の実行順序およびどの装置番号の入出力装置に
対して入出力を行ったかを知ることができ、プログラム
の処理の流れを簡単に解析することができるという効果
がある。C. Effects of the Invention] As explained above, the present invention allows input/output statement trace information to be displayed on a display device simply by specifying an option at the start of program execution, making it easier for the user to debug a program. Therefore, when analyzing the processing flow of a program, you can know the execution order of each input/output statement and the device number of the input/output device to which input/output was performed without changing the program. This has the effect that the flow of processing can be easily analyzed.
第1図は本発明の一実施例の入出力文を含むプログラム
のデバッグ支援処理方式の構成を示すブロック図、
第2図は第1図中の表示装置に表示される入出力文トレ
ース情報の一例を示す図である。
図において、
1・・・プログラム、
2・・・オプション認識手段、
3・・・入出力実行処理手段、
4・・・入出力文トレース情報表示手段、5・・・表示
装置である。FIG. 1 is a block diagram showing the configuration of a debugging support processing method for a program including input/output statements according to an embodiment of the present invention, and FIG. 2 shows input/output statement trace information displayed on the display device in FIG. 1. It is a figure showing an example. In the figure, 1: program, 2: option recognition means, 3: input/output execution processing means, 4: input/output statement trace information display means, 5: display device.
Claims (1)
をもつ計算機システムにおいて、前記プログラムに含ま
れる入出力文の実行処理を行う入出力実行処理手段と、 この入出力実行処理手段により呼び出され前記入出力文
の種類、前記入出力文で指定されている装置番号、前記
プログラムのプログラム名、前記入出力文の行番号等の
入出力文トレース情報を表示するか否かを示す入出力文
トレース情報表示指定オプションが前記プログラムの実
行開始時に予め指定されているか否かを認識するオプシ
ョン認識手段と、 このオプション認識手段によって入出力文トレース情報
指定オプションが認識された場合に前記入出力実行処理
手段によって呼び出され前記入出力文トレース情報を表
示装置に表示する入出力文トレース情報表示手段と、 を有することを特徴とする入出力文を含むプログラムの
デバッグ支援処理方式。[Scope of Claims] In a computer system having a mechanism for specifying options at the start of program execution, an input/output execution processing means for executing input/output statements included in the program; Input/output indicating whether to display input/output statement trace information such as the type of the input/output statement, the device number specified in the input/output statement, the program name of the program, and the line number of the input/output statement. an option recognition means for recognizing whether or not a statement trace information display specification option has been specified in advance at the start of execution of the program; and a method for executing the input/output when the input/output statement trace information specification option is recognized by the option recognition means 1. A debug support processing method for a program including input/output statements, comprising: input/output statement trace information display means that is called by a processing means and displays the input/output statement trace information on a display device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63051979A JPH01226041A (en) | 1988-03-04 | 1988-03-04 | Debugging support processing system for program including input/output sentence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63051979A JPH01226041A (en) | 1988-03-04 | 1988-03-04 | Debugging support processing system for program including input/output sentence |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01226041A true JPH01226041A (en) | 1989-09-08 |
Family
ID=12901982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63051979A Pending JPH01226041A (en) | 1988-03-04 | 1988-03-04 | Debugging support processing system for program including input/output sentence |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01226041A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003048937A1 (en) * | 2001-12-07 | 2003-06-12 | Ntt Docomo, Inc. | Mobile communication terminal, apparatus and system for delivering application software, method for controlling execution state display, program, and recording medium |
-
1988
- 1988-03-04 JP JP63051979A patent/JPH01226041A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003048937A1 (en) * | 2001-12-07 | 2003-06-12 | Ntt Docomo, Inc. | Mobile communication terminal, apparatus and system for delivering application software, method for controlling execution state display, program, and recording medium |
US7440752B2 (en) | 2001-12-07 | 2008-10-21 | Ntt Docomo, Inc. | Mobile communication terminal, apparatus and system for delivering application software, method for controlling execution state display, program, and recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6658649B1 (en) | Method, apparatus and article of manufacture for debugging a user defined region of code | |
JPH02272645A (en) | Method for supporting program debugging | |
KR19990034145A (en) | Dynamic-visual integrated parallel debugging device and debugging method | |
JPH01226041A (en) | Debugging support processing system for program including input/output sentence | |
Chandhok et al. | Programming Environments based on structure editing: The Gnome approach | |
US20030018957A1 (en) | Debugger monitor with anticipatory highlights | |
JP4055197B2 (en) | Device for analyzing procedures included in the program | |
JPH07311679A (en) | Program generation system | |
JP2809048B2 (en) | Screen debugging method | |
JP2004287869A (en) | Program execution monitoring device and method | |
JPH04307630A (en) | Compiler with simple debugging option | |
JPH0766343B2 (en) | Program test equipment | |
JPH05250221A (en) | Simulator execution system | |
JPH02284236A (en) | Program debugging processor | |
JPS6292034A (en) | Program debugging device | |
JPH02244341A (en) | Execution subroutine debugging information output trace system | |
JPH08123706A (en) | System for developing test program of gui type analog circuit system | |
JPH0573354A (en) | Data processor | |
JPH05334135A (en) | Error information display system for abnormal end of program | |
JPH04229343A (en) | Memory contents display system in interactive debugger | |
JPH03141436A (en) | Debugging device | |
JPH02259844A (en) | Program debugging system | |
JPS6380338A (en) | Supporting system for single unit test of program module based on conversational symbolic debug mechanism | |
JPH0333936A (en) | Debug supporting compilation system for source program including input/output text | |
JPH03142635A (en) | Program visualization system |