JP2003022201A - Method for debugging program - Google Patents

Method for debugging program

Info

Publication number
JP2003022201A
JP2003022201A JP2001206821A JP2001206821A JP2003022201A JP 2003022201 A JP2003022201 A JP 2003022201A JP 2001206821 A JP2001206821 A JP 2001206821A JP 2001206821 A JP2001206821 A JP 2001206821A JP 2003022201 A JP2003022201 A JP 2003022201A
Authority
JP
Japan
Prior art keywords
log data
debug
hierarchy
program
log
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
JP2001206821A
Other languages
Japanese (ja)
Inventor
Kazuji Nakamura
一二 中村
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2001206821A priority Critical patent/JP2003022201A/en
Publication of JP2003022201A publication Critical patent/JP2003022201A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem of a conventional method for debugging a program that log data to be recorded become huge, a memory capacity for the log data is increased as the acquisition time of the log data is increased, and that visibility at the time of log reading is poor since the log data are not displayed according to the hierarchical structure. SOLUTION: A debug log object 2 retrieves the debut sentence of a whole program 1, and when any debug sentence exists, executes the retrieved debug sentence when the level of the retrieved debug sentence is matched with a set sample level, and outputs log data in a hierarchical structure being the executed result to a log file 3 in order to record the log data. Then, the log data are displayed according to the hierarchical structure.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、プログラムのデ
バッグ方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program debugging method.

【0002】[0002]

【従来の技術】C++等のオブジェクト指向プログラム
言語は、FORTRANやC等の手続指向プログラム言
語と異なり、データ定義とその処理手順(例えば関数)
とを1つのオブジェクトとして収め、オブジェクトは処
理ルーチンを呼び起こすメッセージを受信すると、その
メッセージが示す処理を実行し、処理結果を含むメッセ
ージを他のオブジェクトに送信する。例えば、特定の機
能をもったプログラムは、複数のモジュール(クラス)
で構成され、各モジュールは複数のオブジェクトで構成
され、さらに各オブジェクトはデータ及び関数で構成さ
れている。すなわち、オブジェクト指向プログラムは、
対象(例えばデータ)とその対象を操作する手続(例え
ば演算処理)をひとまとめにした概念単位であるオブジ
ェクトを基本単位とする階層構造の構造化プログラムで
記述される。
2. Description of the Related Art An object-oriented programming language such as C ++ is different from a procedure-oriented programming language such as FORTRAN or C in that it defines data and its processing procedure (eg, function).
And are contained as one object, and when the object receives a message that evokes a processing routine, the object executes the processing indicated by the message and sends a message including the processing result to another object. For example, a program that has a specific function may consist of multiple modules (classes).
Each module is composed of a plurality of objects, and each object is composed of data and functions. That is, the object-oriented program is
It is described by a structured program having a hierarchical structure in which an object, which is a conceptual unit that is a collection of an object (for example, data) and a procedure for operating the object (for example, arithmetic processing), is a basic unit.

【0003】このようなオブジェクト指向プログラムを
デバッグする従来のデバッグ方法においては、デバッグ
ログオブジェクトを設定して、デバッグ対象のオブジェ
クトが送受信するすべてのメッセージをデバッグログオ
ブジェクトにログデータとして記録する。そして、記録
されたログデータを画面に表示してオブジェクトの処理
の誤りすなわちバグを検索していた。ところが、デバッ
グ対象のオブジェクトが複数の異なるオブジェクトやア
プリケーションプログラムによって共用されている場合
には、デバッグの対象外のメッセージもログデータとし
て記録されてしまうという問題があった。
In a conventional debugging method for debugging such an object-oriented program, a debug log object is set and all messages transmitted and received by the object to be debugged are recorded in the debug log object as log data. Then, the recorded log data is displayed on the screen to search for an error in processing an object, that is, a bug. However, when the object to be debugged is shared by a plurality of different objects or application programs, there is a problem that a message not to be debugged is also recorded as log data.

