JPH06175882A - Program debugging method - Google Patents

Program debugging method

Info

Publication number
JPH06175882A
JPH06175882A JP4326800A JP32680092A JPH06175882A JP H06175882 A JPH06175882 A JP H06175882A JP 4326800 A JP4326800 A JP 4326800A JP 32680092 A JP32680092 A JP 32680092A JP H06175882 A JPH06175882 A JP H06175882A
Authority
JP
Japan
Prior art keywords
module
program
debugger
execution
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4326800A
Other languages
Japanese (ja)
Inventor
Yoshimitsu Takiguchi
好光 滝口
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP4326800A priority Critical patent/JPH06175882A/en
Publication of JPH06175882A publication Critical patent/JPH06175882A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To easily perform program debugging by confirming the execution order or middle result of a module while grasping the entire configuration of a program. CONSTITUTION:With module identification information as augument, an instruction to call a program debugger is added to the respective modules of the debugging object program. The program debugger displays the module relation diagram of the debugging object program (22), possesses the module identification information of the executing module (23), confirms it, decides the position of the executing module (24) and displays that the module is under executing on the module relation diagram (25). When the content display or content change of any specified area is instructed, the command is analyzed (26) and processing is performed according to the instructed contents (27).

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. In particular, the present invention relates to a method for debugging a program that is configured by connecting a plurality of modules, and relates to a method for debugging while dynamically monitoring a running program.

【0002】[0002]

【従来の技術】従来から、プログラムをデバッグする方
式としてクロスシミュレ−ション方式がよく知られてい
る。一般に、クロスシミュレ−ション方式は、プログラ
ムの命令を一個ずつ取り出し、命令の仕様に従って動作
を模擬するものである。この方式では、クロスシミュレ
−ションを停止したり、特定領域の内容を表示して確認
したり、またその内容を変更したりする場合には、それ
を予めコマンドで定義しておかなければならなく、また
命令を模擬するごとに、コマンド内容を確認して、コマ
ンドに従って処理を行わなければならなかった。特開昭
62−274436号公報では、クロスシミュレ−ショ
ンの一方式として、マイコンの動作と入出力動作を合わ
せて模擬する方式が述べられている。従来技術では、プ
ログラムを構成するモジュールの関連図を表示し、実行
中のプログラムモジュールを動的に表示するプログラム
デバッグ方法は存在しなかった。
2. Description of the Related Art Conventionally, a cross simulation method is well known as a method for debugging a program. Generally, the cross-simulation method takes out the instructions of a program one by one and simulates the operation according to the instruction specifications. In this method, when cross-simulation is stopped, the contents of a specific area are displayed and checked, or if the contents are changed, it must be defined in advance by a command. Also, the command contents had to be confirmed and the process performed according to the command each time the command was simulated. Japanese Unexamined Patent Publication No. 62-274436 describes a method of simulating the operation of a microcomputer and the input / output operation as one method of cross simulation. In the prior art, there has not been a program debugging method that displays a relational diagram of modules that make up a program and dynamically displays a program module that is being executed.

【0003】[0003]

