JPH09212387A - Program development supporting device - Google Patents

Program development supporting device

Info

Publication number
JPH09212387A
JPH09212387A JP8015747A JP1574796A JPH09212387A JP H09212387 A JPH09212387 A JP H09212387A JP 8015747 A JP8015747 A JP 8015747A JP 1574796 A JP1574796 A JP 1574796A JP H09212387 A JPH09212387 A JP H09212387A
Authority
JP
Japan
Prior art keywords
module
program
metric
metrics
rank
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
JP8015747A
Other languages
Japanese (ja)
Inventor
Masahito Fukuda
正仁 福田
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP8015747A priority Critical patent/JPH09212387A/en
Publication of JPH09212387A publication Critical patent/JPH09212387A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a program development supporting device capable of efficiently executing debugging operation by utilizing the result of quality measurement. SOLUTION: The device having a program storage means 1 for storing a program and a quality measuring means 2 for calculating metrics for every module constituting the program is also provided with a debugging order judging means 4 for calculating ranks indicating the order of debugging operation of modules based upon the metrics, a program display means 8 for successively displaying the modules based upon the ranks and a program correcting means 9 for enabling an operator to execute debugging operation based upon the display of the modules and correct the modules.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プログラムのデバ
ッグ作業を行うプログラム開発支援装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program development support device for debugging a program.

【0002】[0002]

【従来の技術】プログラムに欠陥があった場合にはユー
ザに被害を及ぼし社会的にも影響が大きい場合があるの
で、プログラムの信頼性を確保する必要がある。
2. Description of the Related Art If a program is defective, it may damage the user and may have a great social impact. Therefore, it is necessary to ensure the reliability of the program.

【0003】そこで従来より、プログラムを構成するモ
ジュール毎の品質測定が行われている。モジュールの品
質は、例えば経路の複雑さを示すサイクロマティック複
雑度、制御構造の最大ネスティング数、ステップ数等の
メトリックスにより示されるものであり、各メトリック
スの値が小さいモジュールほど高品質である。従って、
各メトリックスの値が大きい場合は、モジュールの品質
が低く、文法上のエラーは存在しなくとも未発見のバグ
が残されている可能性が高い。そこで、モジュールの品
質が低い場合には、プログラマはデバッグ手段を用い
て、該モジュールについてデバッグ作業を行う。
Therefore, conventionally, quality measurement has been performed for each module constituting a program. The module quality is indicated by metrics such as the cyclomatic complexity indicating the complexity of a route, the maximum nesting number of control structures, and the number of steps. The module having a smaller value of each metric has a higher quality. Therefore,
When the value of each metric is large, the quality of the module is low, and there is a high possibility that an undiscovered bug remains even if there is no grammatical error. Therefore, when the quality of the module is low, the programmer uses the debugging means to perform the debugging work on the module.

【0004】従来のプログラム開発支援装置は、プログ
ラムに含まれている各モジュールについて前記品質測定
を行い、該各モジュールについてのメトリックスをモニ
ター画面上あるいはファイルや紙上に出力するようにさ
れている。
A conventional program development support device is designed to measure the quality of each module included in a program and output the metrics of each module on a monitor screen or on a file or paper.

【0005】また、他のプログラム開発支援装置にあっ
ては、該メトリックスに基づいて定形のメッセージ文を
プログラマに対する助言として表示するようになされて
いる。
Further, in another program development support device, a fixed-form message sentence is displayed based on the metrics as an advice to the programmer.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述の
ようなプログラム開発支援装置にあっては、各モジュー
ルの品質評価であるメトリックスを単に表示等するだけ
であるから、具体的にどのモジュールからデバッグ作業
を行うかはプログラマの経験と勘とに委ねられており、
品質測定の結果が十分に活用されていないという問題点
があった。
However, in the above-described program development support apparatus, since the metrics, which is the quality evaluation of each module, is simply displayed, the debugging work is started from which module. Whether or not to do is left to the experience and intuition of the programmer,
There was a problem that the results of quality measurement were not fully utilized.

【0007】また、従来デバッグ作業は、明確な終了要
件が存在しないため、例えばプログラムの納品期日等の
一定期日になるまでは継続して行われる場合があるとい
う問題点があった。
Further, there is a problem in that the conventional debugging work may be continued until a fixed date such as the delivery date of the program, because there is no clear termination requirement.

【0008】本発明は、上記問題点を改善するために成
されたもので、その目的とするところは、品質測定の結
果を活用して、効率よくデバッグ作業をすることができ
るプログラム開発支援装置を提供することにある。
The present invention has been made to solve the above problems, and an object of the present invention is to utilize a result of quality measurement to efficiently debug a program. To provide.

【0009】[0009]

【課題を解決するための手段】本発明は上記の問題を解
決するために、請求項1記載の発明にあっては、プログ
ラムを記憶するプログラム記憶手段と、該プログラムを
構成するモジュール毎にメトリックスを算出する品質測
定手段とを有するプログラム開発支援装置において、メ
トリックスに基づいてモジュールのデバッグ作業の順序
を示すランクを算出するデバッグ順序判定手段と、該ラ
ンクに基づいて順次モジュールを表示するプログラム表
示手段と、作業者が該モジュールの表示に基づいてデバ
ッグ作業を行いモジュールを修正するプログラム修正手
段とを設けたことを特徴とするものである。
In order to solve the above problems, the present invention provides a program storage means for storing a program and metrics for each module constituting the program. In a program development supporting device having a quality measuring means for calculating, a debug order determining means for calculating a rank indicating a debugging work order of the module based on metrics, and a program displaying means for sequentially displaying the modules based on the rank. And a program modifying means for modifying the module by the operator performing a debugging operation based on the display of the module.

【0010】請求項2記載の発明にあっては、前記デバ
ッグ順序判定手段は、メトリックスの重要度である判定
基準とモジュール毎のメトリックスとによりモジュール
のランクを算出することを特徴とするものである。
According to a second aspect of the present invention, the debug order determination means calculates the rank of the module based on the determination criterion which is the importance of the metrics and the metrics for each module. .

【0011】請求項3記載の発明にあっては、判定基準
を入力する判定基準入力手段と、該判定基準を記憶する
判定基準記憶手段とを設け、前記デバッグ順序判定手段
は判定基準記憶手段の記憶する判定基準とモジュール毎
のメトリックスとによりモジュールのランクを算出する
ことを特徴とするものである。
According to another aspect of the invention, there is provided a criterion input means for inputting a criterion and a criterion storing means for storing the criterion, and the debug order determining means is a criterion storing means. The feature is that the rank of the module is calculated based on the judgment criteria stored and the metrics for each module.

【0012】請求項4記載の発明にあっては、プログラ
ムを記憶するプログラム記憶手段と、該プログラムを構
成するモジュール毎にメトリックスを算出する品質測定
手段とを有するプログラム開発支援装置において、デバ
ッグ作業におけるモジュールの修正数を検出する修正数
検出手段と、品質測定手段が算出するモジュールのメト
リックスと、修正数検出手段が検出するモジュールの修
正数とを対応させて蓄積記憶する判定情報記憶手段と、
デバッグ作業の対象となっているモジュールのメトリッ
クスに近似するメトリックスを判定情報記憶手段から検
索し、該近似するメトリックスに対応して記憶されてい
る修正数を読み出し、該修正数からデバッグ作業の対象
となっているモジュールのランクを算出するデバッグ順
序判定手段と、該ランクに基づいて順次モジュールを表
示するプログラム表示手段と、作業者が該モジュールの
表示に基づいてデバッグ作業を行いモジュールを修正す
るプログラム修正手段とを設けたことを特徴とするもの
である。
In a fourth aspect of the present invention, in the program development support apparatus having the program storage means for storing the program and the quality measuring means for calculating the metrics for each module constituting the program, the debugging operation is performed. A correction number detecting means for detecting the number of corrections of the module, a metric of the module calculated by the quality measuring means, and a determination information storage means for storing the correction number of the module detected by the correction number detecting means in association with each other,
The determination information storage means is searched for a metric that is close to the metric of the module being debugged, the correction number stored corresponding to the approximate metric is read, and the target of the debug work is determined from the correction number. Order determination means for calculating the ranks of the modules that have become defective, a program display means for sequentially displaying the modules based on the ranks, and a program modification for the operator to perform the debugging work based on the display of the modules and correct the modules. Means and means are provided.

