JPH04266133A - Program debugging method - Google Patents

Program debugging method

Info

Publication number
JPH04266133A
JPH04266133A JP3047532A JP4753291A JPH04266133A JP H04266133 A JPH04266133 A JP H04266133A JP 3047532 A JP3047532 A JP 3047532A JP 4753291 A JP4753291 A JP 4753291A JP H04266133 A JPH04266133 A JP H04266133A
Authority
JP
Japan
Prior art keywords
program
intermediate code
source program
processing
parser
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
JP3047532A
Other languages
Japanese (ja)
Inventor
Shinobu Hasebe
忍 長谷部
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3047532A priority Critical patent/JPH04266133A/en
Publication of JPH04266133A publication Critical patent/JPH04266133A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To grasp the corresponding position of a source program when an error occurs by setting a row number to specify an instruction of the source program that is referred to for conversion of the source program into a processing program. CONSTITUTION:A parser 1 debugs a program in an intermediate code interpreter system and generates an intermediate code from a source program SP. Then the parser 1 adds the row number of the SP that is referred to for generation of the intermediate code for production of the intermediate code information MC. A virtual machine 2 carries out only the intermediate code of the information MC and specifies this information MC when an error occurs. Then the machine 2 reads a row number and informs a host device 11 of the row number. Thus the program can be smoothly debugged.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ソースプログラムを処
理装置が認識できる処理用プログラムに変換し、処理装
置による処理用プログラムの実行結果に基づいて、ソー
スプログラムのデバッグを実行するプログラムのデバッ
グ方法に関する。
[Industrial Application Field] The present invention is a program debugging method that converts a source program into a processing program that can be recognized by a processing device, and debugs the source program based on the execution result of the processing program by the processing device. Regarding.

【0002】0002

【従来の技術】計算機を制御するプログラムは、制御目
的により各種の高級言語(プログラム言語)を使い分け
る。高級言語の例としては、C言語, COBOL言語
, FORTRAN言語, BASIC言語等を挙げる
ことができる。
2. Description of the Related Art Programs for controlling computers use various high-level languages (programming languages) depending on the control purpose. Examples of high-level languages include C language, COBOL language, FORTRAN language, and BASIC language.

【0003】これらの高級言語で記述されたプログラム
は、プログラムの内容に基づいた処理を実行する処理装
置が認識できる処理用プログラムに変換する必要がある
。この変換の方式には、大別してインタプリタ方式とコ
ンパイラ方式がある。
[0003] Programs written in these high-level languages need to be converted into processing programs that can be recognized by processing devices that execute processing based on the contents of the programs. This conversion method can be broadly classified into an interpreter method and a compiler method.

【0004】インタプリタ方式には、更に2つの方式を
挙げることができ、一つはソースプログラムを構成する
各種命令(プログラム行)を、処理装置による処理実行
の進行に合わせて1行づつコード(処理用プログラム)
への変換を実行する単純な方式である。この場合、処理
装置は処理を進める過程で、必ず実コードへの変換を実
行しなければならないため、処理速度が遅くなってしま
う。
[0004] There are two further types of interpreter methods. One method is to convert various instructions (program lines) that make up a source program into code (processing lines) line by line as processing progresses by a processing device. program)
This is a simple method to perform the conversion to . In this case, the processing device must always perform conversion into actual code during the process of processing, which slows down the processing speed.

【0005】もう一つ方式は、ソースプログラムの全体
を、一旦所定の記号で表現される中間コード(処理用プ
ログラム)に変換し、処理装置が処理実行の進行に合わ
せて中間コードを1行づつ読取り、処理装置自身で実コ
ードへの変換を行なう中間コード方式インタプリタであ
る。この場合、例えばループが形成されたような場合、
同一の実コードを何度も実行することになるが、このよ
うな場合、実コードへの変換を何度も行なわなくてもよ
いように、中間コードが生成されるため、処理速度の向
上を図ることができる。
Another method is to first convert the entire source program into intermediate code (processing program) expressed by predetermined symbols, and then the processing device converts the intermediate code line by line as processing progresses. This is an intermediate code interpreter that reads and converts to real code by the processing device itself. In this case, for example, if a loop is formed,
The same actual code will be executed many times, but in such cases, intermediate code is generated so that it does not have to be converted to the actual code many times, improving processing speed. can be achieved.

