JPH06259241A - Execution error message display method - Google Patents

Execution error message display method

Info

Publication number
JPH06259241A
JPH06259241A JP5043456A JP4345693A JPH06259241A JP H06259241 A JPH06259241 A JP H06259241A JP 5043456 A JP5043456 A JP 5043456A JP 4345693 A JP4345693 A JP 4345693A JP H06259241 A JPH06259241 A JP H06259241A
Authority
JP
Japan
Prior art keywords
line
program
application
line number
information
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
JP5043456A
Other languages
Japanese (ja)
Inventor
Yumiko Tanigawa
弓子 谷川
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 JP5043456A priority Critical patent/JPH06259241A/en
Publication of JPH06259241A publication Critical patent/JPH06259241A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To reduce man-hour for debugging by displaying an execution error message to easily specify an illegal program concerning an illegal operation during execution at the time of application program development. CONSTITUTION:When compiling an application program 106, line number management information 104 and link map information 108 is outputted to a file. When any error is found out in the execution of the application program, the address of an application object program 103 is extracted by a stack inverse trace part 202 and the line number of a source program, where an event is generated, is extracted by a line number information extraction part 203 while referring to the line number management information 104 and the link map information 108. Based on this line number, a source line image including lines before and after this line number is extracted by a line image extraction part 204 while referring to an application source program 101, and these images are additionally displayed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は実行エラーメッセージ表
示方法、特にアプリケーションプログラム開発における
プログラム実行中に発見された誤りのエラーメッセージ
を画面上に表示するための実行エラーメッセージ表示方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an execution error message display method, and more particularly to an execution error message display method for displaying an error message of an error found during program execution in application program development on a screen.

【0002】[0002]

【従来の技術】従来、この種の実行エラーメッセージ表
示方法は、図3に従来の実行エラーメッセージ表示方法
によって表示されたエラーメッセージを示すように、実
行エラーメッセージ表示時のアプケーションプログラム
の画面401と、実行エラーメッセージ402とを表示
している。この表示例のように、実行エラーメッセージ
402には実行エラーの現象は表示しているがアプリケ
ーションソースプログラムの何処に問題があるかは示し
ていない。
2. Description of the Related Art Conventionally, an execution error message display method of this kind has shown in FIG. 3 an error message displayed by the conventional execution error message display method, as shown in FIG. And an execution error message 402 are displayed. As in this display example, the execution error message 402 displays the phenomenon of the execution error, but does not indicate where the application source program has a problem.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の実行エ
ラーメッセージ表示方法は、アプリケーションプログラ
ムの不正動作で実行エラーメッセージを表示した際、オ
ペレータはアプリケーションプログラム開発部門に原因
の究明を依頼するが、開発者にとって実行エラーメッセ
ージだけではアプリケーションソースプログラムの何処
に問題点があるか早急に解明できないという欠点があ
る。
In the conventional execution error message display method described above, when the execution error message is displayed due to an illegal operation of the application program, the operator requests the application program development department to investigate the cause. However, there is a drawback that a person cannot immediately find out where the problem is in the application source program only by the execution error message.

【0004】[0004]