【0013】請求項5記載の発明にあっては、現在デバ
ッグ作業中であるモジュールの現在の修正数と、該モジ
ュールのメトリックスに近似し判定情報記憶手段に蓄積
記憶されているメトリックスに対応する修正数とを対比
して、デバッグ作業の終了を判断するデバッグ終了判定
手段を有することを特徴とするものである。
According to a fifth aspect of the present invention, the current number of modifications of the module currently being debugged and the modification corresponding to the metrics of the module and stored in the judgment information storage means are stored. It is characterized in that it has a debug end judging means for judging the end of the debugging work by comparing it with the number.

【0014】請求項6記載の発明にあっては、デバッグ
作業の対象となっているモジュールのメトリックスから
モジュールの品質に悪影響を与えているメトリックスを
特定し、該メトリックスに影響を与える制御文を該モジ
ュールから検索する制御文検索手段を有し、プログラム
表示手段は、該検索した制御文の位置の周辺を表示する
ことを特徴とするものである。
According to a sixth aspect of the present invention, a metric that adversely affects the quality of the module is identified from the metrics of the module that is the object of debugging work, and a control statement that affects the metric is specified. It is characterized in that it has a control statement search means for searching from the module, and the program display means displays the vicinity of the position of the searched control statement.

【0015】[0015]

【発明の実施の形態】本発明にかかるプログラム開発支
援装置の第一実施の形態を図1〜図2に基づいて、第二
実施の形態を図3〜図4に基づいて、第三実施の形態を
図5に基づいて、第四実施の形態を図6に基づいて説明
する。
BEST MODE FOR CARRYING OUT THE INVENTION A first embodiment of a program development support apparatus according to the present invention will be described with reference to FIGS. 1 and 2, and a second embodiment will be described with reference to FIGS. The form will be described based on FIG. 5, and the fourth embodiment will be described based on FIG.

【0016】〔第一実施の形態〕図1はプログラム開発
支援装置の構成を示すブロック図である。図2は品質記
憶手段の記憶内容の説明図である。図1において、プロ
グラム開発支援装置は、プログラム記憶手段1、品質測
定手段2、品質記憶手段3、デバッグ順序判定手段4、
判定基準入力手段5、判定基準記憶手段6、デバッグ手
段7を有している。
[First Embodiment] FIG. 1 is a block diagram showing the arrangement of a program development supporting apparatus. FIG. 2 is an explanatory diagram of the storage contents of the quality storage means. In FIG. 1, the program development support device includes a program storage unit 1, a quality measurement unit 2, a quality storage unit 3, a debug order determination unit 4,
It has a judgment reference input means 5, a judgment reference storage means 6, and a debugging means 7.

【0017】プログラム記憶手段1は、開発の対象とな
っているプログラムを記憶する。品質測定手段2は、プ
ログラム記憶手段1の記憶するプログラムを読み出し
て、プログラムに含まれるn個のモジュールについてモ
ジュール毎に品質の測定を行う。本実施の形態では、品
質測定手段2は、メトリックスM1(m)としてサイク
ロマティック複雑度、メトリックスM2(m)として最
大ネスティング数、メトリックスM3(m)としてステ
ップ数を測定する。そして、品質測定手段2は、各モジ
ュールについてメトリックスM1(m),M2(m),
M3(m)を測定して、該メトリックスM1(m),M
2(m),M3(m)の値を品質記憶手段3に出力す
る。なお、mは、モジュールA、モジュールB・・・の
ようにモジュールを示す。従って、M1(A)とは、モ
ジュールAのメトリックスM1の値を示す。
The program storage means 1 stores a program to be developed. The quality measuring unit 2 reads the program stored in the program storage unit 1 and measures the quality of each of n modules included in the program. In the present embodiment, the quality measuring means 2 measures the cyclomatic complexity as the metrics M1 (m), the maximum nesting number as the metrics M2 (m), and the number of steps as the metrics M3 (m). The quality measuring means 2 then measures the metrics M1 (m), M2 (m),
M3 (m) is measured and the metrics M1 (m), M
The values of 2 (m) and M3 (m) are output to the quality storage means 3. Note that m indicates a module such as module A, module B, .... Therefore, M1 (A) indicates the value of the metric M1 of the module A.

【0018】品質記憶手段3は、図2に示すように、品
質測定手段2から受け取った各モジュール毎のメトリッ
クスM1(m),M2(m),M3(m)の値をモジュ
ールと対応して記憶する。図2は、例えばモジュールA
のメトリックスM1(A)の値は10であり、メトリッ
クスM2(A)の値は2であり、メトリックスM3
(A)の値は20であることを示す。
As shown in FIG. 2, the quality storage means 3 associates the values of the metrics M1 (m), M2 (m), M3 (m) for each module received from the quality measurement means 2 with the module. Remember. FIG. 2 shows, for example, module A
The metric M1 (A) has a value of 10, the metric M2 (A) has a value of 2, and the metric M3
The value of (A) is 20.

【0019】判定基準入力手段5は、プログラマが判定
基準J1,J2,J3を入力するためのものである。判
定基準J1,J2,J3とは、後述するモジュールの品
質値を算出する際の各メトリックスM1,M2,M3の
重要度を示すものであり、予めプログラマにより設定さ
れる。また、判定基準J1,J2,J3の値が大きいほ
ど、対応するメトリックスの重要度が大きい。判定基準
入力手段5はプログラマの操作により、判定基準J1,
J2,J3が入力されると、該判定基準J1,J2,J
3を判定基準記憶手段6に出力する。
The criterion input means 5 is used by the programmer to input the criteria J1, J2 and J3. Judgment criteria J1, J2, J3 indicate the importance of each metric M1, M2, M3 when calculating the quality value of the module described later, and are set by the programmer in advance. Further, the larger the values of the judgment criteria J1, J2, and J3, the greater the importance of the corresponding metrics. The judgment criterion input means 5 is operated by the programmer so that the judgment criterion J1,
When J2 and J3 are input, the judgment criteria J1, J2 and J
3 is output to the determination reference storage means 6.

【0020】判定基準記憶手段6は、判定基準入力手段
5から判定基準J1,J2,J3を受け取ると、該判定
基準J1,J2,J3を記憶する。
Upon receipt of the judgment criteria J1, J2, J3 from the judgment criterion input means 5, the judgment criterion storage means 6 stores the judgment criteria J1, J2, J3.

【0021】デバッグ順序判定手段4は、プログラム内
の各モジュールについて、デバッグ作業を行う際の順序
であるランクR(m)を算出して、該ランクR(m)を
デバッグ手段7に出力する。デバッグ順序判定手段4
は、以下のようにしてランクR(m)を算出する。
The debug order determination means 4 calculates the rank R (m), which is the order in which the debugging work is performed, for each module in the program, and outputs the rank R (m) to the debug means 7. Debug sequence determination means 4
Calculates the rank R (m) as follows.

【0022】即ち、デバッグ順序判定手段4は、品質記
憶手段3からモジュールmについてのメトリックスM1
(m),M2(m),M3(m)の値を読み込み、判定
基準記憶手段6から判定基準J1,J2,J3を読み込
む。そして、デバッグ順序判定手段4は、まず以下の式
によりモジュールmについての品質値C(m)を算出す
る。
That is, the debug order determination means 4 uses the metrics M1 for the module m from the quality storage means 3.
The values of (m), M2 (m), and M3 (m) are read, and the judgment criteria J1, J2, and J3 are read from the judgment criteria storage unit 6. Then, the debug order determination means 4 first calculates the quality value C (m) for the module m by the following formula.