【0006】コンパイラ方式は、ソースプログラムの全
体を処理装置が認識できるコード(処理用プログラム)
に変換し、その後、処理装置が実コードを認識して処理
を実行する方法で、処理装置は、単に実コードに対応し
た処理を実行すれば良いため、高速度の処理を実現する
ことができる。
[0006] The compiler method is a code (processing program) that allows a processing device to recognize the entire source program.
In this method, the processing device recognizes the real code and executes the process.The processing device only needs to execute the process corresponding to the real code, so high-speed processing can be achieved. .

【0007】図2に、インタプリタ方式の概念図を示す
。図は、一般的な中間コード方式インタプリタの概念を
示したものである。図において、パーサ1はソースプロ
グラムSPを処理用プログラム(この場合、中間コード
群MC)に変換する変換機構である。仮想マシン(処理
装置)2は、中間コード群MCを認識して実コードに変
換し、この実コードの処理実行を行なうものである。
FIG. 2 shows a conceptual diagram of the interpreter method. The figure shows the concept of a general intermediate code interpreter. In the figure, a parser 1 is a conversion mechanism that converts a source program SP into a processing program (in this case, an intermediate code group MC). The virtual machine (processing device) 2 recognizes the intermediate code group MC, converts it into real code, and processes the real code.

【0008】さて、複数行の命令から構成されるソース
プログラムSPが生成されると、パーサ1において中間
コード群MCに変換される。中間コード群MCは、ソー
スプログラムSPの各命令に対応する複数の中間コード
列から構成される。
Now, when a source program SP consisting of a plurality of lines of instructions is generated, the parser 1 converts it into an intermediate code group MC. The intermediate code group MC is composed of a plurality of intermediate code strings corresponding to each instruction of the source program SP.

【0009】ここで、図3を参照しながらはソースプロ
グラムSPと中間コード群MCの関係を説明する。図3
は、パーサ1の動作説明図である。図に示すように、ソ
ースプログラムが第1行“x=x+1 ”,第2行“y
=y/x ”の2行の命令から構成されているものとす
る。パーサ1は、これら2行の命令に対応する中間コー
ドC1〜C6を生成することになる。
Here, the relationship between the source program SP and the intermediate code group MC will be explained with reference to FIG. Figure 3
is an explanatory diagram of the operation of the parser 1. As shown in the figure, the source program is "x=x+1" on the first line and "y" on the second line.
=y/x''. The parser 1 generates intermediate codes C1 to C6 corresponding to these two lines of instructions.

【0010】中間コードC1は、変数xの値をレジスタ
に取込む内容を示す中間コード“GetValue x
”である。 中間コードC2は、レジスタに1を加算する内容を示す
中間コード“Add 1 ”である。中間コードC3は
、レジスタの内容を変数xとして設定する内容を示す中
間コード“SetValue x”である。
[0010] The intermediate code C1 is an intermediate code "GetValue
”. The intermediate code C2 is an intermediate code “Add 1” that indicates the content of adding 1 to a register. The intermediate code C3 is an intermediate code “SetValue x” that indicates the content of setting the content of the register as a variable x. It is.

【0011】中間コードC4は、変数yの値をレジスタ
に取込む内容を示す中間コード“GetValue y
”である。 中間コードC5は、レジスタの内容を変数xの内容で序
算する内容を示す中間コード“Div x ”である。 中間コードC6は、レジスタの内容を変数yとして設定
する内容を示す中間コード“SetValue y”で
ある。
[0011] The intermediate code C4 is an intermediate code "GetValue
”. The intermediate code C5 is an intermediate code “Div x” that indicates the contents of the register and the contents of the variable x. The intermediate code C6 indicates the contents of setting the register contents as the variable y. The intermediate code is "SetValue y".