【0004】このため、特開平8−137713号公報
においては、デバッグ対象のオブジェクトがメッセージ
を送信する他のオブジェクトの範囲をあらかじめ設定し
ておき、デバッグ対象のオブジェクト及び設定範囲内の
関連するオブジェクトに限定して、それらの各オブジェ
クトで送受信されるメッセージのみをログデータとして
記録するデバッグ方法が提案されている。
Therefore, in Japanese Patent Laid-Open No. 8-137713, the range of other objects to which the object to be debugged sends a message is set in advance, and the object to be debugged and the related objects within the set range are set. A debugging method has been proposed in which only the messages sent and received by each of those objects are recorded as log data.

【0005】[0005]

【発明が解決しようとする課題】従来のプログラムのデ
バッグ方法は以上のように構成されているので、たとえ
デバッグ対象のオブジェクトに関連する他のオブジェク
トの範囲を限定した場合でも、その範囲内の複数のオブ
ジェクト間で送受信されるメッセージをすべてログデー
タとして記録しなけらればならず、同一の手続に対する
処理が重複して記録されることが発生する場合もある。
このため記録するログデータが膨大になり、ログデータ
の取得時間が増加するとともにログデータ用のメモリ容
量が増加するという課題があった。また、プログラムの
構造を理解したシステムエンジニアがオブジェクトの設
定範囲、すなわちデバッグポイントの指定をしなければ
ならず、開発コストが高くなるという課題があった。ロ
グデータが階層構造に従って表示されないため、ログ閲
覧時の視認性(読みづらい)に課題があった。
Since the conventional method of debugging a program is configured as described above, even if the range of other objects related to the object to be debugged is limited, a plurality of objects within the range can be used. All the messages sent and received between the objects must be recorded as log data, and the processing for the same procedure may be recorded in duplicate.
For this reason, there is a problem that the log data to be recorded becomes huge, the acquisition time of the log data increases, and the memory capacity for the log data increases. In addition, a system engineer who understands the structure of the program must specify the setting range of the object, that is, the debug point, which raises the problem that the development cost becomes high. Since log data is not displayed according to the hierarchical structure, there was a problem in visibility (difficult to read) when browsing logs.

【0006】この発明は上記のような課題を解決するた
めになされたもので、ログデータのデータ量及びログデ
ータの取得時間を少なくできるプログラムのデバッグ方
法を得ることを目的とする。また、この発明は、プログ
ラムの構造を理解したシステムエンジニアやプログラマ
でなくとも、デバッグポイントを指定できるプログラム
のデバッグ方法を得ることを目的とする。また、この発
明は、デバッグ目標のログデータを迅速に検索できるプ
ログラムのデバッグ方法を得ることを目的とする。
The present invention has been made to solve the above problems, and an object thereof is to obtain a program debugging method capable of reducing the data amount of log data and the acquisition time of log data. It is another object of the present invention to provide a program debugging method that allows a debug point to be specified even if the system engineer or programmer who does not understand the structure of the program does. Another object of the present invention is to obtain a program debugging method capable of quickly searching for log data targeted for debugging.

【0007】[0007]

【課題を解決するための手段】この発明に係るプログラ
ムのデバッグ方法は、デバッグ対象の構造化プログラム
にデバッグ文が存在するか否かを判別し、デバッグ文が
存在する場合にはデバッグ文に付与された識別情報で示
される階層が設定された階層と一致するか否かを判別
し、識別情報で示される階層と設定された階層とが一致
する場合にはそのデバッグ文を実行して実行結果を階層
構造のログデータとして所定の記憶手段に出力するもの
である。
A program debugging method according to the present invention determines whether or not a debug statement is present in a structured program to be debugged, and if the debug statement is present, it is added to the debug statement. It is determined whether the hierarchy indicated by the specified identification information matches the set hierarchy. If the hierarchy indicated by the identification information and the set hierarchy match, the debug statement is executed and the execution result Is output to a predetermined storage means as log data having a hierarchical structure.

【0008】この発明に係るプログラムのデバッグ方法
は、出力するログデータにそのログデータの階層を示す
識別情報を付加するものである。
In the program debugging method according to the present invention, identification information indicating the hierarchy of the log data is added to the output log data.

