JP2004318914A - Method and device for displaying program and recording medium stored with processing program - Google Patents

Method and device for displaying program and recording medium stored with processing program Download PDF

Info

Publication number
JP2004318914A
JP2004318914A JP2004225058A JP2004225058A JP2004318914A JP 2004318914 A JP2004318914 A JP 2004318914A JP 2004225058 A JP2004225058 A JP 2004225058A JP 2004225058 A JP2004225058 A JP 2004225058A JP 2004318914 A JP2004318914 A JP 2004318914A
Authority
JP
Japan
Prior art keywords
information
program
debug
display
displaying
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
JP2004225058A
Other languages
Japanese (ja)
Inventor
Toshihiro Tsurugasaki
俊博 鶴ケ崎
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 JP2004225058A priority Critical patent/JP2004318914A/en
Publication of JP2004318914A publication Critical patent/JP2004318914A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a debugging support device for feature-displaying debugging information related to the operation state of a plurality of processes for constituting a multi-process program related to the operation of the program. <P>SOLUTION: The change of the operation state of a plurality of debugging processes 101 for constituting a debugging program 100 is monitored in a debugger execution processing part 121, and when the operation state of the debugging processes 101 is changed, a process operation information output part 122 outputs process operation information 131. A debugger information display part 140 inputs 142 the process operation information and displays a process relating graph 151 for visually expressing the parentage and sibling relation of the debugging processes 101 and feature-displaying a process box and process detailed information 152 for displaying the operation state of the debugging processes 101 in details on the same screen. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明はプログラムの動作状態を、プログラムの動作と連動しながら視覚的な観点で表示する表示技術に関するものである。 The present invention relates to a display technique for displaying the operation state of a program from a visual viewpoint in conjunction with the operation of the program.

従来からデバッグを支援するために様々な方法が考えられている。例えば、特許文献1においては、並列プログラムのデバッグを対話的に効率良く行うためのデバッグ方法が開示されている。また、特許文献2においては、並列プログラムを可視化するためのツールである並列プログラム可視化方法が開示されている。しかし、これらの従来技術では、並列プログラムを構成するプロセスの親子、及び兄弟関係を視覚的に特徴表示する機能は有していない。また、プロセスの生成、開始、再開、停止、及び終了というプロセスの動作状態を特徴表示する機能は有していない。尚、特許文献3においては、複数のプロセスで構成させるプログラムのデバッグ方法を示しているが、プログラムの動作と連動しながら、プログラムを構成するプロセスのデバッグを行える機能は有していない。 Conventionally, various methods have been considered to support debugging. For example, Patent Literature 1 discloses a debugging method for interactively and efficiently debugging a parallel program. Patent Document 2 discloses a parallel program visualization method that is a tool for visualizing a parallel program. However, these conventional technologies do not have a function of visually displaying the parent-child and sibling relationships of the processes constituting the parallel program. In addition, it does not have a function for characteristically displaying the operation state of a process such as generation, start, restart, stop, and end of a process. Note that Patent Document 3 discloses a method of debugging a program configured by a plurality of processes, but does not have a function of debugging a process configuring the program in conjunction with the operation of the program.

特開平5−233323号公報JP-A-5-233323 特開平8−185340号公報JP-A-8-185340 特開平11−161514号公報JP-A-11-161514

上記従来技術では、並列プログラムを構成するプロセスの動作状態の変化に応じたデバッグ方法が配慮されておらず、例えば、並列プログラムを構成するプロセスが増大した場合、プロセスの生成、開始、再開、停止、及び終了のようなプロセスの動作に着目してプログラムのデバッグを行うことが困難という問題があった。また、並列プログラムの動作と連動したデバッグ方法が配慮されておらず、例えば、動作プロセスと、終了プロセスとの親子、及び兄弟関係も重要なデバッグ作業を行うための情報(以下、デバッグ情報と呼ぶ)となるが、そのデバッグ情報に着目したデバッグが困難という問題があった。   In the above prior art, no consideration is given to a debugging method according to a change in the operation state of a process constituting a parallel program. For example, when the number of processes constituting a parallel program increases, generation, start, restart, and stop of the process are performed. There is a problem that it is difficult to debug a program by focusing on the operation of the process such as termination and termination. Further, a debugging method linked to the operation of the parallel program is not taken into consideration. For example, the parent-child and sibling relations between the operation process and the termination process are information for performing important debugging work (hereinafter, referred to as debug information). ), But there is a problem that it is difficult to debug by focusing on the debug information.

本発明の目的は、プログラムの動作状態を効率的に把握することにある。   An object of the present invention is to efficiently grasp the operation state of a program.

上記目的は、マルチプロセスプログラムを構成する複数のプロセスの動作状態に関連付けたデバッグ情報を、プログラムの動作と連動しながら特徴表示する点、また動作プロセスと終了プロセスとの関係を視覚的に区別表示する点に着目することにより達成される。このような点に着目することにより、複数のプロセスで構成されるマルチプロセスプログラムのデバッグを効果的に可能とするデバッグ支援方法及び装置を提供できる。   The purpose is to display debug information related to the operation status of multiple processes that compose the multi-process program in a characteristic manner in conjunction with the operation of the program, and to visually distinguish the relationship between the operation process and the termination process. It is achieved by focusing on the points that By paying attention to such points, it is possible to provide a debugging support method and apparatus capable of effectively debugging a multi-process program including a plurality of processes.