【0012】再び図2に戻り、パーサ1で生成された中
間コード(中間コードC1〜C6)は、仮想マシン2に
順次認識され、認識される都度、実コードに変換されて
処理が実行され、結果EFが出力される。
Returning to FIG. 2 again, the intermediate codes (intermediate codes C1 to C6) generated by the parser 1 are sequentially recognized by the virtual machine 2, and each time they are recognized, they are converted into real codes and processed. The result EF is output.

【0013】[0013]

【発明が解決しようとする課題】ところで、仮想マシン
2による処理にエラーが発生したような場合、例えば中
間コードC5の実行において、ゼロによる除算を実行し
たような場合、結果が無限となるため、エラーとして取
扱う。
By the way, if an error occurs in the processing by the virtual machine 2, for example, if division by zero is executed in the execution of intermediate code C5, the result will be infinite. Treated as an error.

【0014】このような場合、エラーの発生した中間コ
ードC5がソースプログラムSPの何れの命令に基づく
ものかを把握し、ソースプログラムSP上の何れの位置
でエラーが発生したのかを上位装置11に通知すること
になる。
In such a case, it is determined which instruction of the source program SP the intermediate code C5 in which the error occurred is based on, and the host device 11 is informed as to which position in the source program SP the error occurred. We will notify you.

【0015】従来、中間コードC5に対応するソースプ
ログラムSP上の命令(位置)を把握するには、パーサ
1により、再びソースプログラムSPに対応する中間コ
ード群MCを生成する処理を実行してパーサ1が読取る
ソースプログラムSPの行と、生成される中間コード群
MCを監視し、中間コードC5が生成される時にパーサ
1が読取ったソースプログラムSP上の位置を特定する
Conventionally, in order to grasp the instruction (position) on the source program SP corresponding to the intermediate code C5, the parser 1 executes the process of generating an intermediate code group MC corresponding to the source program SP again. The line of the source program SP read by the parser 1 and the generated intermediate code group MC are monitored, and the position on the source program SP read by the parser 1 when the intermediate code C5 is generated is specified.

【0016】この場合、パーサ1は、ソースプログラム
SPの第2行を読取った結果、中間コードC5を生成す
るため、エラーの発生したソースプログラムSPの命令
は第2行であることを把握することができる。
In this case, since the parser 1 generates intermediate code C5 as a result of reading the second line of the source program SP, it must understand that the instruction of the source program SP in which the error occurred is the second line. Can be done.

【0017】パーサ1は把握結果を上位装置11に通知
し、上位装置11は表示装置12にソースプログラムS
Pの第2行においてエラーが発生した旨を表示する。
The parser 1 notifies the grasping result to the host device 11, and the host device 11 displays the source program S on the display device 12.
The second line of P indicates that an error has occurred.

【0018】以上説明したように、従来ソースプログラ
ムSP上のエラーの発生した位置を把握するために、パ
ーサ1による変換処理を実行しなければならない。この
ため、迅速なエラーの通知を実現できないといった問題
が生じていた。
As explained above, in order to ascertain the location where an error has occurred in the conventional source program SP, the parser 1 must perform a conversion process. For this reason, a problem has arisen in that prompt error notification cannot be realized.

【0019】本発明は以上の点に着目してなされたもの
で、エラーが発生した場合、速やかにソースプログラム
上の何れの命令にエラーが発生したのかを把握し、迅速
にエラーの通知を行なうことのできるを提供するプログ
ラムのデバッグ方法を提供することを目的とする。
The present invention has been made with attention to the above points, and when an error occurs, it is possible to immediately determine which instruction in the source program has caused the error, and promptly notify the error. The purpose is to provide a method for debugging programs that can be used.

【0020】[0020]