【0009】この発明に係るプログラムのデバッグ方法
は、所定の記憶手段から読み出されたログデータを所定
の表示手段に表示する際には、ログデータの階層を示す
識別情報に対応する標識画像をともに表示するものであ
る。
In the program debugging method according to the present invention, when the log data read from the predetermined storage means is displayed on the predetermined display means, the marker image corresponding to the identification information indicating the hierarchy of the log data is displayed. Both are displayed.

【0010】この発明に係るプログラムのデバッグ方法
は、表示された標識画像が操作によって指定された場合
には、標識画像に対応する識別情報で示される階層に関
連する階層に属するログデータを所定の記憶手段から読
み出して表示するものである。
In the program debugging method according to the present invention, when the displayed marker image is designated by an operation, the log data belonging to the hierarchy related to the hierarchy indicated by the identification information corresponding to the marker image is predetermined. It is read from the storage means and displayed.

【0011】この発明に係るプログラムのデバッグ方法
は、指定された標識画像に対応する識別情報で示される
階層の下位の階層に属するログデータを読み出して表示
するものである。
A program debugging method according to the present invention reads and displays log data belonging to a lower hierarchy than a hierarchy indicated by identification information corresponding to a designated marker image.

【0012】[0012]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はオブジェクト指向プログラムで記
述されたプログラム構造であり、図において1は全体プ
ログラムである。この図に示すように、全体プログラム
1は、機能レベル、モジュールレベル、オブジェクトレ
ベル、及び関数レベルからなる階層構造になっている。
すなわち、各機能はその下位レベルであるモジュールで
構成され、各モジュールはその下位レベルであるオブジ
ェクトで構成され、各オブジェクトはその下位レベルで
ある関数で構成されている。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below. First Embodiment FIG. 1 shows a program structure written in an object-oriented program, and in the figure, 1 is the whole program. As shown in this figure, the entire program 1 has a hierarchical structure including a function level, a module level, an object level, and a function level.
That is, each function is composed of a module which is a lower level thereof, each module is composed of an object which is a lower level thereof, and each object is composed of a function which is a lower level thereof.

【0013】この全体プログラム1の作成段階におい
て、システムエンジニアやプログラマなどのユーザによ
ってあらかじめデバッグ文を挿入することが行われる。
デバッグ文により、ログデータを採取するデバッグログ
オブジェクトコールポイント設定が行われる。
At the stage of creating the whole program 1, a user such as a system engineer or a programmer inserts a debug statement in advance.
The debug log object call point setting that collects the log data is set by the debug statement.

【0014】図2はログデータを採取する概念を示す図
であり、2はデバッグログオブジェクト、3はログデー
タを記録するログファイル(所定の記憶手段)である。
デバッグログオブジェクト2は、プログラム中でデバッ
グ文によりログ採取要求を受けた場合、デバッグログオ
ブジェクト2がコールされ受け取った情報をログデータ
として記録する。デバッグログオブジェクト2では、ユ
ーザが設定した採取するログデータのレベルに従って、
階層構造を持ったログデータを出力する。すなわち、ロ
グを採取する際には、ユーザは採取するログデータの階
層のレベルを設定するだけでよいので、プログラムの構
造を理解したシステムエンジニアやプログラマである必
要はない。
FIG. 2 is a view showing the concept of collecting log data, 2 is a debug log object, and 3 is a log file (predetermined storage means) for recording log data.
When the debug log object 2 receives a log collection request by a debug statement in a program, the debug log object 2 calls the debug log object 2 and records the received information as log data. In the debug log object 2, according to the level of the collected log data set by the user,
Output log data with a hierarchical structure. That is, when collecting a log, the user only needs to set the level of the hierarchy of the log data to be collected, and therefore does not need to be a system engineer or programmer who understands the structure of the program.