より具体的には、プログラム(マルチプロセスプログラム、並列プログラムを含む)を実行するマルチプロセッサの実行状態を表示するための表示方法であって、前記プログラムを構成する複数のプロセスをそれぞれ所定の図形(例えば、矩形)で表示(以下、プロセスボックスとも呼ぶ)し、前記プロセス間の関係を示すよう前記図形間に所定の表示(例えば、線による連結表示等の視覚的に表現する表示)を行い、前記プロセスの動作状態に連動して前記図形を特徴表示(例えば、プロセスボックスの枠線を、動作プロセスは実線、終了プロセスは破線)することで、プロセスの動作状態を視覚的に表現したもの(以下、プロセス関連グラフとも呼ぶ)により達成する。ここで、プロセス間の関係とは、プロセスの親子又は兄弟関係であっても良い。尚、プロセスの動作状態とは、例えばプロセ
スの生成・開始・再開・停止・終了等を示す。また、プロセス関連グラフは、プログラムの動作に連動しながら、プロセスボックスの特徴表示状態を変化させるものであっても良い。さらに、プロセスの詳細な動作状態(プログラム名称やソースコード位置の情報)を簡略化して知ることが出来るようにするために、プロセス関連グラフと、プロセスの詳細な動作情報(以下、プロセス詳細情報と呼ぶ)を同一画面に表示し、プロセス関連グラフとプロセス詳細情報は、どちらか片方の情報から、あるプロセスの強調表示操作を行った場合でも、プロセス関連グラフと、プロセス詳細情報の両情報のプロセス情報を連動して強調表示するようにしたものであっても良い。
More specifically, the present invention is a display method for displaying an execution state of a multiprocessor that executes a program (including a multi-process program and a parallel program). For example, a rectangle is displayed (hereinafter, also referred to as a process box), and a predetermined display (for example, a visual display such as a connection display by a line) is performed between the figures so as to show the relationship between the processes, A graphic representation of the operation state of the process (for example, a frame of a process box, a solid line for an operation process, and a broken line for an end process) are displayed in a characteristic manner in association with the operation state of the process (for example, Hereinafter, this is also referred to as a process-related graph). Here, the relationship between processes may be a parent-child or sibling relationship of the processes. The operation state of a process indicates, for example, generation, start, restart, stop, end, etc. of the process. Further, the process-related graph may change the characteristic display state of the process box while interlocking with the operation of the program. Furthermore, in order to be able to know the detailed operation state of the process (information on the program name and the source code position) in a simplified manner, a process-related graph and detailed operation information of the process (hereinafter referred to as process detailed information and Is displayed on the same screen, and the process-related graph and the process detailed information are displayed in the process-related graph and the process detailed information. The information may be highlighted in conjunction with the information.

尚、上記目的を達成するためには、上述した機能を実現するプログラム若しくはプログラムを格納した記録媒体であっても良い。   In order to achieve the above object, a program for realizing the above-described functions or a recording medium storing the program may be used.

本発明によれば、各プログラムの実行状態を可視化することが可能となる。   According to the present invention, it is possible to visualize the execution state of each program.

以下、本発明の一実施形態を図面に基づいて詳細に説明する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、マルチプロセスプログラムのデバッグ方法の構成図である。デバッグ作業を行うプログラム(以下、デバッグプログラムと呼ぶ)100、デバッガシステム部110、及び表示装置150で構成される。デバッグプログラム100は、プログラムを構成する複数のプロセス群(以下、プロセスをデバッグプロセスと呼ぶ)101で構成される。デバッガシステム部110は、デバッグプログラム100の実行を制御、及び実行を監視するデバッガエンジン部120と、デバッグプログラム100の動作状態を、表示装置150に表示するデバッガ情報表示部140で構成させる。デバッガエンジン部120は、デバッグプログラム100を、デバッグプロセス101単位に実行を制御、及び実行を監視するデバッグ実行処理部121と、デバッガエンジン部120より、デバッガ情報表示部140へ、デバッグプロセス101の動作状態を伝達するために使用するプロセス動作情報131を、プロセス動作情報ファイル130に出力するプロセス動作情報出力部122で構成される。デバッグプロセス101の動作状態に変化が生じた場合、デバッグ実行処理部121が検知し、プロセス動作情報出力部122に制御を移す。プロセス動作情報出力部122は、プロセス動作情報ファイル130に、プロセス動作情報131を出力する。プロセス動作情報131の詳細は図2で説明する。プロセス動作情報監視部141は、デバッグプロセス101の動作に連動しながら、表示装置150の表示状態を変化させるために、プロセス動作情報ファイル130へのプロセス動作情報131出力の有無を調べる。プロセス動作情報131が出力されている場合、プロセス動作情報監視部141は、プロセス動作情報取得部142へ制御を移し、プロセス動作情報取得部142では、プロセス動作情報ファイル130から、プロセス動作情報131を入力し、プロセス情報テーブル組立部143へ制御を移す。プロセス情報テーブル組立部143は、入力したプロセス動作情報131から、デバッグプロセス101を管理するプロセス情報テーブルを作成及び更新し、プロセス情報表示部144に制御を移す。プロセス情報テーブルの詳細は図3で説明する。プロセス情報表示部144は、プロセス関連グラフ表示部145と、プロセス詳細情報表示部146で構成され、プロセス情報テーブル組立部143で作成、及び更新されたプロセス情報テーブルを参照し、プロセス関連グラフ151とプロセス詳細情報152を、表示装置150に表示する。   FIG. 1 is a configuration diagram of a method for debugging a multi-process program. The program includes a program (hereinafter, referred to as a debug program) 100 for performing a debugging operation, a debugger system unit 110, and a display device 150. The debug program 100 includes a plurality of process groups (hereinafter, a process is referred to as a debug process) 101 constituting the program. The debugger system unit 110 includes a debugger engine unit 120 that controls the execution of the debug program 100 and monitors the execution, and a debugger information display unit 140 that displays the operation state of the debug program 100 on the display device 150. The debugger engine unit 120 controls the execution of the debug program 100 in units of the debug process 101 and monitors the execution of the debug program 101. The debugger engine unit 120 sends the debug process information to the debugger information display unit 140. The process operation information output unit 122 outputs the process operation information 131 used for transmitting the status to the process operation information file 130. When a change occurs in the operation state of the debug process 101, the debug execution processing unit 121 detects the change and transfers control to the process operation information output unit 122. The process operation information output unit 122 outputs the process operation information 131 to the process operation information file 130. Details of the process operation information 131 will be described with reference to FIG. The process operation information monitoring unit 141 checks whether the process operation information 131 is output to the process operation information file 130 in order to change the display state of the display device 150 while interlocking with the operation of the debug process 101. When the process operation information 131 is output, the process operation information monitoring unit 141 transfers control to the process operation information acquisition unit 142, and the process operation information acquisition unit 142 outputs the process operation information 131 from the process operation information file 130. Then, the control is transferred to the process information table assembling unit 143. The process information table assembling unit 143 creates and updates a process information table for managing the debug process 101 from the input process operation information 131, and transfers control to the process information display unit 144. Details of the process information table will be described with reference to FIG. The process information display unit 144 includes a process-related graph display unit 145 and a process detailed information display unit 146. The process information display unit 144 refers to the process information table created and updated by the process information table assembling unit 143. The process detailed information 152 is displayed on the display device 150.

図2は、プロセス動作情報131のデータ構成図である。プロセス動作情報131は、プロセス状態情報201と、プロセス詳細情報202で構成される。プロセス状態情報201は、デバッグプロセス101の動作状態情報を管理し、プロセス詳細情報202は、デバッガエンジン部120が、デバッグプロセス101を、内部的に管理するために付加する番号(以下、ノード番号と呼ぶ)や、プロセス番号、プログラム名称、及び停止位置のソースファイル情報など、プロセス状態情報201に応じた情報を管理する。プロセス動作情報210は、デバッグプロセス101が新たに生成された場合のプロセス動作情報131の出力例である。ノード番号(0)212、プロセス番号(10)213のデバッグプロセスから、ノード番号(1)214、プロセス番号(20)215のデバッグプロセスが生成されたことを意味する。プロセス動作情報220は、ファイルの動作が開始された場合のプロセス動作情報131の出力例である。ノード番号(1)222、プロセス番号(20)223のデバッグプロセスで、プログラム名称(Prog2_0)224の実行が開始されたことを意味する。プロセス動作情報230は、ブレークポイントなどの要因により、動作を停止した場合のプロセス動作情報131の出力例である。ノード番号(2)232、プロセス番号(21)233のデバッグプロセスは、ソースファイル(function.c)234の行番号(146行目)235で停止したことを意味する。プロセス動作情報240は、デバッグプロセスの動作を再開した場合のプロセス動作情報131の出力例であり、ノード番号(0)242、プロセス番号(10)243のデバッグプロセスは、動作を再開したことを意味する。プロセス動作情報250は、デバッグプロセスの動作が終了した場合のプロセス動作情報131の出力例であり、ノード番号(3)252、プロセス番号(30)253のデバッグプロセスは、動作が終了したことを意味する。   FIG. 2 is a data configuration diagram of the process operation information 131. The process operation information 131 includes process state information 201 and detailed process information 202. The process state information 201 manages the operation state information of the debug process 101, and the process detailed information 202 stores the number (hereinafter, the node number and the number added by the debugger engine unit 120 for managing the debug process 101 internally. ), The process number, the program name, and the source file information of the stop position. The process operation information 210 is an output example of the process operation information 131 when the debug process 101 is newly generated. This means that the debug process with the node number (1) 214 and the process number (20) 215 was generated from the debug process with the node number (0) 212 and the process number (10) 213. The process operation information 220 is an output example of the process operation information 131 when the operation of the file is started. This means that the execution of the program name (Prog2_0) 224 has been started in the debug process of the node number (1) 222 and the process number (20) 223. The process operation information 230 is an output example of the process operation information 131 when the operation is stopped due to a factor such as a breakpoint. This means that the debug process with the node number (2) 232 and the process number (21) 233 has stopped at the line number (line 146) 235 of the source file (function.c) 234. The process operation information 240 is an output example of the process operation information 131 when the operation of the debug process is restarted, and means that the debug process of the node number (0) 242 and the process number (10) 243 has restarted the operation. I do. The process operation information 250 is an output example of the process operation information 131 when the operation of the debug process is completed. The debug process of the node number (3) 252 and the process number (30) 253 means that the operation has been completed. I do.

図3は、図1に示すプロセス情報テーブル組立部143により作成、及び更新され、プロセス関連グラフ表示部145、及びプロセス詳細情報表示部146で参照するプロセス情報テーブル300の詳細である。デバッグプロセス情報310、プロセスボックス座標位置情報340、子供デバッグプロセス情報320、兄弟デバッグプロセス情報330で構成される。デバッグプロセス情報310は、ノード番号情報311、プロセス番号情報312、プログラム名称情報313、及び動作状態情報314を管理する。プロセスボックス座標位置情報340は、プロセス情報テーブル300で管理しているデバッグプロセスを、プロセスボックスとしてプロセス関連グラフに、表示した場合の座標情報として、プロセスボックスのx軸情報341、y軸情報342、幅情報343、及び高さ情報344を管理する。子供デバッグプロセス情報320は、プロセス情報テーブル300で管理しているデバッグプロセスより生成されたデバッグプロセス(以下、子プロセスと呼ぶ)のプロセス情報テーブルポインタ321を管理し、兄弟デバッグプロセス情報330は、プロセス情報テーブル300で管理しているデバッグプロセスと、兄弟の関係にあるデバッグプロセス(以下、兄弟プロセスと呼ぶ)のプロセス情報テーブルポインタ331を管理する。   FIG. 3 shows details of the process information table 300 created and updated by the process information table assembling unit 143 shown in FIG. 1 and referred to by the process-related graph display unit 145 and the process detailed information display unit 146. It comprises debug process information 310, process box coordinate position information 340, child debug process information 320, and sibling debug process information 330. The debug process information 310 manages node number information 311, process number information 312, program name information 313, and operation state information 314. The process box coordinate position information 340 includes x-axis information 341 and y-axis information 342 of the process box as coordinate information when the debug process managed by the process information table 300 is displayed as a process box on a process-related graph. The width information 343 and the height information 344 are managed. The child debug process information 320 manages a process information table pointer 321 of a debug process (hereinafter, referred to as a child process) generated from the debug process managed in the process information table 300. It manages a process information table pointer 331 of a debug process managed in the information table 300 and a debug process having a sibling relationship (hereinafter, referred to as a sibling process).

図4は、プロセス動作情報ファイル130からプロセス動作情報131を入力し、表示装置150に表示するデバッガ情報表示部140の処理手順をフローチャートにしたものである。まず、プロセス動作情報監視部141は、プロセス動作情報ファイル130に、プロセス動作情報131が出力されているかを調べる(ステップ411)。プロセス動作情報131が出力されている場合、プロセス動作情報取得部142に制御を移す。プロセス動作情報取得部142は、プロセス動作情報ファイル130から、プロセス動作情報131を入力し(ステップ421)、プロセス情報テーブル組立部143へ制御を移す。プロセス情報テーブル組立部143では、プロセス動作情報131に管理されているプロセス状態情報より、デバッグプロセスの動作状態を調べる(ステップ431)。プロセス状態情報が、デバッグプロセス生成時は、プロセス情報テーブル作成処理(ステップ432)、デバッグプロセスの動作開始、再開、停止、及び終了時は、プロセス情報テーブル更新処理(ステップ433)を行い、プロセス情報表示部144に制御を移す。プロセス情報テーブル作成処理432の詳細な実施例は図5に、プロセス情報テーブル更新処理433の詳細な実施例は図6に記載する。プロセス情報表示部144は、プロセス情報テーブルをキーにして、プロセス関連グラフ表示部145で、プロセス関連グラフ表示用のデータ作成処理442を、プロセス詳細情報表示部146で、プロセス詳細情報表示用のデータ作成処理443をデバッグプロセスの数分繰り返し処理し(ステップ441〜444)、表示装置150に制御を移す。プロセス関連グラフ表示データ作成処理442、及びプロセス詳細情報表示データ作成処理443の詳細な実施例は図7に記載する。   FIG. 4 is a flowchart of a processing procedure of the debugger information display unit 140 for inputting the process operation information 131 from the process operation information file 130 and displaying the process operation information 131 on the display device 150. First, the process operation information monitoring unit 141 checks whether the process operation information 131 has been output to the process operation information file 130 (Step 411). When the process operation information 131 has been output, the control is transferred to the process operation information acquisition unit 142. The process operation information acquisition unit 142 inputs the process operation information 131 from the process operation information file 130 (Step 421), and transfers control to the process information table assembling unit 143. The process information table assembling unit 143 checks the operation state of the debug process from the process state information managed in the process operation information 131 (step 431). When the process status information is the debug process generation, the process information table creation process (step 432) is performed, and when the operation of the debug process starts, restarts, stops, and ends, the process information table update process (step 433) is performed. The control is transferred to the display unit 144. FIG. 5 shows a detailed embodiment of the process information table creation process 432, and FIG. 6 shows a detailed embodiment of the process information table update process 433. The process information display unit 144 uses the process information table as a key, and the process related graph display unit 145 performs data creation processing 442 for displaying a process related graph, and the process detail information display unit 146 displays data for displaying process detail information. The creation process 443 is repeated for the number of debug processes (steps 441 to 444), and the control is transferred to the display device 150. FIG. 7 shows a detailed example of the process-related graph display data creation process 442 and the process detailed information display data creation process 443.

図5は、プロセス情報テーブル作成処理432の詳細な実施例である。図2で説明したプロセス動作情報210を入力例として説明する。まず、新しいデバッグプロセス101を生成したデバッグプロセス(入力例の場合、ノード番号0〜212、プロセス番号10〜213のデバッグプロセス。以下、親プロセスと呼ぶ)を管理しているプロセス情報テーブルの検索501を行う。検索方法は、親プロセスのノード番号(入力例の場合、ノード番号0〜212)と、プロセス情報テーブルに管理しているノード番号情報との一致判定502で行う。親プロセスを管理しているプロセス情報テーブルを検索できたら、新しく生成されたデバッグプロセス(入力例の場合、ノード番号1〜214、プロセス番号20〜214のデバッグプロセス。以下、生成プロセスと呼ぶ)のプロセス情報テーブルを作成503し、親プロセスのプロセス情報テーブルで管理している子供デバッグプロセス情報に登録する。同時に、兄弟デバッグプロセス情報も登録し、プロセス情報表示部〜144に制御を移す。   FIG. 5 is a detailed example of the process information table creation processing 432. The process operation information 210 described with reference to FIG. 2 will be described as an input example. First, a search 501 of a process information table that manages a debug process that has generated a new debug process 101 (in the case of an input example, a debug process with node numbers 0 to 212 and process numbers 10 to 213; hereinafter, referred to as a parent process). I do. The search method is performed by a match determination 502 between the node number of the parent process (node numbers 0 to 212 in the case of the input example) and the node number information managed in the process information table. If the process information table managing the parent process can be searched, the newly generated debug process (in the case of the input example, the debug processes of the node numbers 1 to 214 and the process numbers 20 to 214; hereinafter, referred to as a generation process). A process information table is created 503 and registered in the child debug process information managed in the process information table of the parent process. At the same time, sibling debug process information is also registered, and the control is transferred to the process information display section 144.

図6は、プロセス情報テーブル更新処理433の詳細な実施例である。図2のブレークポイントなどの要因により、動作を停止した場合のプロセス動作情報230を入力例として説明する。まず、動作の停止したデバッグプロセス(入力例の場合、ノード番号2〜232、プロセス番号21〜233のデバッグプロセス)を管理しているプロセス情報テーブルの検索601を行う。検索方法は、デバッグプロセスのノード番号(入力例の場合、ノード番号2〜232)と、プロセス情報テーブルに管理しているノード番号情報との一致判定502で行う。デバッグプロセスを管理しているプロセス情報テーブルを検索出来たら、デバッグプロセスの動作状態を、プロセス動作情報230のプロセス状態情報231で判定し(ステップ603)、入力例のプロセス動作情報230のプロセス状態情報2
31は動作停止を表しているため、デバッグプロセスを管理しているプロセス情報テーブルの動作状態情報に、動作停止情報を設定し(ステップ606)、プロセス情報表示部144に制御を移す。同様に、プロセス動作情報220を入力例とした場合、動作状態情報に動作開始情報を設定(ステップ604)、プロセス動作情報240を入力例とした場合、動作状態情報に動作再開情報を設定(ステップ605)、プロセス動作情報250を入力例とした場合、動作状態情報に動作終了情報を設定し(ステップ607)、プロセス情報表示部144に制御を移す。
FIG. 6 is a detailed example of the process information table update processing 433. The process operation information 230 when the operation is stopped due to a factor such as a break point in FIG. 2 will be described as an input example. First, a search 601 of the process information table that manages the debug process whose operation has been stopped (in the case of the input example, the debug processes of the node numbers 2 to 232 and the process numbers 21 to 233) is performed. The search method is performed by a match determination 502 between the node number of the debug process (node numbers 2 to 232 in the case of the input example) and the node number information managed in the process information table. If the process information table managing the debug process can be searched, the operation state of the debug process is determined by the process state information 231 of the process operation information 230 (step 603), and the process state information of the process operation information 230 of the input example is determined. 2
Since 31 indicates an operation stop, the operation stop information is set in the operation state information of the process information table managing the debug process (step 606), and the control is transferred to the process information display unit 144. Similarly, when the process operation information 220 is an input example, operation start information is set in the operation state information (step 604), and when the process operation information 240 is an input example, operation restart information is set in the operation state information (step 604). 605), when the process operation information 250 is an input example, operation end information is set in the operation state information (step 607), and the control is transferred to the process information display unit 144.