【0023】 C(m)=M1(m)×J1+M2(m)×J2+M3(m)×J3・・・・ ・・・・(1) 例えば、デバッグ順序判定手段4は、モジュールAのメ
トリックスM1(A),M2(A),M3(A)である
「10,2,20」の値を品質記憶手段3から読み込
み、以下の式で品質値C(A)を算出する。
C (m) = M1 (m) × J1 + M2 (m) × J2 + M3 (m) × J3 ... (1) For example, the debug order determination unit 4 uses the metrics M1 ( A), M2 (A), and M3 (A) values of "10, 2, 20" are read from the quality storage means 3, and the quality value C (A) is calculated by the following formula.

【0024】 C(A)=10×J1+2×J2+20×J3 そして、デバッグ順序判定手段4は、n個全てのモジュ
ールについて、品質値C(m)を算出する。そして、デ
バッグ順序判定手段4は、品質値C(m)の最も大きな
モジュールのランクR(m)を1として、次に品質値C
(m)の大きなモジュールのランクR(m)を2とし
て、品質値C(m)の大きなモジュールから小さな値の
ランクを順に付与する。従って、品質値C(m)の大き
なモジュールのランクR(m)は小さくなり、品質値C
(m)の小さなモジュールのランクR(m)は大きくな
る。
C (A) = 10 × J1 + 2 × J2 + 20 × J3 Then, the debug order determination means 4 calculates the quality value C (m) for all n modules. Then, the debug order determination means 4 sets the rank R (m) of the module having the largest quality value C (m) to 1, and then the quality value C.
The rank R (m) of the module having a large (m) is set to 2, and the rank of the module having a large quality value C (m) is given in ascending order. Therefore, the rank R (m) of a module having a large quality value C (m) becomes small,
The rank R (m) of a module having a small (m) becomes large.

【0025】デバッグ手段7は、プログラム表示手段8
と、プログラム修正手段9とを有している。プログラム
表示手段8は、プログラムのデバッグ作業を行うため
に、プログラムをプログラム記憶手段1から読み込む。
そして、プログラム表示手段8はデバッグ順序判定手段
4から受け取ったランクR(m)に基づいて、最もラン
クR(m)の小さいモジュールをモニタ画面上に表示す
る。そして、該モジュールについてデバッグ作業が終了
すると、次にランクR(m)の小さいモジュールを表示
するといった具合にランクR(m)の小さいモジュール
から順次表示する。
The debug means 7 is a program display means 8
And a program correction means 9. The program display means 8 reads the program from the program storage means 1 in order to debug the program.
Then, the program display means 8 displays the module with the smallest rank R (m) on the monitor screen based on the rank R (m) received from the debug order determination means 4. Then, when the debugging work for the module is completed, the module with the smallest rank R (m) is displayed next, and so on.

【0026】プログラム修正手段9は、プログラム表示
手段8によって表示されているモジュールについてのデ
バッグ作業中においてプログラマがバグを発見した場合
に該モジュールを修正するものである。
The program correction means 9 is for correcting the module displayed by the program display means 8 when the programmer finds a bug during the debugging work.

【0027】以上のようにして、構成されたプログラム
開発支援装置の動作を説明する。なお、プログラムはモ
ジュールA〜モジュールEにより構成されているものと
する。
The operation of the program development supporting apparatus configured as described above will be described. The program is assumed to be composed of modules A to E.

【0028】まず、デバッグ作業の前に、プログラマは
判定基準入力手段5により判定基準J1,J2,J3を
入力する。本実施の形態においては、判定基準J1は
「1」、判定基準J2は「2」、判定基準J3は「5」
が設定されたものとして説明する。
First, before debugging, the programmer inputs the judgment criteria J1, J2, J3 by the judgment criterion input means 5. In the present embodiment, the criterion J1 is "1", the criterion J2 is "2", and the criterion J3 is "5".
Will be described as being set.

【0029】次に、品質測定手段2は、プログラム記憶
手段1の記憶するプログラムを読み出して、プログラム
に含まれるモジュールA〜モジュールEの品質の測定を
行い、品質記憶手段3に出力する。品質記憶手段3は、
該測定結果であるメトリックスM1(m),M2
(m),M3(m)を図2に示すように記憶する。
Next, the quality measuring means 2 reads the program stored in the program storing means 1, measures the quality of the modules A to E included in the program, and outputs the quality to the quality storing means 3. The quality storage means 3 is
Metrics M1 (m) and M2 which are the measurement results
(M) and M3 (m) are stored as shown in FIG.

【0030】デバッグ順序判定手段4は、モジュールA
〜モジュールEについての品質値C(m)を、メトリッ
クスM1(m),M2(m),M3(m)及び判定基準
J1,J2,J3より、前述の式(1)を用いて算出す
る。即ち、品質値C(A)〜品質値C(E)は、各々
「114」、「53」、「87」、「126」、「16
9」となる。従って、モジュールEの品質値C(E)が
最も大きいので、デバッグ順序判定手段4はモジュール
EのランクR(E)を1とする。そして、モジュールD
の品質値C(D)が次に大きいので、デバッグ順序判定
手段4はモジュールDのランクR(D)を2とする。以
下、品質値C(m)に従って、ランクR(A)を3、ラ
ンクR(C)を4、ランクR(B)を5とする。
The debug order determination means 4 is a module A
~ The quality value C (m) for the module E is calculated from the metrics M1 (m), M2 (m), M3 (m) and the judgment criteria J1, J2, J3 using the above equation (1). That is, the quality values C (A) to C (E) are "114", "53", "87", "126", and "16", respectively.
9 ". Therefore, since the quality value C (E) of the module E is the largest, the debug order determination means 4 sets the rank R (E) of the module E to 1. And module D
Since the quality value C (D) of the module D is the next largest, the debug order determination means 4 sets the rank R (D) of the module D to 2. Hereinafter, according to the quality value C (m), the rank R (A) is 3, the rank R (C) is 4, and the rank R (B) is 5.

【0031】そして、プログラム表示手段8は、プログ
ラムのデバッグ作業を行うために、プログラムをプログ
ラム記憶手段1から読み込み、デバッグ順序判定手段4
から受け取ったランクR(m)に基づいて、最もランク
R(m)の小さいモジュールであるモジュールEをモニ
タ画面上に表示する。そして、プログラマが該モジュー
ルEについてデバッグ作業を行い、必要があればプログ
ラム修正手段9により修正を行なう。以下、プログラム
表示手段8は、ランクR(m)の小さい順序でモジュー
ルを順次表示するので、プログラマは品質の悪いモジュ
ールから順にデバッグ作業をする。そして、プログラム
開発支援装置は、全てのモジュールについてデバッグ作
業を行った後に終了する。
Then, the program display means 8 reads the program from the program storage means 1 and performs the debug order determination means 4 in order to debug the program.
Based on the rank R (m) received from the module R, the module E having the smallest rank R (m) is displayed on the monitor screen. Then, the programmer debugs the module E, and if necessary, corrects it by the program correcting means 9. Thereafter, the program display means 8 sequentially displays the modules in the order of smaller rank R (m), so that the programmer performs debugging work in order from the module with the poor quality. Then, the program development support apparatus ends after performing the debugging work for all the modules.

【0032】〔第二実施の形態〕図3はプログラム開発
支援装置の構成を示すブロック図である。図4は判定情
報記憶手段の記憶内容の説明図である。なお、図3にお
いては前述の第一実施の形態で説明したところのプログ
ラム開発支援装置と同等の箇所には同じ符号を付してあ
るので、同等の箇所の詳細な説明は省略する。
[Second Embodiment] FIG. 3 is a block diagram showing the structure of a program development supporting apparatus. FIG. 4 is an explanatory diagram of the storage contents of the determination information storage means. In FIG. 3, the same parts as those of the program development support apparatus described in the first embodiment are designated by the same reference numerals, and detailed description of the same parts will be omitted.

【0033】図3に示す本第二実施の形態のプログラム
開発支援装置が、前述の第一実施の形態で説明したとこ
ろのプログラム開発支援装置と異なり特徴となるのは次
の構成である。
The program development support apparatus according to the second embodiment shown in FIG. 3 is different from the program development support apparatus described in the first embodiment in that it has the following features.