【0015】次に動作について説明する。図3(a)は
プログラム実行を示すフローチャートであり、まず、ロ
グオブジェクトコール要求があるかを判断し(ステップ
ST1)、NOの場合はリターンへ移行し、YESの場
合はデバッグ文に付与されたレベル情報(識別情報)で
示される階層と設定された階層とが一致すると、デバッ
グ文を実行して実行結果を階層構造のログデータとして
記憶手段に出力するログオブジェクトログ取得実行(ス
テップST2)を行ってリターンへ移行する。図3
(b)はログ取得実行を示すフローチャートであり、ロ
グデータの取得(ステップST6)、ログデータにレベ
ル情報を付加(ステップST7)し、ログデータを出力
(ステップST3)してリターンへ移行する。
Next, the operation will be described. FIG. 3A is a flow chart showing program execution. First, it is judged whether or not there is a log object call request (step ST1). If NO, the process moves to return, and if YES, it is given to the debug statement. When the layer indicated by the level information (identification information) and the set layer match, the log object log acquisition execution (step ST2) is executed to execute the debug statement and output the execution result as log data having a hierarchical structure to the storage means. Go and return. Figure 3
(B) is a flow chart showing log acquisition execution, which acquires log data (step ST6), adds level information to the log data (step ST7), outputs the log data (step ST3), and shifts to return.

【0016】図2のログファイル3に記録された階層構
造のログデータは、ユーザの閲覧指示操作に応じて読み
出されて、ディスプレイに表示される。図4はログ閲覧
(ログ表示)処理のフローチャートであり、図5はディ
スプレイに表示されたログデータを示している。図5に
おいて、4は表示画面、5,6,7,8はレベル情報に
対応するマーク(標識画像)、9はポインティングデバ
イスであるマウス(図示せず)の移動に連動する画面上
のカーソルである。なお、この場合において、表示され
たログデータに関連する全体プログラムもまた、同時に
あるいはマルチウインドウで表示されるものとする。す
なわち、ログデータでバグが検出された場合には、全体
プログラムの修正が画面上でできるものとする。
The log data of the hierarchical structure recorded in the log file 3 of FIG. 2 is read according to the user's viewing instruction operation and displayed on the display. FIG. 4 is a flowchart of the log browsing (log display) process, and FIG. 5 shows the log data displayed on the display. In FIG. 5, 4 is a display screen, 5, 6, 7, and 8 are marks (sign images) corresponding to the level information, and 9 is a cursor on the screen which is interlocked with the movement of a mouse (not shown) which is a pointing device. is there. In this case, the entire program related to the displayed log data is also displayed simultaneously or in a multi-window. That is, if a bug is detected in the log data, the entire program can be modified on the screen.

【0017】次に動作について説明する。ログ閲覧処理
のフローチャートである図4において、ログファイルか
ら指定レベルのログデータを読み出す(ステップST1
1)。ユーザによって機能レベルが指定された場合に
は、図5(1)の表示画面4には、機能レベルのログデ
ータ、例えば機能Fに属するモジュールA,Bがマーク
5,6とともに表示される(ステップST12)。
Next, the operation will be described. In FIG. 4, which is a flowchart of the log browsing process, the log data of the designated level is read from the log file (step ST1).
1). When the function level is designated by the user, log data of the function level, for example, modules A and B belonging to the function F are displayed together with the marks 5 and 6 on the display screen 4 of FIG. ST12).

【0018】次に、いずれかのモジュールのマークがマ
ウスによって指定されたか否かを判別する(ステップS
T13)。マークが指定された場合には、そのマークの
レベルに属する下位レベルを指定する(ステップST1
4)。そして、指定された下位レベルのログデータがロ
グファイルにあるか否かを判別する(ステップST1
5)。指定された下位レベルのログデータがない場合に
は、たとえば終了処理等のその他の処理を行って(ステ
ップST16)、このフローから抜けて図示しないメイ
ンフローに戻る。指定された下位レベルのログデータが
ある場合には、ステップST11に移行して、その指定
レベルのログデータを読み出す。
Next, it is judged whether or not the mark of any module is designated by the mouse (step S).
T13). When the mark is designated, the lower level belonging to the level of the mark is designated (step ST1).
4). Then, it is determined whether or not the specified lower level log data exists in the log file (step ST1).
5). If there is no designated lower-level log data, other processing such as termination processing is performed (step ST16), and the flow exits from this flow and returns to the main flow (not shown). If there is the designated lower level log data, the process proceeds to step ST11 to read the designated level log data.