【発明が解決しようとする課題】本発明の目的は、プロ
グラム構成を表示し、プログラムの実行順序を監視しな
がらプログラムをデバッグする方法を提供することであ
る。プログラムのデバッグでは、プログラムの実行順序
が期待通りであることを確認することは、プログラムの
動作を検証する有益な手段の一つである。従来技術で
は、プログラムの実行順序をプログラム動作模擬中にモ
ジュ−ル関連図上で明示的に知ることができなかった。
従って、実行順序は、シミュレ−ションの終了後、出力
結果を解析して推測することになり、複雑な動作の場
合、出力結果から実行順序を正しく知るには多大の手間
を必要としていた。本発明は、これを解消し、デバッグ
効率を高めることを目的としている。本発明のもう一つ
の目的は、プログラムの構成を表すモジュ−ル関連図で
プログラムの実行を監視しながら、プログラムの途中結
果を確認できる手段を提供することである。プログラム
の途中結果が期待値と合っているかを確認することはプ
ログラムの動作を検証する有効な手段である。単にコマ
ンドでモジュ−ル名を予め指定して、そのモジュ−ルの
箇所でプログラムの実行を停止させ途中結果を確認する
手段はよく知られているが、プログラムの実行がどこま
で進んでいるかが不明の段階では、適切なモジュ−ルを
指定することは困難である。本発明では、プログラムの
実行位置をモジュ−ル関連図上で明示的に知ることがで
きるので、適切なモジュ−ルで停止し途中結果を確認で
きる。
SUMMARY OF THE INVENTION An object of the present invention is to provide a method of displaying a program structure and debugging the program while monitoring the execution order of the program. In debugging a program, confirming that the execution order of the program is as expected is one of the useful means for verifying the operation of the program. In the prior art, it was not possible to explicitly know the execution sequence of the program on the module relation diagram during the simulation of the program operation.
Therefore, the execution order is to be inferred by analyzing the output result after the simulation is completed, and in the case of a complicated operation, it takes a lot of time and labor to correctly know the execution order from the output result. An object of the present invention is to eliminate this and improve debugging efficiency. Another object of the present invention is to provide a means for confirming an intermediate result of a program while monitoring the execution of the program with a module relation diagram showing the configuration of the program. Confirming whether the intermediate result of the program matches the expected value is an effective means of verifying the operation of the program. It is well known to simply specify a module name in advance with a command and stop the execution of the program at that module to check the results on the way, but it is unclear how far the program execution progresses. At the stage of, it is difficult to specify an appropriate module. In the present invention, since the execution position of the program can be explicitly known on the module relation diagram, the program can be stopped at an appropriate module and the intermediate result can be confirmed.

【0004】[0004]

【課題を解決するための手段】一般に、大きなプログラ
ムは、複数のモジュ−ルが連結されて構成されている。
そしてプログラムを構成する各モジュ−ルは、通常、親
モジュールと子モジュールの関係を有していて、親モジ
ュ−ルは、必要に応じて子モジュ−ルを呼び出すように
なっている。一般に、プログラムはこれらの親子関係が
複数個存在する階層構造となっている。本発明の手段の
一つは、プログラムを、上記親子関係を表すモジュ−ル
関連図として表示することである。さらに、各モジュ−
ルの最初と最後に、モジュ−ル識別情報を引数としてプ
ログラムデバッガを呼び出す命令を組み込むことであ
る。デバッグ対象のプログラムは、それを構成する各モ
ジュ−ルに制御が移る毎にモジュ−ル固有の処理を実行
する前と実行した後にプログラムデバッガに制御を渡
す。モジュールから制御を渡されたプログラムデバッガ
は、モジュールからモジュ−ル識別情報を受け取り、上
記モジュ−ル関連図に実行中である旨を表示する。モジ
ュ−ル関連図は、全階層を表示する必要はなく任意の階
層まで表示しても良い。その場合、モジュ−ル識別情報
が、表示されている階層のものより深い場合は、表示さ
れている親モジュ−ルに遡って実行中である旨を表示す
る。各モジュ−ルから制御を渡される毎に、プログラム
デバッガは、指定に従って、実行を停止したり特定領域
の内容を表示又は内容を変更して、呼出し元のモジュ−
ルに制御を渡すことが出来る。本手段により、プログラ
ムの実行をモジュ−ル固有の処理を実行する前と実行後
に停止できたり、特定領域の内容の表示、変更が可能と
なる。
Generally, a large program is constructed by connecting a plurality of modules.
Each module constituting the program usually has a relationship between a parent module and a child module, and the parent module calls the child module as needed. Generally, a program has a hierarchical structure in which a plurality of these parent-child relationships exist. One of the means of the present invention is to display the program as a module relation diagram showing the parent-child relationship. In addition, each module
At the beginning and the end of the module, an instruction for calling the program debugger with the module identification information as an argument is incorporated. The program to be debugged transfers control to the program debugger before and after execution of module-specific processing each time control is transferred to each of the modules that compose it. The program debugger, to which control is passed from the module, receives the module identification information from the module and displays that it is being executed on the module relation diagram. In the module relation diagram, it is not necessary to display all layers, and any layer may be displayed. In that case, if the module identification information is deeper than that of the displayed hierarchy, it is displayed that the execution is performed by going back to the displayed parent module. Each time the control is passed from each module, the program debugger stops the execution or displays or changes the contents of the specific area according to the specification, and the module of the calling source
Control can be passed to Le. By this means, the execution of the program can be stopped before and after the module-specific processing is executed, and the contents of the specific area can be displayed and changed.