【課題を解決するための手段】本発明の実行エラーメッ
セージ表示方法は、アプリケーションプログラムのデバ
ッグ工程で発生する不正動作時の実行エラーメッセージ
表示方法において、アプリケーションソースプログラム
のコンパイル時にソースプログラムとオブジェクトプロ
グラムとの行番号を対応付ける行番号管理情報を出力す
る行情報出力処理と、アプリケーションオブジェクトプ
ログラムのリンク時に前記行情報出力処理によって出力
した行番号管理情報とオブジェクトプログラム間をリン
ク付けたリンクマップ情報とを統合してデバッグ情報フ
ァイルを出力する統合処理と、アプリケーションプログ
ラムの実行時にエラー発生原因となった位置のアプリケ
ーションオブジェクトプログラムのアドレスをアプリケ
ーションプログラムのスタックから求める逆トレース処
理と、この逆トレース処理によって求めたアプリケーシ
ョンオブジェクトプログラムのアドレスから前記統合処
理によって出力されたデバッグ情報ファイルの行番号管
理情報とリンクマップ情報とを元にアプリケーションプ
ログラムの該当ソース行およびその前後複数行の行番号
位置情報を抽出する行番号情報抽出処理と、この行番号
情報抽出処理によって抽出したアプリケーションプログ
ラムの該当ソース行およびその前後複数行の行番号位置
情報とアプリケーションソースプログラムから実行エラ
ーの発生したアプリケーションプログラムの該当ソース
行とその前後複数行のソース行イメージとを抽出するソ
ース行イメージ抽出処理と、前記行番号情報抽出処理に
よって抽出したアプリケーションプログラムの該当ソー
ス行およびその前後複数行の行番号位置情報と前記ソー
ス行イメージ抽出処理によって抽出したアプリケーショ
ンプログラムの該当ソース行およびその前後複数行のソ
ース行イメージおよび実行エラーメッセージとを編集す
る実行エラーメッセージ編集処理と、この実行エラーメ
ッセージ編集処理によって編集した実行エラーメッセー
ジを画面に表示する実行時エラーメッセージ表示処理と
を含むことにより構成される。
A method of displaying an execution error message according to the present invention is a method of displaying an execution error message at the time of an illegal operation occurring in a debugging process of an application program, in which a source program and an object program are compiled when an application source program is compiled. The line information output processing for outputting the line number management information for associating the line numbers with the line number management information output by the line information output processing at the time of linking the application object program and the link map information for linking the object programs are integrated. And output the debug information file and the address of the application object program at the position that caused the error when the application program was executed. Corresponding to the source code of the application program based on the reverse trace processing obtained from the stack and the line number management information and link map information of the debug information file output by the integration processing from the address of the application object program obtained by the reverse trace processing. Line number information extraction processing for extracting the line number position information of a line and multiple lines before and after the line, and the corresponding source line of the application program extracted by this line number information extraction process and the line number position information of multiple lines before and after the line and the application source program Source line image extraction processing for extracting the relevant source line of the application program in which the execution error has occurred and source line images of a plurality of lines before and after it, and the application program extracted by the line number information extraction processing. An execution error that edits the line number position information of the corresponding source line of the gram and multiple lines before and after it, and the source line image of the applicable source line of the application program extracted by the source line image extraction processing and the image of the source lines of multiple lines before and after it and the execution error message It is configured by including a message editing process and a runtime error message display process for displaying the execution error message edited by the execution error message editing process on the screen.

【0005】[0005]

【実施例】次に、本発明のついて図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0006】図1は本発明の一実施例の構成図で、図1
(a)はアプリケーションプログラムコンパイル処理の
構成図を、図1(b)は実行時エラーメッセージ表示処
理の構成図を示している。図1(a)のアプリケーショ
ンプログラムコンパイル処理はアプリケーションソース
プログラム101,コンパイラ102,アプリケーショ
オブジェクトプログラム103,行番号管理情報10
4,リンケージエディタ105,アプリケーションプロ
グラム106,および行番号管理情報104とリンクマ
ップ情報108とからなるデバッグ情報ファイル107
により構成され、図1(b)の実行時エラーメッセージ
表示処理はスタック逆トレース部202,行番号情報抽
出部203,行イメージ抽出部204,実行時エラーメ
ッセージ編集処理部205,および実行時エラーメッセ
ージ表示処理部206からなる実行時エラーメッセージ
表示処理201と、図1(a)に記載されたアプリケー
ションプログラム106と、デバッグ情報ファイル10
7と、アプリケーションソースプログラム101とによ
り構成される。
FIG. 1 is a block diagram of an embodiment of the present invention.
1A shows a configuration diagram of an application program compiling process, and FIG. 1B shows a configuration diagram of a runtime error message display process. The application program compiling process of FIG. 1A is performed by the application source program 101, the compiler 102, the application object program 103, and the line number management information 10.
4, a linkage editor 105, an application program 106, and a debug information file 107 including line number management information 104 and link map information 108
The execution time error message display process of FIG. 1B is performed by the stack reverse trace unit 202, the line number information extraction unit 203, the line image extraction unit 204, the execution time error message edit processing unit 205, and the execution time error message. The runtime error message display processing 201 including the display processing unit 206, the application program 106 described in FIG. 1A, and the debug information file 10
7 and the application source program 101.