【0019】例えば、図5(1)の表示画面4におい
て、モジュールAのマーク5上にカーソル9が移動して
マウスがクリックされた場合には、モジュールAの下位
レベルであるオブジェクトレベルが指定され、図5
(2)に示すように、オブジェクトH、オブジェクトI
のログデータが表示される。さらに、この表示画面4に
おいてオブジェクトHのマーク7がクリックされた場合
には、オブジェクトHの下位レベルである関数レベルが
指定され、図5(3)に示すように、関数P、関数Q、
関数Rのログデータが表示される。
For example, when the cursor 9 is moved to the mark 5 of the module A and the mouse is clicked on the display screen 4 of FIG. 5A, the object level which is the lower level of the module A is designated. , Fig. 5
As shown in (2), object H, object I
The log data of is displayed. Further, when the mark 7 of the object H is clicked on the display screen 4, the function level which is the lower level of the object H is specified, and as shown in FIG. 5C, the function P, the function Q,
The log data of the function R is displayed.

【0020】以上のように、この実施の形態1によれ
ば、階層構造の全体プログラムに挿入されたデバッグ文
のうち設定された階層(レベル)のデバッグ文のみを実
行して、その結果を階層構造のログデータとして記録す
るので、ログデータのデータ量及びログデータの取得時
間を少なくできるという効果がある。また、実行するデ
バッグ文が存在する階層のみを指定するだけでよいの
で、プログラムの構造を理解したシステムエンジニアや
プログラマでなくとも、デバッグポイントを指定できる
という効果がある。さらに、出力するログデータにその
ログデータの階層を示す識別情報を付加するので、階層
構造のログデータを容易に記録できるという効果があ
る。さらに、記録されたログデータを表示してデバッグ
を行う場合に、ログデータが階層構造で表示され、その
階層を示すマークも同時に表示されるので、ログデータ
が階層構造に従って表示でき、ログ閲覧時の視認性を高
めることができるとともに、デバッグ目標のログデータ
を迅速に検索できるという効果がある。
As described above, according to the first embodiment, of the debug statements inserted in the entire program having the hierarchical structure, only the debug statements of the set hierarchy (level) are executed, and the result is the hierarchy. Since the log data is recorded as structured log data, there is an effect that the amount of log data and the log data acquisition time can be reduced. Further, since it is only necessary to specify the hierarchy in which the debug statement to be executed exists, there is an effect that even a system engineer or programmer who understands the program structure can specify a debug point. Furthermore, since the identification information indicating the hierarchy of the log data is added to the output log data, it is possible to easily record the log data having the hierarchical structure. Furthermore, when the recorded log data is displayed and debugged, the log data is displayed in a hierarchical structure, and the mark indicating the hierarchy is also displayed at the same time. It is possible to enhance the visibility of the log and to quickly search the log data of the debug target.

【0021】なお、上記実施の形態1において、表示さ
れたログデータのマークが指定された場合に、そのマー
クのレベルに属する下位レベルを指定する構成にした
が、上位レベルと下位レベルのいずれかを選択できるマ
ークを表示して、上位レベルのログデータを表示する構
成にしてもよい。すなわち、表示されたマークがユーザ
の操作によって指定された場合には、マークに対応する
レベル情報(識別情報)で示される階層に関連する上位
又は下位の階層に属するログデータを読み出して表示す
るようにしてもよい。
In the first embodiment, when the mark of the displayed log data is designated, the lower level belonging to the level of the mark is designated, but either the upper level or the lower level is designated. It is also possible to have a configuration in which a mark that can be used to select is displayed to display higher-level log data. That is, when the displayed mark is designated by the user's operation, the log data belonging to the upper or lower layer related to the layer indicated by the level information (identification information) corresponding to the mark is read and displayed. You may