【0034】第一に、プログラム修正手段9によるモジ
ュールmの修正数S(m)を検出する修正数検出手段1
1を設けた構成である。修正数検出手段11は、プログ
ラム表示手段8によって表示されているモジュールmが
プログラム修正手段9によって修正される毎にカウント
アップして、該モジュールmのデバッグ作業が終了する
と、カウントアップした修正数S(m)を出力する。
First, the correction number detecting means 1 for detecting the correction number S (m) of the module m by the program correcting means 9
1 is provided. The correction number detection means 11 counts up every time the module m displayed by the program display means 8 is corrected by the program correction means 9, and when the debugging work of the module m ends, the correction number S counted up. Output (m).

【0035】第二に、判定基準入力手段5と判定基準記
憶手段6とを設けずに判定情報記憶手段10を設け、品
質測定手段2は測定結果である各モジュールについての
メトリックスM1(m),M2(m),M3(m)を品
質記憶手段3と判定情報記憶手段10とに出力し、判定
情報記憶手段10は、該測定結果と前記修正数とを蓄積
記憶する構成である。即ち、判定情報記憶手段10は、
モジュールとメトリックスM1(m),M2(m),M
3(m)とを対応させて蓄積記憶し、モジュールと修正
数とを対応させて蓄積記憶する。よって、判定情報記憶
手段10は、図4に示すように、メトリックスM1
(m),M2(m),M3(m)と修正数S(m)とを
1レコードの判定情報として蓄積記憶する。
Secondly, the judgment information storage means 10 is provided without providing the judgment criterion input means 5 and the judgment criterion storage means 6, and the quality measuring means 2 measures the metrics M1 (m) for each module which is the measurement result. M2 (m) and M3 (m) are output to the quality storage unit 3 and the determination information storage unit 10, and the determination information storage unit 10 is configured to store and store the measurement result and the correction number. That is, the determination information storage means 10
Modules and metrics M1 (m), M2 (m), M
3 (m) are stored in correspondence with each other, and modules and correction numbers are stored in correspondence with each other. Therefore, as shown in FIG. 4, the determination information storage means 10 stores the metrics M1.
(M), M2 (m), M3 (m) and the number of corrections S (m) are accumulated and stored as the determination information of one record.

【0036】第三に、デバッグ順序判定手段4は、判定
情報記憶手段10の記憶する判定情報と、品質記憶手段
3の記憶するモジュールmについてのメトリックスM1
(m),M2(m),M3(m)とから、モジュールm
のランクR(m)を算出するようにした構成である。即
ち、デバッグ順序判定手段4は、モジュールmのメトリ
ックスM1(m),M2(m),M3(m)と最も近似
しているメトリックスを有するレコードを判定情報記憶
手段10から検索し、該レコードの修正数を判定情報記
憶手段10から読み出して、モジュールmの品質値C
(m)とする。そして、デバッグ順序判定手段4は、全
てのモジュールについて同様に品質値C(m)を算出
し、前述の第一実施の形態で説明したようにして、品質
値C(m)からランクR(m)を算出する。即ち、品質
値C(m)の値が大きなモジュールについてのランクR
(m)の値は小さくし、品質値C(m)の値が小さなモ
ジュールについてのランクR(m)の値は大きくする。
Thirdly, the debug order judging means 4 has metrics M1 about the judgment information stored in the judgment information storage means 10 and the module m stored in the quality storage means 3.
From (m), M2 (m), and M3 (m), the module m
The rank R (m) of is calculated. That is, the debug order determination means 4 searches the determination information storage means 10 for a record having a metric that is the closest to the metrics M1 (m), M2 (m), and M3 (m) of the module m, and The number of modifications is read from the determination information storage means 10 and the quality value C of the module m is read.
(M). Then, the debug order determination means 4 similarly calculates the quality value C (m) for all the modules, and the quality value C (m) to the rank R (m) are calculated as described in the first embodiment. ) Is calculated. That is, the rank R for a module having a large quality value C (m)
The value of (m) is made small, and the value of rank R (m) for the module having a small value of quality value C (m) is made large.

【0037】次に、以上のようにして構成されたプログ
ラム開発支援装置の動作を説明する。
Next, the operation of the program development support device configured as described above will be described.

【0038】まず、判定情報の蓄積動作を説明する。品
質測定手段2は、各モジュールについてのメトリックス
M1(m),M2(m),M3(m)を品質記憶手段3
と判定情報記憶手段10とに出力し、デバッグ順序判定
手段4は、各モジュールのランクR(m)を後述のアル
ゴリズムにより決定してデバッグ手段7に出力する。デ
バッグ手段7では、該ランクR(m)に従ってプログラ
ム表示手段8がモジュールを表示し、プログラム修正手
段9によってモジュールの修正がなされる。修正数検出
手段11は、モジュールのデバッグ作業が終了するとモ
ジュールの修正数S(m)を検出して、判定情報記憶手
段10に出力する。判定情報記憶手段10は、図4に示
すように、同一のモジュールについてのメトリックスM
1(m),M2(m),M3(m)と修正数S(m)と
を対応させて1レコードとして蓄積記憶する。該レコー
ドは、次回のデバッグ作業において判定情報として使用
される。
First, the operation of accumulating the determination information will be described. The quality measuring means 2 stores the metrics M1 (m), M2 (m) and M3 (m) for each module in the quality storing means 3.
Then, the debug order determination means 4 determines the rank R (m) of each module by an algorithm described later and outputs it to the debug means 7. In the debug means 7, the program display means 8 displays the module according to the rank R (m), and the program correction means 9 corrects the module. The modification number detection means 11 detects the modification number S (m) of the module when the module debugging work is completed, and outputs it to the determination information storage means 10. As shown in FIG. 4, the determination information storage means 10 stores the metrics M for the same module.
1 (m), M2 (m), M3 (m) and the correction number S (m) are associated and stored as one record. The record is used as judgment information in the next debugging work.

【0039】プログラム開発支援装置は、以上の動作を
プログラムのデバッグ作業毎に行うので、メトリックス
M1(m),M2(m),M3(m)と修正数S(m)
との関係のレコードが蓄積され、判定情報が拡充され
る。
Since the program development support device performs the above operation for each debugging operation of the program, the metrics M1 (m), M2 (m), M3 (m) and the number of corrections S (m).
Records of the relationship with are accumulated and the determination information is expanded.

【0040】次に、デバッグ順序判定手段4のランクR
(m)の決定動作を説明する。デバッグ順序判定手段4
は、品質記憶手段3からモジュールmのメトリックスM
1(m),M2(m),M3(m)を読み出して、該メ
トリックスと近似するメトリックスを有するレコードを
判定情報記憶手段10の記憶する判定情報から検索し、
該レコードの修正数を読み出して、モジュールmの品質
値C(m)とする。即ち、デバッグ順序判定手段4は、
過去にデバッグ作業を行ったモジュールのメトリックス
と修正数との関係を判定情報記憶手段10の記憶する判
定情報より参照して、現在デバッグ作業の対象となって
いるモジュールのメトリックスから修正数を推定し、該
修正数を品質値C(m)とする。
Next, the rank R of the debug order determination means 4
The determination operation of (m) will be described. Debug sequence determination means 4
Is the metric M of the module m from the quality storage means 3.
1 (m), M2 (m), M3 (m) are read, and a record having a metric close to the metric is retrieved from the determination information stored in the determination information storage means 10,
The number of corrections of the record is read and set as the quality value C (m) of the module m. That is, the debug order determination means 4
The correction number is estimated from the metrics of the module currently being debugged by referring to the determination information stored in the determination information storage unit 10 with reference to the relationship between the metrics of the module that has been debugged in the past and the correction number. , And the number of corrections is the quality value C (m).