【0007】以上の構成で、先ず図1(a)のアプリケ
ーションプログラムコンパイル処理の流れについて説明
を進めると、アプリケーションソースプログラム1をコ
ンパイラ102でコンパイルし、アプリケーションオブ
ジェクトプログラム103と,ソースプログラムとオブ
ジェクトプログラムとの行番号を対応付けた行番号管理
情報104とを出力する。出力したアプリケーションオ
ブジェクトプログラム103と行番号管理情報104と
をリンケージエディタ105で統合し、アプリケーショ
ンプログラム106とデバッグ情報ファイル107とを
出力する。このときデバッグ情報ファイル107には行
番号管理情報104とオブジェクトプログラムのリンク
状態を示したリンクマップ情報108とを格納する。
With the above structure, first, the flow of the application program compiling process of FIG. 1A will be described. The application source program 1 is compiled by the compiler 102, and the application object program 103, the source program and the object program are compiled. And the line number management information 104 associated with the line numbers of The output application object program 103 and the line number management information 104 are integrated by the linkage editor 105, and the application program 106 and the debug information file 107 are output. At this time, the line number management information 104 and the link map information 108 indicating the link state of the object program are stored in the debug information file 107.

【0008】次に、図1(b)の実行時エラーメッセー
ジ表示処理の流れについて説明を進める。図1(a)の
処理で出力されたアプリケーショプログラム106を実
行し、不正動作が発生すると、実行時エラーメッセージ
表示処理201に制御が渡される。実行時エラーメッセ
ージ表示処理201に制御が渡されると、スタック逆ト
レース部202はアプリケーションプログラムのスタッ
ク109を参照してアプリケーションオブジェクトプロ
グラムのアドレスを求め、アプリケーションオブジェク
トプログラムのアドレスが求まると行番号情報抽出部2
03へ制御を移行し、デバッグ情報ファイル107内の
リンクマップ情報108および行番号管理情報104を
参照して、アプリケーションプログラムの該当ソース行
およびその前後複数行の行番号位置情報を抽出する。行
番号情報抽出部203がアプリケーションプログラムの
該当ソース行およびその前後複数行の行番号位置情報抽
出すると、行イメージ抽出部204へ制御を移行し、ア
プリケーションソースプログラム101を参照してアプ
リケーションプログラム106の該当ソース行およびそ
の前後複数行のソース行イメージを抽出する。行イメー
ジ抽出部204がアプリケーションプログラムの該当ソ
ース行とその前後複数行のソース行イメージを抽出する
と、実行エラーメッセージ編集処理部205へ制御を移
行し、実行エラーメッセージ表示内容を編集し、実行エ
ラーメッセージ表示処理部206で図2にエラーメッセ
ージ表示例を示すように実行エラーメッセージ302を
実行時エラーメッセージ表示時の画面301に表示す
る。
Next, the flow of the runtime error message display process of FIG. 1B will be described. When the application program 106 output in the process of FIG. 1A is executed and an illegal operation occurs, control is passed to the runtime error message display process 201. When the control is passed to the runtime error message display processing 201, the stack reverse tracing unit 202 refers to the stack 109 of the application program to obtain the address of the application object program, and when the address of the application object program is obtained, the line number information extraction unit Two
The control shifts to 03, and the link map information 108 and the line number management information 104 in the debug information file 107 are referred to, and the line number position information of the corresponding source line of the application program and a plurality of lines before and after the source line are extracted. When the line number information extraction unit 203 extracts the line number position information of the applicable source line of the application program and a plurality of lines before and after the source line, control is transferred to the line image extraction unit 204, and the application source program 101 is referred to and the corresponding application program 106 is found. Extract the source line and multiple source line images before and after it. When the line image extraction unit 204 extracts the corresponding source line of the application program and source line images of plural lines before and after the source line, control is transferred to the execution error message edit processing unit 205, the execution error message display content is edited, and the execution error message is edited. The display processing unit 206 displays the execution error message 302 on the screen 301 at the time of displaying the runtime error message as shown in the error message display example in FIG.