【課題を解決するための手段】本発明のプログラムのデ
バッグ方法は、複数行の命令から構成されるソースプロ
グラムを、当該ソースプログラムに対応した処理を実行
する処理装置が認識できる複数のコードから構成される
処理用プログラムに変換し、前記処理装置による前記処
理用プログラムの実行の結果を参照して前記ソースプロ
グラムのデバッグを行なう場合において、前記処理用プ
ログラムには、当該処理用プログラムを構成する前記各
コード毎に前記変換の対象である前記各命令の前記ソー
スプログラム上の位置を特定する行番号が設定され、前
記処理用プログラムの実行の結果、エラーが生じた場合
、当該エラーの発生した前記何れかのコードに対応する
前記行番号を前記処理用プログラムから獲得して、当該
エラーに係る前記命令の前記ソースプログラム上の位置
を特定する。
[Means for Solving the Problems] A program debugging method of the present invention consists of a source program consisting of multiple lines of instructions and a plurality of codes that can be recognized by a processing device that executes processing corresponding to the source program. When debugging the source program by referring to the result of execution of the processing program by the processing device, the processing program includes the processing program that constitutes the processing program. A line number is set for each code that specifies the position of each instruction to be converted in the source program, and if an error occurs as a result of execution of the processing program, the line number where the error occurred is set. The line number corresponding to any code is acquired from the processing program, and the position of the instruction related to the error in the source program is specified.

【0021】[0021]

【作用】以上の方法は、ソースプログラムを処理用プロ
グラムに変換する際、処理用プログラムに、変換の際に
参照したソースプログラムの命令を特定する行番号を設
定する。処理用プログラムの実行の結果、エラーが発生
した場合、処理用プログラムに設定された行番号を用い
て、エラーに対応するソースプログラム上の位置を把握
する。
[Operation] In the above method, when converting a source program into a processing program, a line number is set in the processing program to specify the instruction of the source program referred to at the time of conversion. When an error occurs as a result of execution of the processing program, the position in the source program corresponding to the error is determined using the line number set in the processing program.

【0022】[0022]

【実施例】本発明のプログラムのデバッグ方法は、先に
図2において説明した中間コード方式インタプリタにお
いて実施される。従って、図2に示した構成を例に、本
発明の説明を行なう。図1は、本発明に係るパーサ1の
動作説明図である。図に示すように、ソースプログラム
が第1行“x=x+1 ”,第2行“y=y/x ”の
2行の命令から構成されているものとする。パーサ1は
、これら2行の命令に対応する中間コード情報C11〜
C16を生成することになる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The program debugging method of the present invention is implemented in the intermediate code type interpreter described above with reference to FIG. Therefore, the present invention will be explained using the configuration shown in FIG. 2 as an example. FIG. 1 is an explanatory diagram of the operation of the parser 1 according to the present invention. As shown in the figure, it is assumed that the source program consists of two lines of instructions: the first line "x=x+1" and the second line "y=y/x". Parser 1 generates intermediate code information C11 to C11 corresponding to these two lines of instructions.
This will generate C16.

【0023】中間コード情報C11〜C16は、それぞ
れ例えば3バイトのデータから構成され、前半2バイト
は、ソースプログラムを変換することにより得られた中
間コードから構成され、後半1バイトは、中間コードに
変換する際に参照されたソースプログラム上の位置、即
ちソースプログラムの行番号から構成される。
[0023] Each of the intermediate code information C11 to C16 is composed of, for example, 3 bytes of data, the first 2 bytes are composed of the intermediate code obtained by converting the source program, and the latter 1 byte is composed of the intermediate code. It consists of the position on the source program that was referenced during conversion, that is, the line number of the source program.

【0024】中間コード情報C11〜13は、ソースプ
ログラムSPの第1行の内容を変換した結果得られた中
間コードであるため、それぞれ、行番号“1”が格納さ
れる。同様に、中間コード情報C14〜C16は、ソー
スプログラムSPの第2行の内容を変換した結果得られ
た中間コードであるため、それぞれ、行番号“2”が格
納される。
Since the intermediate code information C11 to C13 are intermediate codes obtained as a result of converting the contents of the first line of the source program SP, the line number "1" is stored in each of them. Similarly, since the intermediate code information C14 to C16 are intermediate codes obtained as a result of converting the contents of the second line of the source program SP, the line number "2" is stored in each of the intermediate code information C14 to C16.