【0022】また、上記実施の形態1では、オブジェク
ト指向プログラムをデバッグするデバッグ方法について
説明したが、他の構造化プログラムをデバッグする場合
にも、この発明を適用できることはいうまでもない。
In the first embodiment, the debugging method for debugging an object-oriented program has been described, but it goes without saying that the present invention can be applied to the case of debugging another structured program.

【0023】[0023]

【発明の効果】以上のように、この発明によれば、プロ
グラムのデバッグ方法を、デバッグ対象の構造化プログ
ラムにデバッグ文が存在するか否かを判別し、デバッグ
文が存在する場合にはデバッグ文に付与された識別情報
で示される階層が設定された階層と一致するか否かを判
別し、識別情報で示される階層と設定された階層とが一
致する場合にはデバッグ文を実行して実行結果を階層構
造のログデータとして所定の記憶手段に出力するように
構成したので、ログデータのデータ量及びログデータの
取得時間を少なくできるという効果がある。また、プロ
グラムの構造を理解したシステムエンジニアやプログラ
マでなくともデバッグポイントを指定できるという効果
がある。
As described above, according to the present invention, the method of debugging a program determines whether a debug statement is present in the structured program to be debugged, and if the debug statement is present, debug is performed. Determine whether the hierarchy indicated by the identification information given to the statement matches the set hierarchy, and if the hierarchy indicated by the identification information and the set hierarchy match, execute the debug statement. Since the execution result is output as log data having a hierarchical structure to a predetermined storage unit, there is an effect that the data amount of the log data and the acquisition time of the log data can be reduced. Further, it is effective that even a system engineer or programmer who understands the structure of a program can specify a debug point.

【0024】この発明によれば、プログラムのデバッグ
方法を、出力するログデータにログデータの階層を示す
識別情報を付加するように構成したので、階層構造のロ
グデータを容易に記録できるという効果がある。
According to the present invention, since the program debugging method is configured to add the identification information indicating the hierarchy of the log data to the output log data, it is possible to easily record the hierarchical log data. is there.

【0025】この発明によれば、プログラムのデバッグ
方法を、所定の記憶手段から読み出されたログデータを
所定の表示手段に表示する際には、識別情報に対応する
標識画像をともに表示するように構成したので、ログデ
ータが階層構造に従って表示でき、ログ閲覧時の視認性
を高めることができるという効果がある。
According to the present invention, in the program debugging method, when the log data read from the predetermined storage means is displayed on the predetermined display means, the marker image corresponding to the identification information is also displayed. Since it is configured as described above, there is an effect that the log data can be displayed according to the hierarchical structure and the visibility at the time of browsing the log can be improved.

【0026】この発明によれば、プログラムのデバッグ
方法を、表示された標識画像が操作によって指定された
場合には、標識画像に対応する識別情報で示される階層
に関連する階層に属するログデータを所定の記憶手段か
ら読み出して表示するように構成したので、デバッグ目
標のログデータを迅速に検索できるという効果がある。
According to the present invention, in the program debugging method, when the displayed marker image is designated by an operation, the log data belonging to the hierarchy related to the hierarchy indicated by the identification information corresponding to the marker image is displayed. Since it is configured to be read from a predetermined storage means and displayed, there is an effect that the log data of the debug target can be quickly searched.

【0027】この発明によれば、プログラムのデバッグ
方法を、指定された標識画像に対応する識別情報で示さ
れる階層の下位の階層に属するログデータを読み出して
表示するように構成したので、表示されたログデータの
下位の階層に属するデバッグ目標のログデータを迅速に
検索できるとともに、ログデータを閲覧する際の視認性
を高めることができる。また、ログデータ採取時に、採
取したい階層のみを指定すればよいので、データ量を低
減でき、ログ採取時間も短縮できるため、効率化が図れ
るという効果がある。
According to the present invention, the program debugging method is configured to read and display the log data belonging to the lower hierarchy of the hierarchy indicated by the identification information corresponding to the designated marker image, and thus the program data is displayed. The log data of the debug target belonging to the lower layer of the log data can be searched quickly, and the visibility when browsing the log data can be improved. Further, when collecting log data, it is only necessary to specify the hierarchy to be collected, so that the amount of data can be reduced and the log collection time can be shortened, which has the effect of improving efficiency.

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