【0005】[0005]

【作用】本発明は次のような作用を有している。プログ
ラムを構成するモジュール間の親子関係をあらわすモジ
ュ−ル関連図を表示することは、プログラム全体の構成
を理解するのに役立つ。各モジュ−ルにプログラムデバ
ッガを呼び出す命令を組み込むことは、プログラム実行
時に、プログラムデバッガへ制御を移すことを可能とす
る。モジュ−ル関連図中に現在どのモジュールが実行中
であるかを表示することは、実行順序を単に羅列するの
に比べ、全体構成を見ながら動きを動的に知ることがで
き、プログラム実行順序の検証を容易にする。モジュ−
ル関連図を任意の階層まで表示できるようにすること
は、プログラムの構成をマクロ的なものから詳細な構成
まで段階的に理解するのに有益である。またモジュ−ル
の実行状況を親モジュ−ルに遡って表示することも、段
階的に検証するのに有効である。プログラムの途中結果
を確認する位置をモジュ−ル関連図で指定できること
は、指定を容易にするとともにどの位置で確認すべきか
の判断の手助けとなる。プログラムデバッガの中に、特
定領域の内容を表示及び変更できる機能をもたせること
は、プログラムの途中結果の確認、変更を可能としプロ
グラムデバッグを容易にする。
The present invention has the following actions. Displaying the module relationship diagram showing the parent-child relationship between the modules that make up the program helps to understand the overall structure of the program. Incorporating an instruction to call the program debugger in each module makes it possible to transfer control to the program debugger when the program is executed. Displaying which module is currently being executed in the module relation diagram allows the movement to be dynamically known while looking at the overall configuration, rather than simply listing the execution order. Facilitate verification of. Module
It is useful to understand the structure of a program step by step from a macro structure to a detailed structure so that the relational diagram can be displayed in any hierarchy. Displaying the execution status of the module back to the parent module is also effective for stepwise verification. Being able to specify the position to confirm the result in the middle of the program in the module relation diagram facilitates the specification and helps determine which position should be confirmed. Providing the program debugger with the function of displaying and changing the contents of a specific area makes it possible to confirm and change the intermediate results of the program and facilitate program debugging.

【0006】[0006]

【実施例】本発明の実施例を図1〜図4を用いて説明す
る。図1は本発明の基本構成図である。図1中におい
て、11はワ−クステ−ションなどに搭載されているオ
ペレ−ティングシステム(以下OSという)でマルチタ
スク制御機能を持つものである。12はプログラムデバ
ッガである。13はデバッグ対象プログラムである。1
2及び13は、OS11のマルチタスク制御機能によ
り、独立したタスクとして動作する。14はデバッグ対
象プログラムの各モジュ−ルがプログラムデバッガに制
御を移すことを表す。15はプログラムデバッガが各モ
ジュ−ルに制御を戻すことを表す。
EXAMPLE An example of the present invention will be described with reference to FIGS. FIG. 1 is a basic configuration diagram of the present invention. In FIG. 1, reference numeral 11 denotes an operating system (hereinafter referred to as OS) mounted on a workstation or the like, which has a multitask control function. 12 is a program debugger. Reference numeral 13 is a debug target program. 1
2 and 13 operate as independent tasks by the multitask control function of the OS 11. Reference numeral 14 represents that each module of the program to be debugged transfers control to the program debugger. 15 indicates that the program debugger returns control to each module.