【0041】例えば、モジュールmのメトリックスM1
(m),M2(m),M3(m)が「18,16,8」
である場合、デバッグ順序判定手段4は、該メトリック
スと近似するメトリックスを有するレコードを、判定情
報記憶手段10から検索する。例えば、判定情報記憶手
段10の記憶内容が図4に示す内容である場合には、3
行目のレコードが近似しているので、該レコードの修正
数「3」を読み出して、品質値C(m)の値を「3」と
する。
For example, the metrics M1 of the module m
(M), M2 (m) and M3 (m) are "18, 16, 8"
If it is, the debug order determination unit 4 searches the determination information storage unit 10 for a record having a metric close to the metric. For example, if the storage content of the determination information storage unit 10 is the content shown in FIG.
Since the records on the line are close to each other, the correction number "3" of the record is read and the quality value C (m) is set to "3".

【0042】以上のようにしてプログラムに含まれる各
モジュールについて品質値C(m)を求め、該品質値C
(m)に基づいてモジュールのランクR(m)を決定す
る。
As described above, the quality value C (m) is calculated for each module included in the program, and the quality value C
The rank R (m) of the module is determined based on (m).

【0043】従って、判定情報記憶手段10に蓄積記憶
された過去の修正の実績である判定情報に基づいて、モ
ジュールの修正順序が決定され、またプログラムについ
てデバッグ作業を行う毎に判定情報が蓄積される。
Therefore, the correction order of the modules is determined based on the judgment information which is the past correction record accumulated and stored in the judgment information storage means 10, and the judgment information is accumulated every time the program is debugged. It

【0044】〔第三実施の形態〕図5はプログラム開発
支援装置の構成を示すブロック図である。なお、図5に
おいては前述の第二実施の形態で説明したところのプロ
グラム開発支援装置と同等の箇所には同じ符号を付して
あるので、同等の箇所の詳細な説明は省略する。
[Third Embodiment] FIG. 5 is a block diagram showing the structure of a program development supporting apparatus. In FIG. 5, the same parts as those of the program development support device described in the second embodiment are designated by the same reference numerals, and detailed description of the same parts will be omitted.

【0045】図5に示す本第三実施の形態のプログラム
開発支援装置が、前述の第二実施の形態で説明したとこ
ろのプログラム開発支援装置と異なり特徴となるのは次
の構成である。
The program development support apparatus of the third embodiment shown in FIG. 5 is different from the program development support apparatus described in the second embodiment, and is characterized by the following configuration.

【0046】即ち、デバッグ終了判定手段12を設け、
デバッグ順序判定手段4は判定情報記憶手段10からモ
ジュールmに対して読み出した修正数を品質値C(m)
とするとともに、該修正数をデバッグ終了判定手段12
に出力するようにし、修正検出手段11は現在デバッグ
手段7においてデバッグ作業中のモジュールmの現在の
修正数S(m)をデバッグ終了判定手段12に出力する
ようにした構成である。
That is, the debug end judging means 12 is provided,
The debug order determination means 4 uses the number of modifications read from the determination information storage means 10 for the module m as the quality value C (m).
At the same time, the number of corrections is set to the debug end determination means 12
The correction detection means 11 is configured to output the current correction number S (m) of the module m currently being debugged by the debug means 7 to the debug end determination means 12.

【0047】デバッグ終了判定手段12は、デバッグ順
序判定手段4から受け取った修正数と、修正検出手段1
1の出力する修正数S(m)とを比較して同じ値になっ
たときに、デバッグ作業の終了を勧告するメッセージを
プログラム表示手段8に表示させる。
The debug end judging means 12 detects the number of corrections received from the debug order judging means 4 and the correction detecting means 1.
When the number of corrections S (m) output by 1 is compared and they have the same value, the program display means 8 displays a message recommending the end of the debugging work.

【0048】以上のようにして構成したプログラム開発
支援装置の動作について説明する。まず、品質測定手段
2がプログラム記憶手段1からプログラムを読み出し
て、各モジュール毎にメトリックスM1(m),M2
(m),M3(m)を求め、品質記憶手段3に出力す
る。デバッグ順序判定手段4は、品質記憶手段3からモ
ジュールmのメトリックスM1(m),M2(m),M
3(m)を読み出して、該メトリックスと近似するメト
リックスを有するレコードを判定情報記憶手段10の記
憶する判定情報から検索し、該レコードの修正数を読み
出して、モジュールmの品質値C(m)とする。そし
て、デバッグ順序判定手段4は、該修正数をデバッグ終
了判定手段12に出力する。以上の動作を各モジュール
について行う。デバッグ順序判定手段4は、該品質値C
(m)に基づいてモジュールのランクR(m)を決定す
る。
The operation of the program development support device configured as described above will be described. First, the quality measuring unit 2 reads the program from the program storage unit 1 and measures the metrics M1 (m) and M2 for each module.
(M) and M3 (m) are obtained and output to the quality storage means 3. The debug order determination means 4 uses the metrics M1 (m), M2 (m), M of the module m from the quality storage means 3.
3 (m) is read, a record having a metric close to the metric is searched from the judgment information stored in the judgment information storage means 10, the correction number of the record is read, and the quality value C (m) of the module m is read. And Then, the debug order determination means 4 outputs the correction number to the debug end determination means 12. The above operation is performed for each module. The debug order determination means 4 determines the quality value C
The rank R (m) of the module is determined based on (m).

【0049】次にデバッグ手段7においては、該ランク
R(m)に従った順序でプログラム表示手段8がモジュ
ールを表示し、プログラム修正手段9によってモジュー
ルの修正がなされる。修正数検出手段11は、修正がな
されると現在のモジュールmについての現在の修正数S
(m)をデバッグ終了判定手段12に出力する。
Next, in the debug means 7, the program display means 8 displays the modules in the order according to the rank R (m), and the program correction means 9 corrects the modules. When the correction is made, the correction number detecting means 11 detects the current correction number S for the current module m.
(M) is output to the debug end determination means 12.

【0050】そして、デバッグ終了判定手段12は、デ
バッグ順序判定手段4から受け取った修正数と、修正検
出手段11の出力する修正数S(m)とを比較して同じ
値になったときに、デバッグ作業の終了を勧告するメッ
セージをプログラム表示手段8に表示させる。従って、
デバッグ作業についての一定の時間的基準が設けられる
ので、一定期日まで繰り返しデバッグ作業が行われると
いったことなく、デバッグ作業を終了できる。
Then, the debug end judging means 12 compares the correction number received from the debug order judging means 4 with the correction number S (m) output from the correction detecting means 11, and when they have the same value, A message for recommending the end of debugging work is displayed on the program display means 8. Therefore,
Since a certain time standard is set for the debugging work, the debugging work can be completed without repeating the debugging work until one regular day.

【0051】〔第四実施の形態〕図6はプログラム開発
支援装置の構成を示すブロック図である。なお、図6に
おいては前述の第一実施の形態で説明したところのプロ
グラム開発支援装置と同等の箇所には同じ符号を付して
あるので、同等の箇所の詳細な説明は省略する。
[Fourth Embodiment] FIG. 6 is a block diagram showing the structure of a program development supporting apparatus. In FIG. 6, the same parts as those of the program development support apparatus described in the first embodiment are designated by the same reference numerals, and detailed description of the same parts will be omitted.

【0052】図6に示す本第四実施の形態のプログラム
開発支援装置が、前述の第一実施の形態で説明したとこ
ろのプログラム開発支援装置と異なり特徴となるのは次
の構成である。
The program development support apparatus of the fourth embodiment shown in FIG. 6 is different from the program development support apparatus described in the first embodiment in that it has the following features.

【0053】即ち、デバッグ手段7がデバッグ作業を行
うモジュールについて、「for」「switch」等
の特定の制御文を検索して、該制御文の存在する部分を
プログラム表示手段8に表示させる制御文検索手段13
をデバッグ手段7に設けた構成である。
That is, with respect to the module for which the debugging means 7 performs the debugging work, a specific control statement such as "for" or "switch" is searched for, and a portion where the control statement exists is displayed on the program display means 8. Search means 13
Is provided in the debugging means 7.