図7は、プロセス情報表示部144の詳細な実施例である。まず、プロセス情報テーブル組立部143で作成、及び更新された、プロセス情報テーブルを入力し(ステップ701)、全てのデバッグプロセスのデバッグ情報表示処理が完了したかを判断する(ステップ702)。全てのデバッグプロセスのデバッグ情報表示処理が完了した場合、表示装置150へ制御を移す。プロセス関連グラフ表示部145では、デバッグプロセスをプロセスボックスとして表示するために、プロセスボックスの表示位置情報(x軸、y軸、幅、及び高さ)の計算を行い(ステップ703)、プロセス情報テーブルのプロセスボックス座標位置情報に、それぞれの計算値を設定する(ステップ704)。その後、デバッグプロセスの動作状態(生成、開始、再開、停止、及び終了)と連動してプロセスボックスを特徴表示するため、プロセス情報テーブルの動作状態情報を参照し(ステップ705)、動作状態に応じたプロセスボックス表示用画面データの作成(ステップ710、ステップ711、ステップ712、ステップ713、又はステップ714)を行い、プロセス詳細情報表示部146へ制御を移す。プロセス詳細情報表示部146は、プロセス詳細情報表示用の画面データの作成を行う(ステップ443)。   FIG. 7 is a detailed example of the process information display unit 144. First, the process information table created and updated by the process information table assembling unit 143 is input (step 701), and it is determined whether or not debug information display processing of all debug processes has been completed (step 702). When the debug information display processing of all the debug processes is completed, the control is transferred to the display device 150. The process-related graph display unit 145 calculates display position information (x-axis, y-axis, width, and height) of the process box in order to display the debug process as a process box (step 703). The respective calculated values are set in the process box coordinate position information (step 704). Thereafter, in order to display the characteristics of the process box in conjunction with the operation state (generation, start, restart, stop, and end) of the debug process, the operation state information in the process information table is referred to (step 705). The screen data for process box display is created (step 710, step 711, step 712, step 713, or step 714), and control is transferred to the process detailed information display unit 146. The process detail information display unit 146 creates screen data for displaying process detail information (step 443).