【0007】図2はプログラムデバッガのブロック図で
ある。図2中において、21はプログラムデバッガ全体
を制御する全体制御部である。22はモジュ−ル関連図
を表示するモジュール関連図表示部で、デバッッグ対象
プログラムのソ−スプログラム又はオブジェクトプログ
ラムを入力し、例えば図3に示すようなモジュ−ル関連
図を表示する。23はデバッグ対象プログラムの各モジ
ュ−ルが渡すモジュ−ル識別情報を取得するモジュール
識別情報取得部であり、24はモジュ−ル識別情報を認
識してモジュ−ル関連図の位置を求める実行モジュール
位置決定部である。25は実行モジュール位置決定部2
4の決定結果に従い、モジュ−ル関連図に実行中である
旨を表示する実行モジュール表示部である。26はプロ
グラムの途中結果を確認するための指示コマンドを解析
するコマンド解析部で、27はコマンドに従って特定領
域の内容を表示したり変更したりするコマンド実行部で
ある。
FIG. 2 is a block diagram of the program debugger. In FIG. 2, reference numeral 21 is an overall control unit for controlling the entire program debugger. Reference numeral 22 denotes a module relation diagram display section for displaying a module relation diagram, which inputs a source program or an object program of a debug target program, and displays a module relation diagram as shown in FIG. 3, for example. Reference numeral 23 is a module identification information acquisition unit for acquiring module identification information passed by each module of the program to be debugged, and 24 is an execution module for recognizing the module identification information and determining the position of the module relation diagram. It is a position determination unit. 25 is the execution module position determination unit 2
4 is an execution module display unit that displays that the module is being executed in accordance with the determination result of No. 4. Reference numeral 26 is a command analysis unit for analyzing an instruction command for confirming an intermediate result of the program, and 27 is a command execution unit for displaying or changing the contents of the specific area according to the command.

【0008】図3は、モジュ−ル関連図の一例で、左側
のモジュ−ルが右側のモジュ−ルを呼び出すことを意味
する。31のモジュ−ルAは、32、33、34として
示したモジュールB,C,Dを呼び出し、32のモジュ
−ルBは、35、36で示したモジュールE,Fを呼び
出し、また34のモジュールDは、37で示したモジュ
ールGを呼び出す。図4は、デバッグ対象プログラムを
構成する各モジュ−ルの構成をPAD(Problem Analys
is Diagram)図で表したものである。41がモジュ−ル
固有の処理を実行する前にプログラムデバッガを呼び出
すプログラムデバッガ呼出し部で、42がモジュ−ル固
有の処理であり、43がモジュ−ル固有処理終了後にプ
ログラムデバッガを呼び出すプログラムデバッガ呼び出
し部である。プログラムデバッガ呼び出し部41と43
は、モジュ−ル識別情報およびモジュール固有の処理の
実行前または実行後の呼び出しであるかを識別する情報
を引数としてプログラムデバッガに制御を渡す。プログ
ラムデバッガを呼び出す命令は、モジュ−ルをコンパイ
ルする時にデバッグモ−ドを指定することにより自動的
に付加される。
FIG. 3 is an example of a module relation diagram, which means that the left module calls the right module. A module A of 31 calls modules B, C and D shown as 32, 33 and 34, a module B of 32 calls modules E and F shown at 35 and 36, and a module of 34 D calls the module G shown at 37. Fig. 4 shows the structure of each module that constitutes the debug target program by PAD (Problem Analys
is Diagram) is a diagram. Reference numeral 41 is a program debugger calling section for calling the program debugger before executing the processing unique to the module, 42 is processing unique to the module, and 43 is a program debugger calling for calling the program debugger after completion of the processing unique to the module. It is a department. Program debugger calling units 41 and 43
Passes the control to the program debugger with the module identification information and the information for identifying whether it is a call before or after the execution of the processing peculiar to the module as an argument. The instruction to call the program debugger is automatically added by designating the debug mode when compiling the module.