【0025】ここで、図4を参照しながら、図1に示し
た中間コードMCを生成する過程を説明する。図4は、
本発明に係る中間コード群生成のフローチャートである
。パーサ1は、ソースプログラム1の変換を実行する場
合、まず初めに変換するソースプログラムの位置(行番
号)を管理する行番号レジスタのリセット(内容“1”
の設定)を行なう(ステップS1)。
The process of generating the intermediate code MC shown in FIG. 1 will now be described with reference to FIG. 4. Figure 4 shows
7 is a flowchart of intermediate code group generation according to the present invention. When converting source program 1, parser 1 first resets the line number register (content “1”) that manages the position (line number) of the source program to be converted.
(step S1).

【0026】その後、パーサ1は、ソースプログラムS
Pの1行(第1行)を読み込む(ステップS2)。パー
サ1は、読み込んだ内容が変換すべきソースプログラム
SPの内容であるか否か、即ちソースプログラムSP最
終行以降であることを示す所定の内容(例えば EOF
:END OF FILE 符号)であるか否かを判断
する(ステップS3)。
After that, the parser 1 executes the source program S
One line (first line) of P is read (step S2). The parser 1 determines whether the read content is the content of the source program SP to be converted, that is, predetermined content (for example, EOF) indicating that the content is after the last line of the source program SP.
:END OF FILE code) (step S3).

【0027】ステップS3の結果がNOの場合、パーサ
1は行番号レジスタの内容をインクリメントし(ステッ
プS4)、例えば中間コード“GetbValue x
 ”,“Add 1 ”,“SetValue x”を
生成する(ステップS5)。
If the result of step S3 is NO, the parser 1 increments the contents of the line number register (step S4), for example, the intermediate code "GetbValue x
”, “Add 1 ”, and “SetValue x” are generated (step S5).

【0028】中間コードを生成すると、パーサ1は生成
した中間コードと、この中間コードを生成する際に参照
したソースプログラムSPの行番号とにより中間コード
情報C11〜C13を生成し、所定の格納領域に格納す
る。また、ステップS3の結果がYES、即ち、ソース
プログラムSPの全ての行について変換が完了した場合
、パーサ1は処理を終了する。
After generating the intermediate code, the parser 1 generates intermediate code information C11 to C13 based on the generated intermediate code and the line number of the source program SP referred to when generating this intermediate code, and stores it in a predetermined storage area. Store in. Further, if the result of step S3 is YES, that is, if the conversion of all lines of the source program SP is completed, the parser 1 ends the process.

【0029】仮想マシン2は、生成された中間コード群
MCの中間コードのみ、即ち2バイト読み込んで実行し
た後、1バイト読み込みを飛ばしたのち、2バイト読み
込んで実行するといった手順で、処理を実行することに
なる。これにより中間コード群MCの行番号は、仮想マ
シン2に認識されることなく中間コードのみ読み込みが
なされる。
[0029] The virtual machine 2 executes the process by reading only the intermediate code of the generated intermediate code group MC, that is, after reading and executing 2 bytes, skipping reading 1 byte, and then reading and executing 2 bytes. I will do it. As a result, the line number of the intermediate code group MC is not recognized by the virtual machine 2, and only the intermediate code is read.

【0030】さて、仮想マシン2による処理実行の結果
エラーが発生した場合について、図5を参照しながら説
明する。図5は、本発明に係るエラー処理のフローチャ
ートである。仮想マシン2の処理実行の結果、エラーが
発生すると、仮想マシン2は中間コード群MCの中から
、エラーの発生した中間コード情報、例えば中間コード
情報C15を特定する(ステップS11)。
Now, a case where an error occurs as a result of processing executed by the virtual machine 2 will be described with reference to FIG. FIG. 5 is a flowchart of error processing according to the present invention. When an error occurs as a result of the processing executed by the virtual machine 2, the virtual machine 2 identifies intermediate code information in which the error has occurred, for example, intermediate code information C15, from among the intermediate code group MC (step S11).