【0054】メトリックスM1は前述のようにサイクロ
マティック複雑度であり、サイクロマティック複雑度は
「if」や「switch〜case」等の制御文の数
に比例するものである。また、メトリックスM2は最大
ネスティング数であり、「for」「switch」等
の制御文の制御構造により影響を受ける。このようにメ
トリックスの種類によっては、特定の制御文に影響を受
ける場合がある。
The metric M1 is a cyclomatic complexity as described above, and the cyclomatic complexity is proportional to the number of control statements such as "if" and "switch-case". Further, the metric M2 is the maximum nesting number and is influenced by the control structure of the control statement such as "for" and "switch". Thus, depending on the type of metrics, it may be affected by a specific control statement.

【0055】そこで、制御文検索手段13は、デバッグ
作業の対象となるモジュールのメトリックスM1
(m),M2(m),M3(m)を品質記憶手段3から
読み出して、モジュールの品質値C(m)に最も悪影響
を与えているメトリックスを特定する。そして、制御文
検索手段13は、該特定したメトリックスに影響を与え
る制御文を特定の制御文として、該制御文をモジュール
から検索する。なお、メトリックスと特定の制御文との
関係は予め制御文検索手段13に設定しておく。
Therefore, the control statement search means 13 uses the metrics M1 of the module to be debugged.
(M), M2 (m), and M3 (m) are read from the quality storage unit 3 to identify the metric that most adversely affects the quality value C (m) of the module. Then, the control statement retrieval means 13 retrieves the control statement from the module, using the control statement that affects the specified metrics as the specific control statement. The relationship between the metrics and the specific control statement is set in the control statement search means 13 in advance.

【0056】従って、例えばメトリックスM1(m)が
品質値C(m)に悪影響を与えているのであれば、制御
文検索手段13は「if」「switch」等を検索
し、またメトリックスM2(m)が品質値C(m)に悪
影響を与えているのであれば、制御文検索手段13は
「for」「switch」等を検索する。
Therefore, for example, if the metric M1 (m) adversely affects the quality value C (m), the control statement search means 13 searches for "if", "switch", etc., and also the metric M2 (m). ) Has an adverse effect on the quality value C (m), the control statement search means 13 searches for “for”, “switch” and the like.

【0057】以上の構成のプログラム開発支援装置の動
作を説明する。品質測定手段2は、プログラム記憶手段
1の記憶するプログラムを読み出して、プログラムに含
まれるモジュールの品質の測定を行い、メトリックスM
1(m),M2(m),M3(m)を品質記憶手段3に
出力する。
The operation of the program development support device having the above configuration will be described. The quality measuring means 2 reads the program stored in the program storage means 1, measures the quality of the modules included in the program, and measures the metrics M.
1 (m), M2 (m), M3 (m) are output to the quality storage means 3.

【0058】デバッグ順序判定手段4は、メトリックス
M1(m),M2(m),M3(m)から各モジュール
についての品質値C(m)を算出し、更に品質値C
(m)に基づいてランクR(m)を求める。
The debug order determination means 4 calculates the quality value C (m) for each module from the metrics M1 (m), M2 (m), M3 (m), and further the quality value C
The rank R (m) is calculated based on (m).

【0059】プログラム表示手段8は、デバッグ順序判
定手段4から受け取ったランクR(m)に基づいて、最
もランクR(m)の小さいモジュールから順にモニタ画
面上に表示する。その際に、制御文検索手段13は、デ
バッグ作業の対象となるモジュールのメトリックスM1
(m),M2(m),M3(m)を品質記憶手段3から
読み出して、該モジュールの品質値C(m)に最も悪影
響を与えているメトリックスを特定する。そして、制御
文検索手段13は、該特定したメトリックスに影響を与
える制御文を特定の制御文として、該制御文をモジュー
ルから検索し、該制御文の存在する部分をプログラム表
示手段8に表示させる。
Based on the rank R (m) received from the debug order determination means 4, the program display means 8 displays on the monitor screen in order from the module with the smallest rank R (m). At that time, the control statement search means 13 determines the metrics M1 of the module to be debugged.
(M), M2 (m), M3 (m) are read from the quality storage means 3 and the metric that most adversely affects the quality value C (m) of the module is specified. Then, the control statement retrieval means 13 retrieves the control statement from the module by using the control statement that affects the specified metrics as the specific control statement, and displays the portion where the control statement exists on the program display means 8. .

【0060】そして、プログラマは該モジュールについ
ての該制御文が存在する部分からデバッグ作業を開始し
て、必要があればプログラム修正手段9により修正を行
なう。以下、プログラム表示手段8は、ランクR(m)
の小さい順序でモジュールを順次表示し、プログラマは
品質の悪いモジュールから順にデバッグ作業をする。そ
して、プログラム開発支援装置は、全てのモジュールに
ついてデバッグ作業を行った後に終了する。
Then, the programmer starts the debugging work from the portion where the control statement for the module exists, and corrects it by the program correcting means 9 if necessary. Hereinafter, the program display means 8 is ranked R (m)
The modules are sequentially displayed in the ascending order of, and the programmer debugs the modules in order of poor quality. Then, the program development support apparatus ends after performing the debugging work for all the modules.

【0061】従って、制御文検索手段13がプログラム
中から特定の制御文を検索して、該制御文の存在する部
分のモジュールをプログラム表示手段8に表示させるの
で、プログラマは該制御文を中心としてデバッグ作業を
行うことができる。一部のメトリックスは、該特定の制
御文の数によって増減するので、該特定制御文の周辺に
ついて重点的にデバッグ作業をすることにより、効率的
にデバッグ作業を行うことができ、また品質の向上につ
ながる。
Therefore, the control statement searching means 13 searches the program for a specific control statement and causes the program display means 8 to display the module of the portion in which the control statement exists, so that the programmer focuses on the control statement. You can debug. Since some metrics increase / decrease depending on the number of the specific control statements, the debugging work can be efficiently performed by focusing on the debugging around the specific control statement, and the quality is improved. Leads to.

【0062】なお、本第一実施の形態においては、デバ
ッグ順序判定手段4は、式(1)を用いて品質値を算出
しているが、該式に限られるものではなく、メトリック
スと判定基準とから算出するものであればよい。
In the first embodiment, the debug order determination means 4 calculates the quality value using the equation (1), but the quality value is not limited to the equation, and the metrics and the determination criterion are used. It may be calculated from

【0063】[0063]

【発明の効果】本発明のプログラム開発支援装置は上述
のように構成してあるから、請求項1記載の発明にあっ
ては、デバッグ順序判定手段がメトリックスに基づいて
モジュールのランクを算出し、プログラム表示手段は該
ランクに基づいて順次モジュールを表示し、作業者はプ
ログラム修正手段により該モジュールの表示に基づいて
デバッグ作業を行いモジュールを修正するので、品質の
悪いモジュールから順次デバッグ作業を行うことがで
き、従って効率よくデバッグ作業をすることができるプ
ログラム開発支援装置を提供できるという効果を奏す
る。
Since the program development support apparatus of the present invention is configured as described above, in the invention of claim 1, the debug order determination means calculates the module rank based on the metrics, The program display means sequentially displays the modules based on the rank, and the operator corrects the modules by performing the debugging work based on the display of the modules by the program correction means. Therefore, there is an effect that it is possible to provide a program development support device capable of efficiently performing debugging work.

【0064】請求項2記載の発明にあっては、請求項1
記載の発明の効果に加えて、デバッグ順序判定手段は、
メトリックスの重要度である判定基準とモジュール毎の
メトリックスとによりモジュールのランクを算出するの
で、特定のメトリックスに重点を置いたデバッグ作業が
できるプログラム開発支援装置を提供できるという効果
を奏する。
In the invention according to claim 2, claim 1 is
In addition to the effects of the described invention, the debug order determination means,
Since the module rank is calculated based on the determination criterion that is the importance of the metrics and the metrics for each module, it is possible to provide a program development support device capable of performing debugging work with emphasis on specific metrics.

