JPH02115950A - File tracing system for supporting program debug - Google Patents

File tracing system for supporting program debug

Info

Publication number
JPH02115950A
JPH02115950A JP63269149A JP26914988A JPH02115950A JP H02115950 A JPH02115950 A JP H02115950A JP 63269149 A JP63269149 A JP 63269149A JP 26914988 A JP26914988 A JP 26914988A JP H02115950 A JPH02115950 A JP H02115950A
Authority
JP
Japan
Prior art keywords
trace
debug
file
point
debugging
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
Application number
JP63269149A
Other languages
Japanese (ja)
Inventor
Masanori Nagasawa
長澤 真紀
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP63269149A priority Critical patent/JPH02115950A/en
Publication of JPH02115950A publication Critical patent/JPH02115950A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To perform debugging work smoothly by performing debug by designating the trace instruction of a reference area and a trace targeted point where trace is performed comprehensively, and outputting a debug result to the designated file of a user. CONSTITUTION:A debug execution control part 2 performs a debug processing according to an inputted debug instruction by outputting an instruction to expedite the input of debug instruction information to a terminal 7 when the present break point of a user program shows a debug point, and outputs the debug result to the terminal 7. When the break point shows a trace targeted point, a processing is requested to a program development debug support file trace control part 3. The program development debug support file trace control part 3 acquires corresponding debug instruction information from a trace targeted point table by a trace targeted point control part, and requests the trace of an designation area to a trace control part 5. Collected trace information are outputted to the designated file by the file trace output control part 8 of an input/output control part 6.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はプログラムデバッグ支援のファイルトレース方
式に関し、特に端末よりデバッグ指示情報を入力してプ
ログラムのデバッグを行い、その結果を端末やファイル
に出力したりしてデバッグ作業を繰り返し続けるデバッ
グ支援のファイルトレース方式に関する。
[Detailed Description of the Invention] (Field of Industrial Application) The present invention relates to a file tracing method for supporting program debugging, and in particular, debugs a program by inputting debugging instruction information from a terminal, and outputs the results to a terminal or a file. This paper relates to a file tracing method for debugging support that repeatedly performs debugging operations.

(従来の技術) 従来のファイルトレース情報を出力する方式では、参照
領域のトレース指示とトレースを行う地点であるトレー
ス対象点との一括指定ができなかった。
(Prior Art) In the conventional method of outputting file trace information, it is not possible to simultaneously specify a trace instruction for a reference area and a trace target point, which is a point to be traced.

(発明が解決しようとする課題) 即ち、従来はデバッグのトレース結果をファイルに出力
する場合、指定のデバッグ点に到達した時点でトレース
を指示する方式であり一参照領域のトレース指示とトレ
ースを行う地点であるトレース対象点の一括指定ができ
なかったため、次にデバッグ指示情報を入力する機会は
、−旦、デバッグ点でトレース処理を中断した時しかな
く、画面出力情報を保持したままデバッグを行うことが
できなかった。
(Problem to be Solved by the Invention) In other words, conventionally, when outputting debugging trace results to a file, tracing is instructed when a specified debugging point is reached, and tracing is instructed and traced for one reference area. Since it was not possible to specify the trace target points all at once, the next opportunity to input debugging instruction information was when tracing processing was interrupted at the debugging point, and debugging was performed while retaining the screen output information. I couldn't do that.

(課題を解決するための手段) 本発明によるプログラムデバッグ支援のファイルトレー
ス方式は、利用者が指定したブレーク点を認識し、前記
ブレーク点がデバッグ点であるときにはデバッグ指示情
報に基づきデバッグの実行を制御するデバッグ実行制御
部と、前記ブレーク点がトレース対象点であるとき、前
記デバッグ実行制御部の依頼でトレース対象点における
デバッグ指示情報をデバッグ指示情報テーブルから収り
出すトレース対象点制御部と、前記デバッグ指示情報の
指定に従ってデバッグを行いその結果を編集するトレー
ス制御部と、編集されたデバッグ結果をファイルへ出力
するファイルトレース出力制御部とを有することにより
参照領域のトレース指示とトレースを行う地点であるト
レース対象点とを一括指定してデバッグを行い、そのデ
バッグ結果を利用者の指定ファイルに出力する。
(Means for Solving the Problems) A file tracing method for supporting program debugging according to the present invention recognizes a breakpoint specified by a user, and when the breakpoint is a debugging point, executes debugging based on debugging instruction information. a debug execution control unit that controls, and a trace target point control unit that retrieves debug instruction information at the trace target point from a debug instruction information table at the request of the debug execution control unit when the break point is a trace target point; A trace control unit that debugs according to the specification of the debug instruction information and edits the result, and a file trace output control unit that outputs the edited debug result to a file, thereby providing a reference area trace instruction and a tracing point. Debugging is performed by specifying the trace target points at once, and the debugging results are output to a file specified by the user.