【0009】[0009]

【発明の効果】以上説明したように本発明は、アプリケ
ーションプログラムコンパイル時に、ソースプログラム
とオブジェクトプログラムとの間の行番号管理情報と、
リンクマップ情報とを生成しておき、アプリケーション
プログラムの実行によりエラーが発生したとき、これら
の情報を参照してアプリケーションプログラムの該当ソ
ース行とその前後複数行の行番号位置情報とソース行イ
メージとを付加表示した実行時エラーメッセージを表示
するので、アプリケーションプログラム開発者は速やか
に問題点を発見して修復することができ、デバッグ工数
を削減できるという効果がある。
As described above, according to the present invention, when the application program is compiled, the line number management information between the source program and the object program,
Link map information is generated, and when an error occurs due to the execution of the application program, this information is referred to and the line number position information and the source line image of the relevant source line of the application program and multiple lines before and after it are referenced. Since the additionally displayed runtime error message is displayed, the application program developer can quickly find and repair the problem, and the number of debugging steps can be reduced.

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

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

【図2】図1の実施例により出力され実行時エラーメッ
セージの表示例を示す図である。
FIG. 2 is a diagram showing a display example of a runtime error message output by the embodiment of FIG.

【図3】従来の実行時エラーメッセージ表示方法による
実行時エラーメッセージの表示例を示す図である。
FIG. 3 is a diagram showing a display example of a runtime error message according to a conventional runtime error message display method.

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

101 アプリケーショソースプログラム 102 コンパイラ 103 アプリケーションオブジェクトプログラム 104 行番号管理情報 105 リンケージエディタ 106 アプリケーションプログラム 107 デバッグ情報ファイル 108 リンクマップ情報 109 スタック 201 実行時エラーメッセージ表示処理 202 スタック逆トレース部 203 行番号情報抽出部 204 行イメージ抽出部 205 実行時エラーメッセージ編集処理部 206 実行時エラーメッセージ表示処理部 101 Application Source Program 102 Compiler 103 Application Object Program 104 Line Number Management Information 105 Linkage Editor 106 Application Program 107 Debug Information File 108 Link Map Information 109 Stack 201 Runtime Error Message Display Processing 202 Stack Reverse Trace Unit 203 Line Number Information Extraction Unit 204 Line image extraction unit 205 Runtime error message edit processing unit 206 Runtime error message display processing unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 アプリケーションプログラムのデバッグ
工程で発生する不正動作時の実行エラーメッセージ表示
方法において、アプリケーションソースプログラムのコ
ンパイル時にソースプログラムとオブジェクトプログラ
ムとの行番号を対応付ける行番号管理情報を出力する行
情報出力処理と、アプリケーションオブジェクトプログ
ラムのリンク時に前記行情報出力処理によって出力した
行番号管理情報とオブジェクトプログラム間をリンク付
けたリンクマップ情報とを統合してデバッグ情報ファイ
ルを出力する統合処理と、アプリケーションプログラム
の実行時にエラー発生原因となった位置のアプリケーシ
ョンオブジェクトプログラムのアドレスをアプリケーシ
ョンプログラムのスタックから求める逆トレース処理
と、この逆トレース処理によって求めたアプリケーショ
ンオブジェクトプログラムのアドレスから前記統合処理
によって出力されたデバッグ情報ファイルの行番号管理
情報とリンクマップ情報とを元にアプリケーションプロ
グラムの該当ソース行およびその前後複数行の行番号位
置情報を抽出する行番号情報抽出処理と、この行番号情
報抽出処理によって抽出したアプリケーションプログラ
ムの該当ソース行およびその前後複数行の行番号位置情
報とアプリケーションソースプログラムから実行エラー
の発生したアプリケーションプログラムの該当ソース行
とその前後複数行のソース行イメージとを抽出するソー
ス行イメージ抽出処理と、前記行番号情報抽出処理によ
って抽出したアプリケーションプログラムの該当ソース
行およびその前後複数行の行番号位置情報と前記ソース
行イメージ抽出処理によって抽出したアプリケーション
プログラムの該当ソース行およびその前後複数行のソー
ス行イメージおよび実行エラーメッセージとを編集する
実行エラーメッセージ編集処理と、この実行エラーメッ
セージ編集処理によって編集した実行エラーメッセージ
を画面に表示する実行時エラーメッセージ表示処理とを
含むことを特徴とする実行エラーメッセージ表示方法。
1. In a method of displaying an execution error message at the time of an illegal operation occurring in a debugging step of an application program, line information for outputting line number management information for associating line numbers between a source program and an object program when compiling an application source program. An output program, an integrated process of integrating the line number management information output by the line information output process when linking the application object program and the link map information linked between the object programs, and outputting a debug information file, and an application program Inverse trace processing that obtains from the application program stack the address of the application object program at the position that caused the error when executing Based on the line number management information and the link map information of the debug information file output by the integration process from the address of the application object program obtained by logic, the line number position information of the relevant source line of the application program and the line numbers before and after it are obtained. The line number information extraction process to be extracted, the corresponding source line of the application program extracted by this line number information extraction process, the line number position information of multiple lines before and after the line, and the corresponding source line of the application program in which an execution error has occurred from the application source program And a source line image extraction process for extracting the source line image of plural lines before and after the line, and the line number position information of the corresponding source line of the application program extracted by the line number information extraction process and plural lines before and after the line. And an execution error message editing process for editing the corresponding source line of the application program extracted by the source line image extraction process and the source line images and execution error messages of plural lines before and after the application line, and the execution edited by this execution error message editing process. An execution error message display method comprising: a runtime error message display process for displaying an error message on a screen.
JP5043456A 1993-03-04 1993-03-04 Execution error message display method Withdrawn JPH06259241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5043456A JPH06259241A (en) 1993-03-04 1993-03-04 Execution error message display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5043456A JPH06259241A (en) 1993-03-04 1993-03-04 Execution error message display method