【0009】図1〜図4を用いて動作の手順を説明す
る。まず、デバッグ対象モジュ−ルをデバッグモ−ドで
コンパイルし、各モジュ−ルに図4で示すプログラムデ
バッガを呼び出す命令プログラムデバッガ呼び出し部4
1、43を組み込む。次に、オペレータのコマンド入力
などによる指示があった場合、図1のOS11がプログ
ラムデバッガ12に起動をかける。プログラムデバッガ
12は、処理モ−ドに従って図2に示す22、23、2
6のいずれかの処理を実行するが、最初の起動ではモジ
ュール関連図表示部22を実行するように指示され、図
3に示すようなモジュ−ル関連図を画面に表示し、待ち
状態になる。次に図1のOS11は、オペレータのコマ
ンド入力指示によりデバッグ対象プログラム13に起動
をかける。デバッグ対象プログラム13は、順次、プロ
グラムの内容に従って実行されるが、各モジュ−ルに制
御が移る毎に、図4のプログラムデバッガ呼び出し部4
1がプログラムデバッガに制御を移しモジュ−ル識別情
報をプログラムデバッガに渡す。プログラムデバッガ
は、図2の全体制御部21が、実行モジュ−ル表示モ−
ドであることを判別しモジュール識別情報取得部23に
制御を渡す。モジュール識別情報取得部23は実行モジ
ュ−ル識別情報を取得し、実行モジュール位置決定部2
4はその情報に従い画面に表示されているモジュ−ル関
連図上の位置を求める。実行モジュール表示部25が実
行モジュール位置決定部24で求めた位置に実行中であ
る旨を表示する。
The operation procedure will be described with reference to FIGS. First, an instruction program debugger calling unit 4 that compiles the debug target module in the debug mode and calls the program debugger shown in FIG. 4 for each module.
1 and 43 are incorporated. Next, when the operator inputs a command or the like, the OS 11 of FIG. 1 activates the program debugger 12. The program debugger 12 uses the processing modes 22, 22, 23 shown in FIG.
6 is executed, but at the first activation, an instruction to execute the module relation diagram display unit 22 is given, a module relation diagram as shown in FIG. 3 is displayed on the screen, and a standby state is set. . Next, the OS 11 of FIG. 1 activates the debug target program 13 according to a command input instruction of the operator. The debug target program 13 is sequentially executed according to the contents of the program, but each time the control is transferred to each module, the program debugger calling unit 4 of FIG.
1 transfers control to the program debugger and passes the module identification information to the program debugger. In the program debugger, the overall control unit 21 shown in FIG.
The module identification information acquisition unit 23 is determined to be a control mode and control is passed to the module identification information acquisition unit 23. The module identification information acquisition unit 23 acquires the execution module identification information, and the execution module position determination unit 2
4 obtains the position on the module relation diagram displayed on the screen according to the information. The execution module display unit 25 displays that the execution is being performed at the position obtained by the execution module position determination unit 24.

【0010】なお、上記モジュ−ル関連図は、指定によ
り任意の深さ(階層)まで表示することができるように
なっていてもよい。その場合、モジュ−ル識別情報で指
示される特定のモジュ−ルがモジュ−ル関連図に表示さ
れていない場合は、表示されているそのモジュールの親
モジュ−ルまで順次遡って実行中である旨を表示するよ
うになっている。これによって現在、プログラムのどの
部分を実行しているか(どのモジュールを実行している
か、又はどのモジュールの子モジュールを実行している
か)がわかる。また、実行中である旨の表示は、モジュ
ール名の表示の色を変えたり、輝度を変えて表示する方
法などがある。
The module relation diagram may be designed so that it can be displayed up to an arbitrary depth (hierarchy). In that case, if the specific module indicated by the module identification information is not displayed in the module relational diagram, it is being executed by sequentially tracing back to the parent module of the displayed module. The message is displayed. This makes it possible to know which part of the program is currently being executed (which module is being executed or which child module of which module is being executed). In addition, as the display indicating that it is being executed, there is a method of changing the display color of the module name or changing the brightness.