(実施例) 次に本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック図であり、プ
ログラム開発デバッグ支援プログラム1は、本発明のプ
ログラム開発デバッグ支援ファイルトレース方式を含ん
でいて、利用者の被テストプログラムと連動してデバッ
グを行う機能をもつ。
FIG. 1 is a block diagram showing an embodiment of the present invention. A program development and debugging support program 1 includes a program development and debugging support file tracing method of the present invention, and is linked to a user's program under test. It has a function for debugging.

端末7はデバッグ結果の出力やデバッグ指示情報の入力
を行う、ファイル9は利用者により指定され、ファイル
トレースの時、デバッグ結果が出力される。デバッグ実
行制御部2は、第4図に示すブレーク点テーブルをサー
チして利用者の被テストプログラムの今のブレーク点が
、トレース対象点かデバッグ点かを調査し、トレース対
象点のときにはプログラム開発デバッグ支援ファイルト
レース制御部3へ処理の依頼をし、デバッグ点の時には
利用者プログラムの実行を中断し端末にデバッグ指示情
報の入力促進を出力し、デバッグ処理の実行を制御する
。トレース対象点制御部4は第4図に示されるトレース
対象点テーブルをサーチし、今のトレース対象点におけ
るデバッグ指示情報を得る。トレース制御部5はトレー
ス対象点制御部4からトレース処理を依頼され、指定利
用者の内容の参照を行う。入出力制御部6は利用者のデ
バッグ指示情報の入力とデバッグ結果の出力を制御する
。ファイルトレース制御部8は入出力制御部に含まれて
いて、トレース制御部うで収集したデバッグ結果を利用
者の指定ファイル9に出力する。プログラム開発デバッ
グ支援ファイルトレース制御部3はトレース対象点制御
部4とトレース制御部5とファイルトレース出力制御部
8を総称するものである。
The terminal 7 outputs debugging results and inputs debugging instruction information. The file 9 is specified by the user, and the debugging results are outputted during file tracing. The debug execution control unit 2 searches the break point table shown in FIG. 4 to check whether the current break point of the user's program under test is a trace target point or a debug point, and if the current break point is a trace target point, the program development It requests processing to the debug support file trace control unit 3, interrupts the execution of the user program at the debug point, outputs a prompt to input debug instruction information to the terminal, and controls the execution of the debug process. The trace target point control unit 4 searches the trace target point table shown in FIG. 4 to obtain debug instruction information for the current trace target point. The trace control unit 5 is requested to perform tracing processing by the trace target point control unit 4, and refers to the contents of the designated user. The input/output control unit 6 controls input of debug instruction information by the user and output of debug results. The file trace control section 8 is included in the input/output control section, and outputs the debugging results collected by the trace control section to a file 9 designated by the user. The program development debugging support file trace control section 3 is a general term for the trace target point control section 4, the trace control section 5, and the file trace output control section 8.

第2図には、ファイルトレースによってデバッグを行っ
た時の処理の流れ図が示されている。
FIG. 2 shows a flowchart of processing when debugging is performed by file tracing.

端末7からデバッグ処理を開始し利用者プログラムが実
行されて、ブレーク点に到達すると、利用者プログラム
からデバッグ支tpプログラムに制御が渡る。デバッグ
実行制御部2 (30)では、利用者プログラムの今の
ブレーク点がトレース対象点かデバッグ点かどうかを第
4図のブレーク点テーブルを用いて(31)調査し、デ
バッグ点の時は第4図のデバッグ点テーブルを得て、端
末7にデバッグ指示情報の入力促進を出力して(32)
、入力されたデバッグ指示に従ってデバッグ処理を行い
(33)、デバッグ結果を端末に出力する(52)。
Debug processing is started from the terminal 7, the user program is executed, and when a break point is reached, control is passed from the user program to the debug support tp program. The debug execution control unit 2 (30) checks whether the current break point of the user program is a trace target point or a debug point (31) using the break point table shown in Figure 4. Obtain the debug point table shown in Figure 4, and output a prompt to input debug instruction information to terminal 7 (32).
, performs debug processing according to the input debug instructions (33), and outputs the debug results to the terminal (52).