Publications (1)

Publication Number Publication Date
JPH06259241A true JPH06259241A (en) 1994-09-16

Family

ID=12664211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5043456A Withdrawn JPH06259241A (en) 1993-03-04 1993-03-04 Execution error message display method

Country Status (1)

Country Link
JP (1) JPH06259241A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7039833B2 (en) * 2002-10-21 2006-05-02 I2 Technologies Us, Inc. Stack trace generated code compared with database to find error resolution information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7039833B2 (en) * 2002-10-21 2006-05-02 I2 Technologies Us, Inc. Stack trace generated code compared with database to find error resolution information

Similar Documents

Publication Publication Date Title
JP2749528B2 (en) Tracer system for error analysis
US20050273757A1 (en) Methods, systems, and computer program products for summarizing operational behavior of a computer program
US6427232B1 (en) Functional debugger for debugging software programs
US7086033B2 (en) Software debugger having a monitor for monitoring conditional statements within a software program
JP3196675B2 (en) Language processing method
JPH06259241A (en) Execution error message display method
JP2005338987A (en) Exception test support program and device
JPS62113244A (en) Program test device
WO2020073200A1 (en) Program debugging method and system
JPH0554277A (en) Plant monitor device
JP2005174045A (en) Source program conversion device, source program conversion method, source program conversion program and program recording medium
JP2000207246A (en) Debugging support device, method therefor and recording medium recorded with softwater for supporting debugging
JP2004287869A (en) Program execution monitoring device and method
US8432802B2 (en) Encapsulating frame of graphics data for replay
JP2001256075A (en) Developing system and developing method and recording medium
JP3104684B2 (en) How to debug
JP3011115B2 (en) Debug system
JP2870735B2 (en) Automatic check method of data value in debugger
JPH01205332A (en) Linkage editor system
JP3077627B2 (en) Debugging method and recording medium for recording debug program
JPH11272500A (en) Debug method and debug device for the same and program storage medium
JPH08179964A (en) Program checking method
JP2011048492A (en) Program creation support device, creation support method, and creation support program
JPH05108372A (en) System for outputting compiler optimization processing content
JPH0816427A (en) Analysing system for core dump file

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000509