【0065】請求項3記載の発明にあっては、請求項2
記載の発明の効果に加えて、作業者は判定基準入力手に
より段判定基準を入力することができ、判定基準記憶手
段が該判定基準を記憶して、デバッグ順序判定手段は判
定基準記憶手段の記憶する判定基準とモジュール毎のメ
トリックスとによりモジュールのランクを算出するの
で、判定基準を作業者の操作に応じて変更できるプログ
ラム開発支援装置を提供できるという効果を奏する。
In the invention according to claim 3, claim 2
In addition to the effects of the described invention, the operator can input the stage determination standard by the determination standard input hand, the determination standard storage unit stores the determination standard, and the debug order determination unit stores the determination standard storage unit. Since the module rank is calculated based on the stored determination criterion and the metric for each module, it is possible to provide a program development support device capable of changing the determination criterion in accordance with the operator's operation.

【0066】請求項4記載の発明にあっては、修正数検
出手段はデバッグ作業におけるモジュールの修正数を検
出し、判定情報記憶手段は品質測定手段の算出するモジ
ュールのメトリックスと、修正数検出手段の検出するモ
ジュールの修正数とを対応させて蓄積記憶し、デバッグ
順序判定手段はデバッグ作業の対象となっているモジュ
ールのメトリックスに近似するメトリックスを判定情報
記憶手段から検索し、該近似するメトリックスに対応し
て記憶されている修正数を読み出し、該修正数からデバ
ッグ作業の対象となっているモジュールのランクを算出
し、プログラム表示手段は該ランクに基づいて順次モジ
ュールを表示し、作業者はプログラム修正手段により該
モジュールの表示に基づいてデバッグ作業を行いモジュ
ールを修正するので、過去にデバッグ作業を行ったモジ
ュールのメトリックスと修正数との関係を参照して、現
在デバッグ作業の対象となっているモジュールのメトリ
ックスから修正数を推定し、該修正数によってデバッグ
作業の順序を決定し、メトリックスの品質の悪く修正数
が多くなると推定されるモジュールから順次デバッグ作
業を行うことができ、従って効率よくデバッグ作業をす
ることができるプログラム開発支援装置を提供できると
いう効果を奏する。
According to the fourth aspect of the invention, the correction number detecting means detects the correction number of the module in the debugging work, and the judgment information storing means detects the module metrics calculated by the quality measuring means and the correction number detecting means. And the correction number of the module to be detected are stored in association with each other, and the debug order determination means searches the determination information storage means for a metric close to the metric of the module being debugged, The number of corrections stored correspondingly is read out, the rank of the module to be debugged is calculated from the number of corrections, the program display means sequentially displays the modules based on the rank, and the worker executes the program. The correction means performs the debugging work based on the display of the module and corrects the module. , Referring to the relationship between the metrics of the module that has been debugged in the past and the number of modifications, the number of modifications is estimated from the metrics of the module currently being debugged, and the order of debugging work is determined by the number of modifications. It is possible to provide a program development support device capable of sequentially performing debugging work from modules which are determined and whose quality of metrics is estimated to be high and the number of modifications is estimated to be large.

【0067】請求項5記載の発明にあっては、請求項4
記載の発明の効果に加えて、デバッグ終了判定手段は、
現在デバッグ作業中であるモジュールの現在の修正数
と、該モジュールのメトリックスに近似し判定情報記憶
手段に蓄積記憶されているメトリックスに対応する修正
数とを対比して、デバッグ作業の終了を判断するので、
デバッグ作業の終了時期に一定の目安を設けることがで
き、デバッグ作業を納品期日等の一定期日になるまで継
続して行うことなく該目安に従って終了することがで
き、従って効率よくデバッグ作業をすることができるプ
ログラム開発支援装置を提供できるという効果を奏す
る。
In the invention according to claim 5, claim 4
In addition to the effects of the described invention, the debug end determining means is
The end of the debugging work is determined by comparing the current number of modifications of the module currently being debugged with the number of modifications corresponding to the metrics approximate to the metrics of the module and accumulated and stored in the determination information storage means. So
A certain guideline can be set for the end time of the debugging work, and the debugging work can be ended according to the guideline without continuing until a fixed date such as a delivery date is reached. Therefore, the debugging work can be performed efficiently. It is possible to provide a program development support device capable of performing the above.

【0068】請求項6記載の発明にあっては、請求項1
乃至請求項5記載の発明の効果に加えて、制御文検索手
段がデバッグ作業の対象となっているモジュールのメト
リックスからモジュールの品質に悪影響を与えているメ
トリックスを特定し、該メトリックスに影響を与える制
御文を該モジュールから検索し、プログラム表示手段
は、該検索した制御文の位置の周辺を表示するので、モ
ジュールに悪影響を与えるメトリックスと関係する制御
文の周辺について重点的にデバッグ作業を行うことがで
きるので、効率よくデバッグ作業をすることができるプ
ログラム開発支援装置を提供できるという効果を奏す
る。
According to the invention of claim 6, claim 1
In addition to the effects of the invention described in claim 5, the control statement search means identifies a metric that adversely affects the quality of the module from the metrics of the module being debugged, and affects the metric. Since the control statement is searched from the module and the program display means displays the vicinity of the position of the searched control statement, the debugging work is focused on the vicinity of the control statement related to the metrics adversely affecting the module. Therefore, there is an effect that it is possible to provide a program development support device that enables efficient debugging work.

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

【図1】本発明のプログラム開発支援装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram showing a configuration of a program development support device of the present invention.

【図2】品質記憶手段の記憶内容の説明図である。FIG. 2 is an explanatory diagram of contents stored in a quality storage unit.

【図3】本発明の第二実施の形態のプログラム開発支援
装置の構成を示すブロック図である。
FIG. 3 is a block diagram showing the configuration of a program development support device of a second embodiment of the present invention.

【図4】判定情報記憶手段の記憶内容の説明図である。FIG. 4 is an explanatory diagram of contents stored in a determination information storage unit.

【図5】本発明の第三実施の形態のプログラム開発支援
装置の構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a program development support device of a third exemplary embodiment of the present invention.

【図6】本発明の第四実施の形態のプログラム開発支援
装置の構成を示すブロック図である。
FIG. 6 is a block diagram showing a configuration of a program development support device of a fourth exemplary embodiment of the present invention.

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