トレース対象点の時はプログラム開発デバッグ支援ファ
イルトレース制御部3(40>に処理を依頼する。プロ
グラム開発デバッグ支援ファイルトレース制御部3 (
40)では、まず、トレース対象点制御部(41)で、
トレース対象点テーブルより対応するデバッグ指示情報
を獲得し、トレース制御部5 (42)に指定領域のト
レースを依頼する。収集したトレース情報は入出力制御
部6(50)のファイルトレース出力制御部8(51)
で指定ファイルへ出力される。
When the point is to be traced, processing is requested to the program development debugging support file trace control unit 3 (40>).Program development debugging support file trace control unit 3 (
40), first, the trace target point control unit (41)
The corresponding debug instruction information is obtained from the trace target point table, and the trace control unit 5 (42) is requested to trace the specified area. The collected trace information is sent to the file trace output control unit 8 (51) of the input/output control unit 6 (50).
will be output to the specified file.

第3図には、ファイルトレースを用いてデバッグを行っ
た一例が示されている。
FIG. 3 shows an example of debugging using file tracing.

トレース対象点に任意の地点A、B、C,D。Arbitrary points A, B, C, D as tracing target points.

Eを指定する。参照したい領域の番地やレジスタを指定
する。ファイルトレースでなく端末出力によるデバッグ
処理に戻りたい地点に、デバッグ点を設定する。デバッ
グ点を指定すると、その地点で利用者プログラムの実行
を中断しデバッグ支援プログラム1に制御が渡り、端末
7にデバッグ指示情報の入力促進が出力され、利用者は
デバッグ指示情報を入力することができる。これらの指
示がすんだら、ファイルトレースを開始したい番地から
利用者プログラムを実行する。デバッグ結果は、それぞ
れのトレース対象点で収集した指定領域やレジスタの内
容で、利用者の指定ファイルに出力されている。
Specify E. Specify the address or register of the area you want to reference. Set the debug point at the point where you want to return to debugging using terminal output instead of file tracing. When a debug point is specified, the execution of the user program is interrupted at that point, control is passed to the debug support program 1, and a prompt to input debug instruction information is output to the terminal 7, allowing the user to input debug instruction information. can. After completing these instructions, run the user program from the address where you want to start file tracing. The debug results are the contents of specified areas and registers collected at each trace target point and are output to a file specified by the user.

(発明の効果) 以上説明したように、このプログラムデバッグ支#肩の
ファイルトレース方式を用いることによって、参照領域
のトレース指示とトレースを行う地点であるトレース対
象点を一括指定してデバッグを行い結果を後で参照した
い時のデバッグ結果の出力を、利用者の指定ファイルに
出力するようなデバッグ指示情報の指定が容易になり、
かつ、利用者の被テストプログラムが画面入出力の機能
をもちデバッグ中に端末へその画面が出力される時のデ
バッグ結果の出力時、出力画面をデバッグ結果で消去し
てしまうことがなくなり、デバッグ作業を円滑に行うこ
とができる。
(Effects of the Invention) As explained above, by using this file tracing method that supports program debugging, debugging can be performed by specifying the trace instruction of the reference area and the trace target point, which is the point where the trace is to be performed, at once. It is now easier to specify debug instruction information such as outputting debug results to a user-specified file for later reference.
In addition, when the user's test program has a screen input/output function and the screen is output to the terminal during debugging, the output screen will no longer be erased with the debugging results, making it easier to debug. Work can be done smoothly.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明によるプログラムデバッグ支援のファイ
ルトレース方式の一実施例を示すブロック図、第2図は
ファイルトレースによってデバッグを行った時の処理の
流れ図、第3図はファイルトレースを用いてデバッグを
行った一例を示す図、第4図は処理上、作成/更新され
るテーブルの図である。 l・・・プログラム開発デバッグ支援プログラム、2・
・・デバッグ実行制御部、3・・・プログラム開発デバ
ッグ支#2ファイルトレース制御部、4・・・トレース
対象点制御部、5・・・トレース制御部、6・・・入出
力制御部、7・・・端末、8・・・ファイルトレース出
力制御部、9・・・デバッグ結果ファイル。
Fig. 1 is a block diagram showing an embodiment of the file tracing method for supporting program debugging according to the present invention, Fig. 2 is a flow chart of processing when debugging is performed using file tracing, and Fig. 3 is debugging using file tracing. FIG. 4 is a diagram illustrating an example of a table created/updated during processing. l...Program development debugging support program, 2.
...Debug execution control unit, 3...Program development debug support #2 file trace control unit, 4...Trace target point control unit, 5...Trace control unit, 6...I/O control unit, 7 ... terminal, 8 ... file trace output control section, 9 ... debug result file.

Claims (1)

【特許請求の範囲】[Claims] 利用者が指定したブレーク点を認識し、前記ブレーク点
がデバッグ点であるときにはデバッグ指示情報に基づき
デバッグの実行を制御するデバッグ実行制御部と、前記
ブレーク点がトレース対象点であるとき、前記デバッグ
実行制御部の依頼でトレース対象点におけるデバッグ指
示情報をデバッグ指示情報テーブルから取り出すトレー
ス対象点制御部と、前記デバッグ指示情報の指定に従っ
てデバッグを行いその結果を編集するトレース制御部と
、編集されたデバッグ結果をファイルへ出力するファイ
ルトレース出力制御部とを有することにより参照領域の
トレース指示とトレースを行う地点であるトレース対象
点とを一括指定してデバッグを行い、そのデバッグ結果
を利用者の指定ファイルに出力することを特徴とするプ
ログラムデバッグ支援のファイルトレース方式。
a debug execution control unit that recognizes a break point specified by a user and controls debug execution based on debug instruction information when the break point is a debug point; a trace target point control unit that extracts debug instruction information at a trace target point from a debug instruction information table at the request of an execution control unit; a trace control unit that performs debugging according to specifications of the debug instruction information and edits the results; By having a file trace output control unit that outputs debugging results to a file, debugging can be performed by specifying the trace instruction of the reference area and the trace target point, which is the point where tracing is performed, and the debugging results can be specified by the user. A file tracing method for supporting program debugging that is characterized by output to a file.
JP63269149A 1988-10-25 1988-10-25 File tracing system for supporting program debug Pending JPH02115950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63269149A JPH02115950A (en) 1988-10-25 1988-10-25 File tracing system for supporting program debug

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63269149A JPH02115950A (en) 1988-10-25 1988-10-25 File tracing system for supporting program debug

Publications (1)

Publication Number Publication Date
JPH02115950A true JPH02115950A (en) 1990-04-27

Family

ID=17468359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63269149A Pending JPH02115950A (en) 1988-10-25 1988-10-25 File tracing system for supporting program debug

Country Status (1)

Country Link
JP (1) JPH02115950A (en)

Similar Documents

Publication Publication Date Title
JPH02115950A (en) File tracing system for supporting program debug
JPH02220145A (en) Program tracing system
JPH04333146A (en) Program execution control system for debugging
JPH0227447A (en) Debugging system
JPH02307129A (en) Setting/deleting system for snap id output sentence
JPH0520060A (en) Method and device for program partial execution
JPS63257040A (en) Debugging system
JPS61147335A (en) Parameter registration system of job
JPH07160536A (en) Program test supporting device for interactive system
JPH0833847B2 (en) Function trace processing method
JPH06242943A (en) Source code level debugging device
JPH01156806A (en) Debugging device
JPH0239332A (en) Software break system
JPS63211037A (en) Program debugging method
JPH05241890A (en) Data trace system
JPH02214946A (en) Debugging system
JPH05204698A (en) Debugger processing system
JPH08286710A (en) Sequence control monitor
JPH07319730A (en) Test debugging method
JPH05265801A (en) Program monitor device
JPH02284236A (en) Program debugging processor
JPH0546434A (en) Program debugging system
JPH0468446A (en) Debugging supporting device
JPH0833846B2 (en) Function trace / step trace switching control method
JPH06250876A (en) Interactive debugging supporting system