【図1】 この発明の実施の形態1によるデバッグ方法
を適用するオブジェクト指向プログラムで記述されたプ
ログラム構造を示す図である。
FIG. 1 is a diagram showing a program structure written in an object-oriented program to which a debugging method according to a first embodiment of the present invention is applied.

【図2】 この発明の実施の形態1によるログデータを
採取する概念を示す図である。
FIG. 2 is a diagram showing a concept of collecting log data according to the first embodiment of the present invention.

【図3】 この発明の実施の形態1によるプログラム実
行およびログ取得実行のフローチャートである。
FIG. 3 is a flowchart of program execution and log acquisition execution according to the first embodiment of the present invention.

【図4】 この発明の実施の形態1によるログ閲覧処理
のフローチャートである。
FIG. 4 is a flowchart of a log browsing process according to the first embodiment of the present invention.

【図5】 この発明の実施の形態1によるディスプレイ
の表示画面を示す図である。
FIG. 5 is a diagram showing a display screen of the display according to the first embodiment of the present invention.

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

1 全体プログラム、2 デバッグログオブジェクト、
3 ログデータを記録するログファイル(所定の記憶手
段)、4 表示画面、5,6,7,8 マーク(標識画
像)、9 カーソル。
1 whole program, 2 debug log object,
3 Log files for recording log data (predetermined storage means), 4 display screens, 5, 6, 7, 8 marks (marker images), 9 cursors.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 デバッグ対象の構造化プログラムにデバ
ッグ文が存在するか否かを判別し、前記デバッグ文が存
在する場合には該デバッグ文に付与された識別情報で示
される階層が設定された階層と一致するか否かを判別
し、識別情報で示される階層と設定された階層とが一致
する場合には前記デバッグ文を実行して実行結果を階層
構造のログデータとして所定の記憶手段に出力するプロ
グラムのデバッグ方法。
1. A structured program to be debugged is discriminated whether or not there is a debug statement, and when the debug statement is present, the hierarchy indicated by the identification information given to the debug statement is set. It is determined whether or not it matches the hierarchy, and when the hierarchy indicated by the identification information and the set hierarchy match, the debug statement is executed and the execution result is stored in a predetermined storage unit as log data of a hierarchical structure. How to debug the output program.
【請求項2】 出力するログデータに該ログデータの階
層を示す識別情報を付加することを特徴とする請求項1
記載のプログラムのデバッグ方法。
2. The identification information indicating the hierarchy of the log data is added to the output log data.
How to debug the listed programs.
【請求項3】 所定の記憶手段から読み出されたログデ
ータを所定の表示手段に表示する際には、前記ログデー
タの階層を示す識別情報に対応する標識画像をともに表
示することを特徴とする請求項2記載のプログラムのデ
バッグ方法。
3. When the log data read from the predetermined storage means is displayed on the predetermined display means, a marker image corresponding to identification information indicating the hierarchy of the log data is also displayed. The method for debugging a program according to claim 2.
【請求項4】 表示された標識画像が操作によって指定
された場合には、前記標識画像に対応する識別情報で示
される階層に関連する階層に属するログデータを所定の
記憶手段から読み出して表示することを特徴とする請求
項3記載のプログラムのデバッグ方法。
4. When the displayed marker image is designated by an operation, the log data belonging to the hierarchy related to the hierarchy indicated by the identification information corresponding to the marker image is read from a predetermined storage means and displayed. 4. The program debugging method according to claim 3, wherein:
【請求項5】 指定された標識画像に対応する識別情報
で示される階層の下位の階層に属するログデータを読み
出して表示することを特徴とする請求項4記載のプログ
ラムのデバッグ方法。
5. The program debugging method according to claim 4, wherein the log data belonging to the lower hierarchy of the hierarchy indicated by the identification information corresponding to the designated marker image is read and displayed.
JP2001206821A 2001-07-06 2001-07-06 Method for debugging program Pending JP2003022201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001206821A JP2003022201A (en) 2001-07-06 2001-07-06 Method for debugging program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001206821A JP2003022201A (en) 2001-07-06 2001-07-06 Method for debugging program