図8は、表示装置150の同一画面に表示されたプロセス関連グラフ151と、プロセス詳細情報152の表示例である。まず、プロセス関連グラフ151に表示されるプロセスボックス(801、802、803、及び804)には、デバッグプロセスを示す情報として、プロセス番号(ノード番号)のデバッグプロセス情報を表示する。例として、プロセスボックス801のデバッグプロセス情報810は、プロセス番号10(ノード番号0)のデバッグプロセスである事を示す。更に、プロセスボックス801は、プロセスボックス802と線により連結表示811していることで、プロセスボックス802で示されるデバッグプロセスを生成した親プロセスとなる。また、プロセスボックス804とも、線により連結表示812していることで、プロセスボックス804で示されるデバッグ
プロセスを生成した親プロセスとなる。これで、プロセスボックス802と、プロセスボックス804間は、兄弟プロセスであることが分かる。プロセスボックス802は、プロセスボックス803と線により連結表示813されていることで、プロセスボックス803で示されるデバッグプロセスを生成した親プロセスである。プロセスボックス803、及びプロセスボックス804は、線により連結表示されているプロセスボックスが無いため、子プロセスの生成は行っていない。更に、プロセスボックス801のデバッグプロセスは、プロセスボックスの枠線を太線により特徴表示841していることで、動作再開状態のデバッグプロセスであることを示し、プロセスボックス802と、プロセスボックス804のプロセスは、プロセスボックスの枠線を細線により特徴表示(842、843)していることで動作停止状態、プロセスボックス803のプロセスは、プロセスボックスの枠線を点線により特徴表示843していることで実行終了状態と、デバッグプロセスの動作状態に連動した表示を行う。プロセス詳細情報152は、行の情報として、デバッグプロセスの詳細な動作情報(821、822、823、及び824)を表示し、列の情報として、ノード番号831、プログラム名称832、プロセス番号833、動作状態834、及び停止位置835のデバッグ情報を表示する。
FIG. 8 is a display example of the process-related graph 151 and the process detailed information 152 displayed on the same screen of the display device 150. First, in the process boxes (801, 802, 803, and 804) displayed on the process-related graph 151, debug process information of a process number (node number) is displayed as information indicating a debug process. As an example, the debug process information 810 of the process box 801 indicates that the process is a debug process of process number 10 (node number 0). Further, since the process box 801 is connected to the process box 802 by a line 811, the process box 801 becomes a parent process that has generated the debug process indicated by the process box 802. Further, since the process box 804 is connected and displayed 812 by a line, the process box 804 becomes a parent process that has generated the debug process indicated by the process box 804. From this, it is understood that the process box 802 and the process box 804 are sibling processes. The process box 802 is a parent process that has been connected to the process box 803 by a line 813 and has generated the debug process indicated by the process box 803. Since the process box 803 and the process box 804 do not have a process box connected and displayed by a line, no child process is generated. Further, the debug process of the process box 801 is indicated by the feature display 841 of the frame line of the process box with a bold line, indicating that the debug process is in the operation resume state. The processes of the process box 802 and the process box 804 are The operation of the process box 803 is stopped by displaying the features of the process box by thin lines (842 and 843), and the process of the process box 803 is terminated by displaying the features of the process box by dotted lines 843. The display is linked to the status and the operation status of the debug process. The process detailed information 152 displays detailed operation information (821, 822, 823, and 824) of the debug process as line information, and includes node number 831, program name 832, process number 833, and operation as column information. The debug information of the state 834 and the stop position 835 is displayed.