【0031】仮想マシン2は、中間コード情報C15を
特定すると、中間コード情報C15の3バイト目の内容
、即ち行番号を読取り(ステップS12)、読取った行
番号を上位装置11に通知し(ステップS13)、仮想
マシン2はエラーの発生に対する処理を終了する。
When the virtual machine 2 specifies the intermediate code information C15, it reads the contents of the third byte of the intermediate code information C15, that is, the line number (step S12), and notifies the host device 11 of the read line number (step S12). S13), the virtual machine 2 ends the process for the occurrence of the error.

【0032】以後、上位装置11では、従来同様に通知
された内容を表示装置12に表示し、エラーの発生した
ソースプログラムSP上の位置を表示する。
Thereafter, the host device 11 displays the notified contents on the display device 12 in the same manner as before, and displays the position in the source program SP where the error has occurred.

【0033】以上説明のように、仮想マシン2による処
理実行の結果、エラーが発生し、このエラーの発生に関
係するソースプログラムSP上の位置を中間コード群M
Cから容易に把握することができる。
As explained above, as a result of processing execution by the virtual machine 2, an error occurs, and the position in the source program SP related to the occurrence of this error is stored in the intermediate code group M.
It can be easily understood from C.

【0034】本発明は、以上の実施例に限定されない。 中間コード群の中間コード情報は3バイト構成でなくと
も、中間コードと行番号を分離できる分離コード等を特
別に設定したような場合、データ長は適宜設定すること
ができる。また実施例では、中間コード方式インタプリ
タを例に説明を行なったが、コンパイラにおいても、コ
ンパイル結果にソースプログラム上の位置(行番号)を
設定することにより本発明を実施することができる。そ
して行番号は、処理用プログラムとは別に、処理用プロ
グラムのコードに対応させて項目が用意されたテーブル
等に設定しても構わない。
The present invention is not limited to the above embodiments. Even if the intermediate code information of the intermediate code group does not have a 3-byte configuration, the data length can be set as appropriate if a separation code or the like that can separate the intermediate code and line number is specially set. Further, in the embodiment, the explanation has been given using an intermediate code type interpreter as an example, but the present invention can also be implemented in a compiler by setting the position (line number) on the source program in the compilation result. The line numbers may be set in a table or the like in which items are prepared in correspondence with the codes of the processing program, separately from the processing program.

【0035】[0035]

【発明の効果】以上説明したように、本発明によれば、
エラーの発生したソースプログラム上の位置を把握する
ためにソースプログラムを処理用プログラムに変換する
必要が無いため、迅速にエラーの発生したソースプログ
ラム上の位置を通知することができ、円滑なデバッグ処
理を実現することができる。
[Effects of the Invention] As explained above, according to the present invention,
Since there is no need to convert the source program to a processing program in order to determine the location in the source program where an error has occurred, the location in the source program where the error has occurred can be quickly notified, resulting in smooth debugging. can be realized.

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

【図1】本発明に係るパーサの動作説明図である。FIG. 1 is an explanatory diagram of the operation of a parser according to the present invention.

【図2】インタプリタ方式の概念図である。FIG. 2 is a conceptual diagram of an interpreter method.

【図3】従来のパーサの動作説明図である。FIG. 3 is an explanatory diagram of the operation of a conventional parser.

【図4】本発明に係る中間コード群生成のフローチャー
トである。
FIG. 4 is a flowchart of intermediate code group generation according to the present invention.

【図5】本発明に係るエラー処理のフローチャートであ
る。
FIG. 5 is a flowchart of error processing according to the present invention.

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