1 プログラム記憶手段 2 品質測定手段 4 デバッグ順序判定手段 5 判定基準入力手段 6 判定基準記憶手段 8 プログラム表示手段 9 プログラム修正手段 10 判定情報記憶手段 11 修正数検出手段 12 デバッグ終了判定手段 13 制御文検索手段 1 Program Storage Means 2 Quality Measuring Means 4 Debug Order Judging Means 5 Judgment Criteria Input Means 6 Judgment Criteria Storage Means 8 Program Display Means 9 Program Correction Means 10 Judgment Information Storage Means 11 Correction Number Detection Means 12 Debug End Judgment Means 13 Control Statement Search means

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 プログラムを記憶するプログラム記憶手
段と、該プログラムを構成するモジュール毎にメトリッ
クスを算出する品質測定手段とを有するプログラム開発
支援装置において、メトリックスに基づいてモジュール
のデバッグ作業の順序を示すランクを算出するデバッグ
順序判定手段と、該ランクに基づいて順次モジュールを
表示するプログラム表示手段と、作業者が該モジュール
の表示に基づいてデバッグ作業を行いモジュールを修正
するプログラム修正手段とを設けたことを特徴とするプ
ログラム開発支援装置。
1. In a program development support device having a program storage means for storing a program and a quality measurement means for calculating a metric for each module constituting the program, the order of debugging work of the module is shown based on the metric. A debug order determination means for calculating a rank, a program display means for sequentially displaying modules based on the rank, and a program correction means for an operator to perform debugging work based on the display of the modules and correct the modules are provided. A program development support device characterized in that
【請求項2】 前記デバッグ順序判定手段は、メトリッ
クスの重要度である判定基準とモジュール毎のメトリッ
クスとによりモジュールのランクを算出することを特徴
とする請求項1記載のプログラム開発支援装置。
2. The program development support apparatus according to claim 1, wherein the debug order determination means calculates a module rank based on a determination criterion that is the importance of metrics and metrics for each module.
【請求項3】 判定基準を入力する判定基準入力手段
と、該判定基準を記憶する判定基準記憶手段とを設け、
前記デバッグ順序判定手段は判定基準記憶手段の記憶す
る判定基準とモジュール毎のメトリックスとによりモジ
ュールのランクを算出することを特徴とする請求項2記
載のプログラム開発支援装置。
3. A judgment reference input means for inputting a judgment reference and a judgment reference storage means for storing the judgment reference are provided.
3. The program development support device according to claim 2, wherein the debug order determination means calculates the rank of the module based on the determination criterion stored in the determination criterion storage means and the metrics for each module.
【請求項4】 プログラムを記憶するプログラム記憶手
段と、該プログラムを構成するモジュール毎にメトリッ
クスを算出する品質測定手段とを有するプログラム開発
支援装置において、デバッグ作業におけるモジュールの
修正数を検出する修正数検出手段と、品質測定手段が算
出するモジュールのメトリックスと、修正数検出手段が
検出するモジュールの修正数とを対応させて蓄積記憶す
る判定情報記憶手段と、デバッグ作業の対象となってい
るモジュールのメトリックスに近似するメトリックスを
判定情報記憶手段から検索し、該近似するメトリックス
に対応して記憶されている修正数を読み出し、該修正数
からデバッグ作業の対象となっているモジュールのラン
クを算出するデバッグ順序判定手段と、該ランクに基づ
いて順次モジュールを表示するプログラム表示手段と、
作業者が該モジュールの表示に基づいてデバッグ作業を
行いモジュールを修正するプログラム修正手段とを設け
たことを特徴とするプログラム開発支援装置。
4. A program development support apparatus having a program storage means for storing a program and a quality measuring means for calculating a metric for each module constituting the program. The detection means, the metric of the module calculated by the quality measuring means, the determination information storage means for storing the correction number of the module detected by the correction number detection means in association with each other, and the determination information storage means for the module to be debugged. Debug that retrieves a metric close to the metric from the determination information storage means, reads the correction number stored corresponding to the approximate metric, and calculates the rank of the module that is the target of the debugging work from the correction number. Order determination means and a sequential module based on the rank Program display means for displaying
A program development support device, comprising: a program modifying means for a worker to perform debugging work based on the display of the module to modify the module.
【請求項5】 現在デバッグ作業中であるモジュールの
現在の修正数と、該モジュールのメトリックスに近似し
判定情報記憶手段に蓄積記憶されているメトリックスに
対応する修正数とを対比して、デバッグ作業の終了を判
断するデバッグ終了判定手段を有することを特徴とする
請求項4記載のプログラム開発支援装置。
5. The debugging work is performed by comparing the current number of modifications of the module currently being debugged with the number of modifications corresponding to the metrics approximate to the metrics of the module and accumulated and stored in the judgment information storage means. 5. The program development support apparatus according to claim 4, further comprising a debug end judging means for judging the end of the program.
【請求項6】 デバッグ作業の対象となっているモジュ
ールのメトリックスからモジュールの品質に悪影響を与
えているメトリックスを特定し、該メトリックスに影響
を与える制御文を該モジュールから検索する制御文検索
手段を有し、プログラム表示手段は、該検索した制御文
の位置の周辺を表示することを特徴とする請求項1乃至
請求項5記載のプログラム開発支援装置。
6. A control statement retrieving means for identifying a metric that adversely affects the quality of the module from the metric of the module being debugged, and retrieving the control statement affecting the metric from the module. 6. The program development support device according to claim 1, wherein the program display means displays the periphery of the position of the retrieved control statement.
JP8015747A 1996-01-31 1996-01-31 Program development supporting device Pending JPH09212387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8015747A JPH09212387A (en) 1996-01-31 1996-01-31 Program development supporting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8015747A JPH09212387A (en) 1996-01-31 1996-01-31 Program development supporting device

Publications (1)

Publication Number Publication Date
JPH09212387A true JPH09212387A (en) 1997-08-15

Family

ID=11897367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8015747A Pending JPH09212387A (en) 1996-01-31 1996-01-31 Program development supporting device

Country Status (1)

Country Link
JP (1) JPH09212387A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007323299A (en) * 2006-05-31 2007-12-13 Sharp Corp Apparatus and program for determining review execution order, recording medium with the program stored, and method for determining review execution order
WO2008020468A1 (en) * 2006-08-14 2008-02-21 Fujitsu Limited Program analyzing method and device
JP2013092950A (en) * 2011-10-27 2013-05-16 Internatl Business Mach Corp <Ibm> Debugging method, debugging apparatus and debug-supporting gui for program
US8527966B2 (en) 2009-09-17 2013-09-03 International Business Machines Corporation Source code inspection method and system
JP2017204090A (en) * 2016-05-10 2017-11-16 株式会社日立ソリューションズ Analysis device for static analysis result of source code, and analysis method
JP2019160008A (en) * 2018-03-15 2019-09-19 三菱電機株式会社 Program analyzer and program analysis method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007323299A (en) * 2006-05-31 2007-12-13 Sharp Corp Apparatus and program for determining review execution order, recording medium with the program stored, and method for determining review execution order
WO2008020468A1 (en) * 2006-08-14 2008-02-21 Fujitsu Limited Program analyzing method and device
JP4823315B2 (en) * 2006-08-14 2011-11-24 富士通株式会社 Program analysis method and apparatus
US8527966B2 (en) 2009-09-17 2013-09-03 International Business Machines Corporation Source code inspection method and system
US8645925B2 (en) 2009-09-17 2014-02-04 International Business Machines Corporation Source code inspection
JP2013092950A (en) * 2011-10-27 2013-05-16 Internatl Business Mach Corp <Ibm> Debugging method, debugging apparatus and debug-supporting gui for program
US9740592B2 (en) 2011-10-27 2017-08-22 International Business Machines Corporation Supporting debugging of program and graphical user interface for supporting debugging
JP2017204090A (en) * 2016-05-10 2017-11-16 株式会社日立ソリューションズ Analysis device for static analysis result of source code, and analysis method
JP2019160008A (en) * 2018-03-15 2019-09-19 三菱電機株式会社 Program analyzer and program analysis method

Similar Documents

Publication Publication Date Title
CN109376166B (en) Script conversion method, script conversion device, computer equipment and storage medium
US10621066B2 (en) Automatic repair of scripts
US20090292956A1 (en) Trend based test failure prioritization
CN104572999B (en) Heterogeneous data-based error data detection method and device
KR100919222B1 (en) The method and apparatus for evaluating performance of test case
JPH09212387A (en) Program development supporting device
US20080306752A1 (en) Method and system for automatic testing in a business scenario environment
JP2003029970A (en) Program quality management supporting device, program quality management supporting method, computer readable recording medium having program for making computer perform program quality management supporting method recorded thereon and program for making computer perform program quality management supporting method
JP3109572B2 (en) Failure recovery device, failure recovery method, and storage medium storing failure recovery program
US7500145B2 (en) Anomaly-driven software switch to capture event responses and automate recovery
JP4630489B2 (en) Log comparison debugging support apparatus, method and program
CN111538673A (en) Processing method, device, equipment and storage medium based on test case
JPH0744526A (en) Diagnostic device of defect cause of electronic device based on event
JP3003605B2 (en) Word correction device and word correction method
JPH11175144A (en) Maintenance supporting device for plant equipment
JP2003208333A (en) Trace information searching device and method therefor
JPH08297569A (en) Source program correction supporting device
US20230259447A1 (en) Defect Analysis Apparatus, Program, and Defect Analysis Method
JP2013206063A (en) Plant data reproduction device and plant data reproduction method
JP2002073157A (en) Fault diagnosing device
JPH02171998A (en) Plant accident analyzing device
JPH08179966A (en) Program test device
JP2798015B2 (en) Program error analysis support system
JPH0635857A (en) Abnormal end recovery system
JPH0581388A (en) Graphic information display function insepcting system