図9は、プロセス関連グラフ911からの、特定デバッグプロセスのデバッグ情報選択状態(以下、強調表示と呼ぶ)操作910と、プロセス詳細情報921からの、特定デバッグプロセスのデバッグ情報強調表示操作920の手順である。プロセス関連グラフ911からの強調表示操作910では、マウスなどにより、プロセス関連グラフ911から、プロセス番号20(ノード番号1)のデバッグプロセスのデバッグ情報強調表示操作912が行われた場合、マウスのポイント位置と、プロセス情報テーブルのプロセスボックス座標位置情報で管理している座標情報から、マウスのポイント位置に、プロセスボックスとして表示されているデバッグプロセスを管理しているプロセス情報テーブルを検索する(ステップ913)。検索したプロセス情報テーブルより、強調表示操作の行われたデバ
ッグプロセスのノード番号は1であることを取得でき(ステップ914)、取得したノード番号をキーにして、プロセス詳細情報916に表示しているプロセス詳細情報から、ノード番号の一致するプロセス詳細情報の行の情報を検索する(ステップ915)。プロセス情報テーブル検索処理(ステップ913)で検索したプロセス情報テーブルのプロセスボックス座標位置情報から、プロセスボックスの強調表示処理を行い(ステップ930)、プロセス詳細情報検索(ステップ915)で検索した行の情報を基に、プロセス詳細情報の強調表示処理を行う(ステップ931)。これで、プロセス関連グラフ941のノード番号1のデバッグプロセスを示すプロセスボックス943、及びプロセス詳細情報942のノード番号1のデバッグプロセスを示すプロセス詳細情報944が連動して強調表示
され、表示装置940に表示する。次に、プロセス詳細情報921からの強調表示操作920では、マウスなどにより、プロセス詳細情報921から、プロセス番号20、ノード番号1のデバッグプロセスのデバッグ情報強調表示操作922が行われた場合、マウスのポイント位置から、行の情報としてデバッグプロセスの詳細情報を表示している文字列の取得を行い(ステップ923)、取得した文字列からノード番号を取得する(ステップ924)。取得したノード番号をキーにして、強調表示操作の行われたデバッグプロセスを管理している、プロセス情報テーブルを検索する(ステップ925)。プロセス関連グラフからの強調表示操作910と同様、プロセス関連グラフ941のノード番号1のデバッグプロセスを示すプロセスボックス943、及びプロセス詳細情報942のノード番号1のデバッグプロセスを示すプロセス詳細情報944が連動して強調表示され、表示装置940に表示される。
FIG. 9 shows a procedure of a debug information selection state (hereinafter, referred to as highlighting) operation 910 of a specific debug process from a process-related graph 911 and a debug information highlighting operation 920 of a specific debug process from process detailed information 921. It is. In the highlighting operation 910 from the process-related graph 911, when the debug information highlighting operation 912 of the debug process of the process number 20 (node number 1) is performed from the process-related graph 911 by the mouse or the like, the mouse point position Then, from the coordinate information managed by the process box coordinate position information in the process information table, a process information table managing a debug process displayed as a process box at the mouse point position is searched (step 913). . From the retrieved process information table, it can be obtained that the node number of the debug process for which the highlighting operation has been performed is 1 (step 914), and the obtained node number is displayed as the key in the process detailed information 916. From the process detailed information, the information of the line of the process detailed information having the matching node number is searched (step 915). Based on the process box coordinate position information of the process information table searched in the process information table search process (step 913), the process box is highlighted (step 930), and the line information searched in the process detailed information search (step 915) (Step 931). As a result, the process box 943 indicating the debug process of the node number 1 in the process-related graph 941 and the process detailed information 944 indicating the debug process of the node number 1 in the process detailed information 942 are highlighted and displayed on the display device 940. indicate. Next, in the highlighting operation 920 from the process detailed information 921, when the debug information highlighting operation 922 of the debug process of the process number 20 and the node number 1 is performed from the process detailed information 921 by the mouse or the like, From the point position, a character string displaying detailed information of the debug process is obtained as line information (step 923), and a node number is obtained from the obtained character string (step 924). Using the obtained node number as a key, a process information table that manages the debug process on which the highlighting operation has been performed is searched (step 925). Similarly to the highlighting operation 910 from the process-related graph, the process box 943 indicating the debug process of the node number 1 in the process-related graph 941 and the process detailed information 944 indicating the debug process of the node number 1 in the process detailed information 942 are linked. Is highlighted and displayed on the display device 940.