1  パーサ 2  仮想マシン 11  上位装置 12  表示装置 1 Parser 2 Virtual machine 11 Upper device 12 Display device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  複数行の命令から構成されるソースプ
ログラムを、当該ソースプログラムに対応した処理を実
行する処理装置が認識できる複数のコードから構成され
る処理用プログラムに変換し、前記処理装置による前記
処理用プログラムの実行の結果を参照して前記ソースプ
ログラムのデバッグを行なう場合において、前記処理用
プログラムには、当該処理用プログラムを構成する前記
各コード毎に前記変換の対象である前記各命令の前記ソ
ースプログラム上の位置を特定する行番号が設定され、
前記処理用プログラムの実行の結果、エラーが生じた場
合、当該エラーの発生した前記何れかのコードに対応す
る前記行番号を前記処理用プログラムから獲得して、当
該エラーに係る前記命令の前記ソースプログラム上の位
置を特定することを特徴とするプログラムのデバッグ方
法。
1. A source program consisting of multiple lines of instructions is converted into a processing program consisting of a plurality of codes that can be recognized by a processing device that executes processing corresponding to the source program, and the processing program is executed by the processing device. In the case where the source program is debugged by referring to the result of execution of the processing program, the processing program includes each of the instructions to be converted for each code constituting the processing program. A line number identifying a position on the source program is set,
If an error occurs as a result of the execution of the processing program, the line number corresponding to any of the codes in which the error occurred is obtained from the processing program, and the source of the instruction related to the error is obtained. A program debugging method characterized by identifying a position on the program.
JP3047532A 1991-02-20 1991-02-20 Program debugging method Pending JPH04266133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3047532A JPH04266133A (en) 1991-02-20 1991-02-20 Program debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3047532A JPH04266133A (en) 1991-02-20 1991-02-20 Program debugging method

Publications (1)

Publication Number Publication Date
JPH04266133A true JPH04266133A (en) 1992-09-22

Family

ID=12777739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3047532A Pending JPH04266133A (en) 1991-02-20 1991-02-20 Program debugging method

Country Status (1)

Country Link
JP (1) JPH04266133A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245184A (en) * 2008-03-31 2009-10-22 Ntt Data Corp Program diagnosing device, program diagnosing method and program therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245184A (en) * 2008-03-31 2009-10-22 Ntt Data Corp Program diagnosing device, program diagnosing method and program therefor

Similar Documents

Publication Publication Date Title
US4730315A (en) Diagrammatic method of testing program
US5394347A (en) Method and apparatus for generating tests for structures expressed as extended finite state machines
EP0406602B1 (en) Method and apparatus for debugging parallel programs by serialization
US5701487A (en) Method and apparatus for displaying locations of errors detected inside software macro calls
US8336032B2 (en) Implementing enhanced template debug
CN111580806A (en) Collaborative robot graphical programming system
US5410701A (en) System and method for analyzing programmed equations
EP0520708A2 (en) Method and apparatus for converting high level form abstract syntaxes into an intermediate form
JPH06110703A (en) Method of compilation
JPH04266133A (en) Program debugging method
JPH04205423A (en) Program creation device
Hanson Event associations in SNOBOL4 for program debugging
Essel et al. Goosy, the new gsi acquisition and analysis system for experiment data
US6948159B2 (en) Automatic compilation of electronic telecommunications system message generation code
US20040098240A1 (en) State machine modelling
JPS5922140A (en) Interactive compilation method
Ohl hepawk—A language for scanning high energy physics events
JP3066643B2 (en) Interpreter processing device
JP3910831B2 (en) Program development support device, recording medium, and program
JP2002312167A (en) Program for causing computer to calculate variable value, compilation program, variable value determination method, and program generation method
de Ruiter Optimizing sglr parser performance
JPH04268928A (en) Emulation device and semiconductor device
JP2811804B2 (en) Variable output range specification method
Balzer A language-independent programmer's interface
Pagan Formal semantics of a SNOBOL4 subset