【0011】全体制御部21は、当該モジュ−ル実行時
に、特定領域の内容表示や内容変更のコマンドが登録さ
れているかを判定し、登録されている場合には、コマン
ド解析部26及びコマンド実行部27によって、コマン
ドの内容に従った処理を行う。特定領域の内容変更や内
容表示のコマンドは、モジュ−ル関連図を表示した時に
登録してもよいし、デバッグ対象プログラムの実行時で
も、プログラムデバッガが受け付けて登録することがで
きる。特定モジュ−ルを、モジュ−ル関連図上で指定し
たり、コマンドで指示したりすることにより、プログラ
ムの実行をその特定モジュ−ルが呼び出したプログラム
デバッガの中で停止させ、特定領域の内容を表示した
り、特定領域の内容を変更するもできる。その後はプロ
グラムの実行の停止を解除して実行を継続させる。モジ
ュ−ル固有処理終了後にプログラムデバッガに制御が移
った場合も、上記と同様な処理を行うが、実行中の旨の
表示は、当該モジュ−ルのものを消去し親モジュ−ルに
対して行う。尚、プログラムの動作を確認した後は、各
モジュ−ルをプログラムデバッガに制御を渡す命令を組
み込まない通常モ−ドでリコンパイルしてもよいし、又
は何も実行せずにリタ−ンするダミ−のプログラムデバ
ッガを用意して本発明のプログラムデバッガとリプレ−
スしてもよい。
At the time of executing the module, the overall control unit 21 determines whether or not a command for displaying or changing the content of the specific area is registered. If the command is registered, the command analysis unit 26 and the command execution are executed. The unit 27 performs processing according to the content of the command. The command for changing the content of the specific area or the command for displaying the content may be registered when the module-related diagram is displayed, or can be received and registered by the program debugger even when the program to be debugged is executed. By specifying a specific module on the module relation diagram or instructing with a command, the execution of the program is stopped in the program debugger called by the specific module, and the contents of the specific area You can display or change the contents of a specific area. After that, the stop of the execution of the program is released and the execution is continued. When control is transferred to the program debugger after the module-specific processing is completed, the same processing as above is performed, but the message indicating that it is being executed is erased from the module and the parent module is displayed. To do. After confirming the operation of the program, each module may be recompiled in a normal mode that does not incorporate an instruction for passing control to the program debugger, or may be returned without executing anything. Prepare a dummy program debugger and replay the program debugger of the present invention.
You may

【0012】[0012]

【発明の効果】モジュ−ル関連図に実行中のモジュ−ル
を表示することにより実行順序を監視できることは、モ
ジュ−ルが現在どこまで実行されているかを明示的に把
握することを可能とするとともに、モジュ−ルの実行順
序に関する誤りを容易に検出することを可能とする。ま
た、モジュ−ル関連図を任意の深さで表示できること
は、段階的な実行順序の確認を可能とする。さらに、プ
ログラム実行の途中結果を確認する位置をモジュ−ル関
連図上で指示することは、テキスト形式のコマンドで指
示するのに比べ指示の誤りをなくし、また、モジュール
関連図により全体の構成を見ながら指示できるので適切
な確認位置の選択を容易にする。以上により、プログラ
ム動作の検証が容易になり、デバッグ効率を向上する効
果がある。
The execution order can be monitored by displaying the modules being executed in the module relation diagram, which makes it possible to explicitly grasp how far the modules are currently executed. At the same time, it is possible to easily detect an error regarding the execution order of the modules. In addition, the fact that the module relation diagram can be displayed at an arbitrary depth enables the stepwise confirmation of the execution order. In addition, instructing the position to check the results during program execution on the module relation diagram eliminates the error of the instruction compared to instructing with the text format command, and the module relation diagram can be used to confirm the entire configuration. Since it is possible to give instructions while watching, it is easy to select an appropriate confirmation position. As described above, there is an effect that the verification of the program operation is facilitated and the debugging efficiency is improved.

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

【図1】本発明の基本構成図である。FIG. 1 is a basic configuration diagram of the present invention.

【図2】本発明のプログラムデバッガのブロック図であ
る。
FIG. 2 is a block diagram of a program debugger of the present invention.

【図3】モジュ−ル関連図の一例を示す図である。FIG. 3 is a diagram showing an example of a module relation diagram.

【図4】モジュ−ルにプログラムデバッガ呼び出し部を
追加したPAD図である。
FIG. 4 is a PAD diagram in which a program debugger calling unit is added to a module.

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