このように本実施例によれば、マルチプロセスプログラムを構成する複数のプロセスの動作状態に関連付けたデバッグ情報を、プログラムの動作と連動しながら特徴表示することにより、プロセスの生成、開始、再開、停止、及び終了のような、プロセスの動作に着目したプログラムのデバッグを行うことができる。また、プロセス関連グラフと、プロセス詳細情報を同一画面に表示し、プロセス関連グラフとプロセス詳細情報は、連動して強調表示することにより、プロセスの詳細な動作状態(プログラム名称やソースコード位置の情報)を簡略化して知ることが出来る。   As described above, according to the present embodiment, by displaying the debug information associated with the operation states of a plurality of processes constituting the multi-process program in a characteristic manner in conjunction with the operation of the program, generation, start, restart, and It is possible to debug a program focusing on the operation of a process such as stop and end. In addition, the process-related graph and the process detailed information are displayed on the same screen, and the process-related graph and the process detailed information are highlighted in conjunction with each other, so that the detailed operation state of the process (information on the program name and source code position) is displayed. ) Can be known in a simplified manner.

以上により、各プロセッサにおけるマルチプロセスプログラムの実行状態の詳細情報を可視化することができ、デバッグの効率化を支援することができる。   As described above, detailed information on the execution state of the multi-process program in each processor can be visualized, and efficiency of debugging can be supported.