Publications (1)

Publication Number Publication Date
JP2003022201A true JP2003022201A (en) 2003-01-24

Family

ID=19042897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001206821A Pending JP2003022201A (en) 2001-07-06 2001-07-06 Method for debugging program

Country Status (1)

Country Link
JP (1) JP2003022201A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065718A (en) * 2005-08-29 2007-03-15 Hitachi Software Eng Co Ltd Display method and system for supporting tracing program operation processes
JP2009205472A (en) * 2008-02-28 2009-09-10 Nec Corp System, method and program for outputting log
US20120272215A1 (en) * 2008-09-30 2012-10-25 Rockwell Automation Technologies, Inc. Application builder for industrial automation
JP2015130023A (en) * 2014-01-07 2015-07-16 Necプラットフォームズ株式会社 Information recording device, information processor, information recording method and information recording program
CN110879845A (en) * 2018-09-05 2020-03-13 丰田自动车株式会社 Method, non-transitory computer-readable medium, and data structure for generating log data

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007065718A (en) * 2005-08-29 2007-03-15 Hitachi Software Eng Co Ltd Display method and system for supporting tracing program operation processes
JP2009205472A (en) * 2008-02-28 2009-09-10 Nec Corp System, method and program for outputting log
US20120272215A1 (en) * 2008-09-30 2012-10-25 Rockwell Automation Technologies, Inc. Application builder for industrial automation
US9075959B2 (en) * 2008-09-30 2015-07-07 Rockwell Automation Technologies, Inc. Application builder for industrial automation
US9858044B2 (en) 2008-09-30 2018-01-02 Rockwell Automation Canada Ltd. Application for builder for industrial automation
JP2015130023A (en) * 2014-01-07 2015-07-16 Necプラットフォームズ株式会社 Information recording device, information processor, information recording method and information recording program
CN110879845A (en) * 2018-09-05 2020-03-13 丰田自动车株式会社 Method, non-transitory computer-readable medium, and data structure for generating log data
CN110879845B (en) * 2018-09-05 2023-09-19 丰田自动车株式会社 Method, non-transitory computer readable medium and data structure for generating log data

Similar Documents

Publication Publication Date Title
US10795803B2 (en) Systems and methods for summarization and visualization of trace data
US7032229B1 (en) Automatic tracking of user progress in a software application
US8924912B2 (en) Method of recording and replaying call frames for a test bench
US6754891B1 (en) Debugger system using tracepoints for computer software
US20070250820A1 (en) Instruction level execution analysis for debugging software
US8135572B2 (en) Integrated debugger simulator
JP4731643B2 (en) Script creation system
JPH0581082A (en) Synchronous journaling system
JPH0734178B2 (en) Effective error reporting for executing conversion code
US20060248514A1 (en) Active execution tracing
US20060248512A1 (en) Active execution tracing visualization
JP4675639B2 (en) Data processing system, method for displaying customization parameters of application program, and computer program product
JP2003022201A (en) Method for debugging program
JP4867864B2 (en) Performance data collection / display system, performance data display device, and program thereof
JP4681673B1 (en) Operation verification apparatus, operation verification method, and operation verification program
JP4496919B2 (en) Web browsing operation recording / playback apparatus, program, and computer-readable storage medium
Yan et al. The automated instrumentation and monitoring system (AIMS) reference manual
US20110099329A1 (en) Analysis and timeline visualization of storage channels
CN112948010B (en) JavaScript modularized HTML file front-end loading method
JP2002342113A (en) Method for displaying program performance situation, performing device thereof and processing program thereof
JP2021002276A (en) Analysis program, program analyzing method, and program analyzing apparatus
JP2011164784A (en) Device, method and program for verifying operation
JPH09190465A (en) Method for referring to classified and stored information
Zayour et al. A cognitively aware dynamic analysis tool for program comprehension
JPH0962545A (en) Information processor

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20071106

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20071106

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071106