11 オペレーティングシステム 12 プログラムデバッガ 13 デバッグ対象プログラム 21 全体制御部 22 モジュ−ル関連図表示部 23 モジュール識別情報取得部 24 実行モジュール位置決定部 25 実行モジュ−ル表示部 26 コマンド解析部 27 コマンド実行部 31〜37 モジュール 41、43 プログラムデバッガ呼び出し部 42 モジュール固有処理部 11 Operating System 12 Program Debugger 13 Debugging Target Program 21 Overall Control Section 22 Module Related Diagram Display Section 23 Module Identification Information Acquisition Section 24 Execution Module Position Determining Section 25 Execution Module Display Section 26 Command Analysis Section 27 Command Execution Section 31 ~ 37 modules 41, 43 Program debugger calling section 42 Module specific processing section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のモジュ−ルが連結されて構成され
ているプログラムをデバッグするプログラムデバッグ方
法において、上記各モジュール中にモジュール識別情報
を引数としてプログラムデバッガを呼び出す命令を組み
込んでおき、プログラム実行中の各モジュールによって
上記プログラムデバッガを呼出し、上記プログラムデバ
ッガは上記実行中の各モジュールから渡されるモジュー
ル識別情報を認識し、上記プログラムを複数のモジュー
ルの親子関係を表すモジュール関連図として任意の深さ
まで表示し、上記モジュール関連図に上記プログラム中
のどの部分が実行中であるかを表示することを特徴とす
るプログラムデバッグ方法。
1. In a program debugging method for debugging a program configured by connecting a plurality of modules, an instruction for calling a program debugger using module identification information as an argument is incorporated in each module, and the program is executed. The above-mentioned program debugger is called by each module in the inside, and the above-mentioned program debugger recognizes the module identification information passed from each above-mentioned running module and makes the above-mentioned program as a module relation diagram showing a parent-child relationship of a plurality of modules to an arbitrary depth A program debugging method comprising displaying and displaying which part of the program is being executed in the module relation diagram.
JP4326800A 1992-12-07 1992-12-07 Program debugging method Pending JPH06175882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4326800A JPH06175882A (en) 1992-12-07 1992-12-07 Program debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4326800A JPH06175882A (en) 1992-12-07 1992-12-07 Program debugging method

Publications (1)

Publication Number Publication Date
JPH06175882A true JPH06175882A (en) 1994-06-24

Family

ID=18191851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4326800A Pending JPH06175882A (en) 1992-12-07 1992-12-07 Program debugging method

Country Status (1)

Country Link
JP (1) JPH06175882A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8997060B2 (en) 2013-07-31 2015-03-31 International Business Machines Corporation Parallel program analysis and branch prediction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8997060B2 (en) 2013-07-31 2015-03-31 International Business Machines Corporation Parallel program analysis and branch prediction
US9454375B2 (en) 2013-07-31 2016-09-27 International Business Machines Corporation Parallel program analysis and branch prediction

Similar Documents

Publication Publication Date Title
US6275955B1 (en) Diagnostic software for facilitating flowchart programming
JPH06175882A (en) Program debugging method
JPH02275539A (en) Debugging system
JPH1049206A (en) Sequence control generating device
CN112579443B (en) Automatic testing method and platform of intelligent testing robot
JPH05298204A (en) Test circut for input/output processor
CN115881291B (en) Operation and maintenance training system and method for medical equipment
JPS63157244A (en) Debugging system for test program of peripheral device
JPS6033640A (en) Data monitoring system
JPH05313941A (en) Computer program debugging method
JP3033723B2 (en) Simulated test method and program recording medium for stored exchange program controlled electronic exchange
JPH03294934A (en) Debugger for high level program lenguage
JP2570119B2 (en) Software simulator
JPS63201736A (en) Programming device for programmable controller
JPS63247842A (en) Evaluation system for test program
JPS63257839A (en) Debug system for test program
JP2533374B2 (en) Control program creation method
JPH0233178B2 (en)
JP2000148449A (en) Analyzer
JPH0520051A (en) Software conversion operation controller
JPH05265801A (en) Program monitor device
JPH01261735A (en) Debugging device for distributed processing program
JPH01152505A (en) Program debugging system for pc
JPH04307636A (en) Program test system
JPH0468446A (en) Debugging supporting device