マルチプロセスプログラムのデバッグ方法の構成図である。FIG. 4 is a configuration diagram of a multi-process program debugging method. プロセス動作情報のデータ構成図である。FIG. 4 is a data configuration diagram of process operation information. プロセス情報テーブル詳細である。It is a process information table detail. デバッガ情報表示部の処理手順をフローチャートにしたものである。9 is a flowchart of a processing procedure of the debugger information display unit. プロセス情報テーブル作成処理の詳細な実施例である。It is a detailed example of the process information table creation processing. プロセス情報テーブル更新処理の詳細な実施例である。It is a detailed example of a process information table update process. プロセス情報表示部の詳細な実施例である。It is a detailed example of a process information display unit. 表示装置に表示されたプロセス関連グラフと、プロセス詳細情報の表示例である。6 is a display example of a process-related graph displayed on a display device and detailed process information. プロセス関連グラフとプロセス詳細情報が連動して強調表示される手順である。This is a procedure in which the process-related graph and the process detailed information are highlighted in conjunction with each other.

符号の説明Explanation of reference numerals

100 デバッグプログラム
110 デバッガシステム部
120 デバッガエンジン部
130 プロセス動作情報ファイル
140 デバッガ情報表示部
150 表示装置
201〜253 プロセス動作情報出力例
300 プロセス情報テーブル
310 デバッグプロセス情報
320 プロセスボックス座標情報
330 子供デバッグプロセス情報
340 兄弟デバッグプロセス情報
411〜444 デバッガ情報表示部の処理手順
501〜504 プロセス情報テーブル作成処理
601〜607 プロセス情報テーブル更新処理
701〜714 プロセス情報表示部
801〜804 プロセスボックス
810 デバッグプロセス情報
811〜813 プロセス親子及び兄弟関係の特徴表示
821〜824 デバッグプロセスの詳細な動作情報(行情報)
831〜835 デバッグプロセスの詳細な動作情報(列情報)
841〜844 プロセスボックスの特徴表示
910 プロセス関連グラフからの強調表示操作
920 プロセス詳細情報からの強調表示操作
940 プロセス関連グラフとプロセス詳細情報の強調表示
REFERENCE SIGNS LIST 100 debug program 110 debugger system unit 120 debugger engine unit 130 process operation information file 140 debugger information display unit 150 display device 201 to 253 process operation information output example 300 process information table 310 debug process information 320 process box coordinate information 330 child debug process information 340 sibling debug process information 411 to 444 Process steps 501 to 504 of debugger information display section Process information table creation processing 601 to 607 Process information table update processing 701 to 714 Process information display sections 801 to 804 Process box 810 Debug process information 811 to 813 Process parent-child and sibling feature display 821-824 Detailed operation information of debug process (line information)
831 to 835 Detailed operation information of debug process (column information)
841-844 Process box feature display 910 Highlighting operation from process-related graph 920 Highlighting operation from process detailed information 940 Highlighting of process-related graph and process detailed information

Claims (7)

複数のプログラムの実行状態を表示するためのプログラムの表示方法において、
前記複数のプログラムをそれぞれ所定の図形で表示し、前記プログラム間の関係を示すよう前記表示した図形間に所定の表示を行い、前記プログラムの動作状態に応じて前記表示した図形の表示を変えることを特徴とするプログラムの表示方法。
In a program display method for displaying an execution state of a plurality of programs,
Displaying each of the plurality of programs in a predetermined figure, performing a predetermined display between the displayed figures so as to show a relationship between the programs, and changing a display of the displayed figure according to an operation state of the program; A program display method characterized by the following.
前記プロセスを表示した図形は、該プロセスが動作中の場合は該図形を実線で表示し、該プロセスが終了した場合は該図形を破線で表示することを特徴とする請求項1記載のプログラムの表示方法。   2. The program according to claim 1, wherein the graphic displaying the process displays the graphic as a solid line when the process is running, and displays the graphic as a broken line when the process is completed. Display method. 前記プロセスの動作状態は、プロセスの生成、開始、再開、停止および終了の少なくともいずれかを含むことを特徴とする請求項1記載のプログラムの表示方法。   2. The method according to claim 1, wherein the operation state of the process includes at least one of generation, start, restart, stop, and end of the process. 前記複数のプロセスの詳細情報を前記図形と同一画面に表示することを特徴とする請求項1記載のプログラムの表示方法。   2. The method according to claim 1, wherein detailed information of the plurality of processes is displayed on the same screen as the graphic. 前記図形と前記各プロセスの詳細情報とを、前記プロセスの動作状態と連動して強調表示に表示を変更することを特徴とする請求項4記載のプログラムの表示方法。   5. The program display method according to claim 4, wherein the display of the graphic and the detailed information of each process is changed to a highlighted display in conjunction with the operation state of the process. 複数のプログラムをそれぞれ所定の図形で表示し、前記プログラム間の関係を示すよう前記表示した図形間に所定の表示を行う手段と、前記プログラムの動作状態に応じて前記表示した図形の表示を変える手段とを備えたことを特徴とするプログラムの表示装置。   Means for displaying a plurality of programs in the form of predetermined graphics, and performing predetermined display between the displayed graphics so as to show the relationship between the programs, and changing the display of the displayed graphics in accordance with the operation state of the program And a program display device. 複数のプログラムをそれぞれ所定の図形で表示し、前記プログラム間の関係を示すよう前記表示した図形間に所定の表示を行うステップと、前記プログラムの動作状態に応じて前記表示した図形の表示を変えるステップとを有することを特徴とするプログラムの表示プログラムを格納した記録媒体。
Displaying a plurality of programs as predetermined graphics, and performing a predetermined display between the displayed graphics so as to show a relationship between the programs; and changing a display of the displayed graphics according to an operation state of the program. And a recording medium storing a display program of the program.
JP2004225058A 2004-08-02 2004-08-02 Method and device for displaying program and recording medium stored with processing program Pending JP2004318914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004225058A JP2004318914A (en) 2004-08-02 2004-08-02 Method and device for displaying program and recording medium stored with processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004225058A JP2004318914A (en) 2004-08-02 2004-08-02 Method and device for displaying program and recording medium stored with processing program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000152665A Division JP2001331465A (en) 2000-05-18 2000-05-18 Method and device for displaying multiple processes and recording medium having display program stored therein

Publications (1)

Publication Number Publication Date
JP2004318914A true JP2004318914A (en) 2004-11-11

Family

ID=33475845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004225058A Pending JP2004318914A (en) 2004-08-02 2004-08-02 Method and device for displaying program and recording medium stored with processing program

Country Status (1)

Country Link
JP (1) JP2004318914A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011138494A (en) * 2009-12-23 2011-07-14 Intel Corp Relational modeling for performance analysis of multi-core processor using virtual task

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011138494A (en) * 2009-12-23 2011-07-14 Intel Corp Relational modeling for performance analysis of multi-core processor using virtual task

Similar Documents

Publication Publication Date Title
JP6430037B2 (en) Debugging support apparatus and debugging support method
US20060085783A1 (en) Multi-process display method in debugger system
US8296723B2 (en) Configurable unified modeling language building blocks
EP0859315A2 (en) Graphical distributed make tool methods, apparatus and computer program products
CN107408001A (en) Data editor, data editing method and data editor
US9059931B2 (en) System and method for visualizing an address space
EP1480135A2 (en) System and method of determining impact of data model changes
US9395872B2 (en) Facilities controlling device, screen displaying method, and recording medium
JP6057750B2 (en) Log visualization operation screen control system and method
JP2004318914A (en) Method and device for displaying program and recording medium stored with processing program
CN111033475B (en) Control program development support apparatus, control program development support system, control program development support method, and computer-readable storage medium
JP2004310317A (en) Business support device
CN112363696B (en) Augmented reality rapid development system and method, electronic device and readable storage medium
JPWO2019244327A1 (en) Management device, management method and program
JP2006155216A (en) Monitor screen display method
JP2013125424A (en) Symbol generating device for graphic screen
JP2005100027A (en) Failure information display device for programmable controller having failure detail display part on which content formed by dividing detailed content about failure by attribute defined by user is displayed such that page is turned over every time selecting this attribute
JP2005092609A (en) Sequence diagram display apparatus and sequence diagram display program
CN110674622B (en) Visual chart generation method and system, storage medium and electronic equipment
CN116166162A (en) Visual operation method and device of database and computer readable medium
JP5224759B2 (en) Test formula creation support system, test formula creation support method, and test formula creation support program
JP2013235381A (en) Data editing apparatus and data editing method
JPH07200226A (en) Visualizing device for operation string
JP2023069729A (en) Information design assisting device, information design assisting method, and program
JP2006155094A (en) Product development supporting device, product development supporting method and product development supporting program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040802

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051018

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051216

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060317

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060329

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20060421

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060427