JPH0638246B2 - Logging method for program debugging - Google Patents
Logging method for program debuggingInfo
- Publication number
- JPH0638246B2 JPH0638246B2 JP1323095A JP32309589A JPH0638246B2 JP H0638246 B2 JPH0638246 B2 JP H0638246B2 JP 1323095 A JP1323095 A JP 1323095A JP 32309589 A JP32309589 A JP 32309589A JP H0638246 B2 JPH0638246 B2 JP H0638246B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- control unit
- function
- application program
- communication control
- 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.)
- Expired - Lifetime
Links
Landscapes
- Computer And Data Communications (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Debugging And Monitoring (AREA)
Description
【発明の詳細な説明】 〔概要〕 交換機と連携して各種の通信サービスを行う機能をもつ
計算機において,デバッグの際アプリケーションプログ
ラムの通信インタフェースを確認するためのロギング情
報を収集し,ファイルに格納する方式に関し, インタフェース情報をロギングするための簡単な手段を
提供することを目的とし, 交換機と連携して通信制御を行いかつデータのファイル
機能を有する通信制御部をそなえた計算機において,ア
プリケーションプログラムから呼び出されて、通信制御
部に対して必要な通信機能の実行要求を行うとともに,
当該アプリケーションプログラムからの呼び出しに伴う
インタフェース情報をロギング情報として編集し,その
ロギング情報を通信制御部に依頼してファイルに格納さ
せる機能を有する通信インタフェース部を設け, アプリケーションプログラムは通信処理時に通信インタ
フェース部を呼び出して,通信制御部に対する通信機能
の実行要求と,当該呼び出しに伴うイタフェース情報に
関するロギング情報編集処理およびファイル格納要求の
制御を行わせるように構成した。[Detailed Description of the Invention] [Outline] In a computer having a function of performing various communication services in cooperation with a switchboard, logging information for confirming a communication interface of an application program is collected during debugging and stored in a file. With regard to the system, the purpose is to provide a simple means for logging interface information, and in a computer that has a communication control unit that performs communication control in cooperation with an exchange and has a data file function, call it from an application program. Then, while requesting the communication control unit to execute the necessary communication function,
A communication interface unit is provided that has a function of editing interface information associated with a call from the application program as logging information and requesting the communication control unit to store the logging information in a file. Is called to execute the communication function execution request to the communication control unit, and to control the logging information edit processing and file storage request related to the interface information associated with the call.
本発明は,交換機と連携して各種の通信サービスを行う
機能をもつ計算機において,デバッグの際アプリケーシ
ョンプログラムの通信インタフェースを確認するための
ロギング情報を収集し,ファイルに格納する方式に関す
る。The present invention relates to a method of collecting logging information for confirming a communication interface of an application program and storing it in a file in a computer having a function of performing various communication services in cooperation with an exchange.
最近,交換機(PBX)と計算機とを連携させて電話転
送サービスや計算機データの送受信などの多機能電話を
実現するシステムが開発されている。Recently, a system has been developed which realizes a multi-functional telephone such as a telephone transfer service and transmission / reception of computer data by linking a switchboard (PBX) and a computer.
第3図はこのような従来のシステムの計算機における構
成例を示したものである。FIG. 3 shows an example of the configuration of a computer of such a conventional system.
図において, 1は,交換機である。In the figure, 1 is an exchange.
2は,通信回線である。2 is a communication line.
3は,計算機である。3 is a computer.
4は,通信要求をもつアプリケーションプログラムであ
る。Reference numeral 4 is an application program having a communication request.
5は,アプリケーションプログラム4により呼び出され
て実際の通信要求処理を実行する通信インタフェース部
であり,通信機能の種別ごとの複数のサブルーチンで構
成されている。A communication interface unit 5 is called by the application program 4 and executes an actual communication request process, and is composed of a plurality of subroutines for each type of communication function.
6は,通信インタフェース部5からの要求にしたがって
指示された通信制御を実行するプログラム制御の通信制
御部である。A program-controlled communication control unit 6 executes communication control instructed in accordance with a request from the communication interface unit 5.
7は,回線制御部である。Reference numeral 7 is a line control unit.
たとえばアプリケーションプログラム4はCOBOL言
語を用いて記述されており,CALLインタフェースに
より通信インタフェース部5の任意のサブルーチンを呼
び出して通信処理を行う。For example, the application program 4 is written using the COBOL language, and the CALL interface calls an arbitrary subroutine of the communication interface unit 5 to perform communication processing.
通信インタフェース部5内の各サブルーチンの例を次に
示す。An example of each subroutine in the communication interface unit 5 is shown below.
サブルーチン名 機能 XONOOPN 通信インタフェース部のポイント(領
域)の使用宣言,ポイント名,パスワード名等の設定。Subroutine name Function XONOOPN Declaration of point (area) use of communication interface, setting of point name, password name, etc.
XONOCLS 使用した通信インタフェース部のポイ
ントの終了宣言。XONOCLS Declares the end of the points of the communication interface used.
XONOCON 通信機器と通信制御部との間のパスを
確立。Establishes a path between the XONONCON communication device and the communication control unit.
XONODCN 通信機器と通信制御部との間のパスを
解放。Release the path between the XONODCN communication device and the communication control unit.
XONODBT 通信機器と通信制御部との間のパスを
異常終了。Abnormal termination of the path between the XONODBT communication device and the communication control unit.
XONOREQ 通信機器に対して通信制御部の機能を
起動。この機能には呼制御機能,エンドノード(相手端
末)の入出力情報更新機能,端末入出力制御機能が含ま
れる。XONOREQ Activates the function of the communication control unit for communication equipment. This function includes the call control function, the input / output information update function of the end node (partner terminal), and the terminal input / output control function.
XONORCV 通信機器からの通知,指示の受信。XONORCV Receives notifications and instructions from communication devices.
XONOCAN 実行中の受信要求の取消し。XONOCAN Canceling the receive request being executed.
アプリケーションプログラム4は,上記した各サブルー
チンの中の適当なものを順次呼び出して,ポイント名,
パスワード名とともに電話番号などの必要な制御データ
をパラメータとして渡し,通信制御部6を制御させる。The application program 4 sequentially calls an appropriate one of the above-mentioned subroutines to obtain a point name,
Necessary control data such as a telephone number is passed as a parameter together with the password name, and the communication control unit 6 is controlled.
第4図は,アプリケーションプログラム4のデバッグ時
における基本的な動作の流れを示したものである。具体
例を用いて説明すると,まずアプリケーションプログラ
ム4はサブルーチン“XONOOPN”を呼び出して通
信インタフェース部5のポイントの使用を宣言し,次に
サブルーチン“XONOCON”を呼び出して通信機器
(回線制御部7)と通信制御部6との間にパスを設定
し,その後,サブルーチン“XONOREQ”,サブル
ーチン“XONORCV”を用いてエンドノード(相手
端末)との間のパスの確立と,必要なデータ転送制御を
行わせて,終了後,サブルーチン“XONODCN”を
呼び出して通信機器と通信制御部6との間のパスを解放
し,最後にサブルーチン“XONOCLS”により通信
インタフェース部5のポイントの使用終了を宣言する。
これらの処理が終ると,DISPLAY命令により実行
結果のディスプレイ表示あるいは帳票印刷を行って終了
した。FIG. 4 shows the flow of basic operations when debugging the application program 4. To explain using a specific example, first, the application program 4 calls a subroutine "XONOOPN" to declare the use of points of the communication interface unit 5, and then calls a subroutine "XONOCON" to communicate with a communication device (line control unit 7). Set a path with the communication control unit 6, and then use the subroutine "XONOREQ" and subroutine "XONORCV" to establish the path with the end node (partner terminal) and perform the necessary data transfer control. After completion, the subroutine "XONODCN" is called to release the path between the communication device and the communication control unit 6, and finally the subroutine "XONOCLS" declares the end of use of the points of the communication interface unit 5.
When these processes are finished, the display of the execution result or the form printing is performed by the DISPLAY command and the process is finished.
アプリケーションプログラムのデバッグを行う場合に
は,通信インタフェース部の各サブルーチンとの間のイ
ンタフェースの確認,たとえばサブルーチンの呼び出し
でパラメータの各制御データが正しく引き渡されたかど
うかなどの確認が必要となるが,従来は,アプリケーシ
ョンプログラムの作成者が,デバッグ時にアプリケーシ
ョンプログラム中でサブルーチンの呼び出しを行う位置
にDISPLAY命令を挿入し,パラメータ情報や処理
結果を示す情報をディスプレイに表示または印刷させて
確認する方法がとられていた。When debugging an application program, it is necessary to check the interface with each sub-routine in the communication interface section, for example, to confirm whether each control data of the parameter was correctly passed by calling the sub-routine. Is a method in which the creator of the application program inserts a DISPLAY command at a position where a subroutine is called in the application program during debugging, and displays or prints parameter information and processing result information on a display for confirmation. Was there.
しかしディスプレイ上で,アプリケーションプログラム
から通信インタフェース部のサブルーチンへの全ての呼
び出しについてインタフェースの情報を確認するには,
アプリケーションプログラムの必要な場所にそれぞれD
ISPLAY命令を挿入し,デバッグ終了後に削除する
必要があり,特に各インタフェースの情報を全てロギン
グ情報としてディスク等のファイルに格納させるにはフ
ァイル格納機能を用意する必要があり,実際上困難があ
った。またある通信プロトコルでは,回線経由でデータ
を送信する場合フラグ等の制御情報の付加や,無駄な回
線占有時間を減らすためのブランク・データの削除,あ
るいは使用を許されていない文字コード等のプロトコル
にとっての無意味なデータを強制的,自動的にスペース
文字等の所定のデータに置換するなどのデータ加工が行
われているが,このような場合,通信エラー発生時にそ
の原因となった誤データを送信データ中で探索しようと
すると,データが変化しているため著しい困難があっ
た。However, to see the interface information on the display for all calls from the application program to the subroutines in the communication interface section,
D to the required location of the application program
It was necessary to insert the ISPLAY instruction and delete it after the debug was completed. In particular, it was necessary to prepare a file storage function to store all the information of each interface as logging information in a file such as a disk, which was actually difficult. . Further, in some communication protocols, when data is transmitted via a line, control information such as a flag is added, blank data is deleted to reduce unnecessary line occupation time, or a protocol such as a character code that is not allowed to be used. Data processing such as forcibly and automatically replacing specified data such as space characters with meaningless data for the user is performed. In such a case, the incorrect data that caused the communication error occurs. When trying to search for in the transmitted data, there was significant difficulty because the data had changed.
本発明は,アプリケーションプログラムのデバッグ時に
おいて,通信インタフェース部のサブルーチン呼び出し
を行ったときのインタフェース情報をロギングするため
の簡単な手段を提供することを目的としている。It is an object of the present invention to provide a simple means for logging interface information when a subroutine of a communication interface section is called when debugging an application program.
本発明は,多くの通信制御部にファイル格納機能がそな
えられていることに着目して,通信インタフェース部に
ロギング情報の編集および通信制御部へのファイル格納
依頼を行う機能を設けることにより,アプリケーション
プログラムから通信インタフェース部内のサブルーチン
に対する全ての呼び出しについてロギング情報のファイ
ル格納を可能とするものである。The present invention focuses on the fact that many communication control units are provided with a file storage function, and by providing the communication interface unit with a function of editing logging information and requesting a file storage to the communication control unit, The logging information can be stored in a file for all calls from the program to the subroutine in the communication interface section.
第1図は本発明の原理的構成図である。FIG. 1 is a principle block diagram of the present invention.
図において, 1は,交換機である。In the figure, 1 is an exchange.
2は,通信回線である。2 is a communication line.
3は,計算機である。3 is a computer.
4は,通信処理を含むアプリケーションプログラムであ
る。Reference numeral 4 is an application program including communication processing.
5は,通信インタフェース部であり,アプリケーション
プログラム4から呼び出されて通信処理を実行する。A communication interface unit 5 is called by the application program 4 and executes communication processing.
5aは,通信インタフェース部5の機能を実現するサブ
ルーチンであり(アプリケーションプログラム4がメイ
ンルーチンとなる),通信処理に必要な手順を実行する
ための通信制御機能の起動要求を発行し,またロギング
情報を編集してファイル格納要求を行う。Reference numeral 5a is a subroutine that realizes the function of the communication interface unit 5 (the application program 4 serves as a main routine), issues a request to start the communication control function for executing the procedure necessary for communication processing, and logs information. Edit and make a file storage request.
5bは,パラメータ情報であり,通信処理実行時にロギ
ングされる。5b is parameter information, which is logged when communication processing is executed.
6は,通信制御部であり,通信インタフェース部5から
の要求に応じて動作し,通信制御機能とデータのファイ
ル格納機能とをもつ。A communication control unit 6 operates in response to a request from the communication interface unit 5 and has a communication control function and a data file storage function.
7は,回線制御部であり,通信制御部6からの指示に基
づいて,交換機1を介して相手端末との間の回線の確立
と解放を行う。A line control unit 7 establishes and releases a line with a partner terminal via the exchange 1 based on an instruction from the communication control unit 6.
8は,ディスクファイル装置であり,通信制御部6によ
りロギング情報の格納に使用される。A disk file device 8 is used by the communication control unit 6 to store logging information.
9は,ロギング情報表示出力ルーチンであり,ロギング
表示コマンドが投入されると,ディスクファイル装置8
に格納されているロギング情報を読み出して表示あるい
は印刷出力する処理を行う。Reference numeral 9 is a logging information display output routine, and when a logging display command is input, the disk file device 8
The logging information stored in is read and displayed or printed out.
10は,ロギング情報を表示できるディスプレイであ
る。10 is a display capable of displaying logging information.
11は,ロギング情報を印刷出力できるプリンタであ
る。Reference numeral 11 is a printer capable of printing out the logging information.
第1図に示された本発明の構成では,アプリケーション
プログラム4が通信インタフェース部5のサブルーチン
5aを呼び出す(CALL)と,サブルーチン5aは指
定された電話番号などのパラメータ情報5bを用いて通
信制御部6の機能を起動し,必要な通信処理を行う。そ
してその後サブルーチン5aを呼び出しパラメータ情報
5bをロギング情報として編集し,通信制御部6に依頼
してディスクファイル装置8に格納させる。In the configuration of the present invention shown in FIG. 1, when the application program 4 calls the subroutine 5a of the communication interface unit 5 (CALL), the subroutine 5a uses the parameter information 5b such as the designated telephone number and the communication control unit. 6 function is activated and necessary communication processing is performed. After that, the subroutine 5a is called, the parameter information 5b is edited as logging information, and the communication control unit 6 is requested to store it in the disk file device 8.
アプリケーションプログラム4の処理が終了した後,ロ
ギング表示コマンドを投入してロギング情報表示出力ル
ーチン9を起動すれば,いつでもディスクファイル装置
8に格納されているロギング情報をディスプレイ10に
表示させ,あるいはプリンタ11から帳票出力させるこ
とができる。After the processing of the application program 4 is completed, if the logging display command is input and the logging information display output routine 9 is started, the logging information stored in the disk file device 8 is always displayed on the display 10 or the printer 11 is displayed. Can be output from the form.
第2図は,本発明実施例の動作を示す流れ図である。 FIG. 2 is a flow chart showing the operation of the embodiment of the present invention.
図において,COBOLアプリケーションはCOBOL
言語で記述された第1図のアプリケーションプログラム
4を表わし,またCOBOLサブルーチンは同様に第1
図のサブルーチン5aに対応している。In the figure, COBOL application is COBOL
1 represents the application program 4 of FIG. 1 written in a language, and the COBOL subroutine is the same as the first program.
It corresponds to the subroutine 5a in the figure.
COBOLアプリケーションにおけるCALLインタフ
ェースの呼び出し形式は, CALL“サブルーチン名”USINGパラメータ名で
ある。ここで“サブルーチン名”は従来の技術の項にお
いて例示されているようなものが指定される。またパラ
メータ名は,サブルーチンごとに定められている制御デ
ータのパラメータブロックを指定するためのものであ
る。たとえばサブルーチンXONOREQの場合には,
ポイント名,パスワード名,通信機器識別名,エンドノ
ードID,コールIDなどがパレメータブロックに設定
されている。パラメータブロックは複数個指定すること
ができる。なおパラメータブロックには,実行結果の情
報も設定される。The call format of the CALL interface in the COBOL application is CALL "subroutine name" USING parameter name. Here, the "subroutine name" is specified as exemplified in the section of the prior art. The parameter name is for designating a parameter block of control data defined for each subroutine. For example, in the case of the subroutine XONOREQ,
Point names, password names, communication device identification names, end node IDs, call IDs, etc. are set in the parameter block. Multiple parameter blocks can be specified. Information on the execution result is also set in the parameter block.
第2図において,COBOLアプリケーションがサブル
ーチンの呼び出しを行うと,呼び出されたCOBOLサ
ブルーチンは指定されているパラメータの内容にしたが
って通信機能の実行要求を行い,通信制御部に制御を渡
す。通信制御部は要求された通信機能を実行し,通信処
理を行った後,COBOLサブルーチンに制御を戻す。
ここでCOBOLサブルーチンは,ロギング情報の編集
処理を行い,次のそのロギング要求を通信制御部に対し
て行う。In FIG. 2, when a COBOL application calls a subroutine, the called COBOL subroutine makes a communication function execution request according to the contents of the specified parameter, and passes control to the communication control unit. The communication control unit executes the requested communication function, performs communication processing, and then returns control to the COBOL subroutine.
Here, the COBOL sub-routine edits the logging information, and issues the next logging request to the communication control unit.
通信制御部は,ロギング要求に応答してロギング処理を
実施し,ディスクファイル装置にロギング情報を書込
む。The communication control unit executes the logging process in response to the logging request and writes the logging information to the disk file device.
このロギング処理が終ると,通信制御部はCOBOLサ
ブルーチンに制御を戻し,COBOLサブルーチンはC
OBOLアプリケーションに制御を戻してCOBOLア
プリケーションの処理が続行される。When this logging process ends, the communication control unit returns control to the COBOL subroutine, and the COBOL subroutine returns to C
The control is returned to the OBOL application and the processing of the COBOL application is continued.
本発明によれば,アプリケーションプログラムの作成者
は,デバッグのためにプログラム中に特別な命令を挿入
するなどのロジック変更を行うことなくインタフェース
情報をロギングすることができ,またデータ送信時にブ
ランク・データの削除などのデータ加工が行われても,
加工前のデータをロギングできるため,通信エラー発生
時の誤データの探索が容易となり,デバッグ作業の負担
の軽減とデバッグ時間の短縮とを図ることができる。According to the present invention, the creator of the application program can log the interface information without changing the logic such as inserting a special instruction in the program for debugging, and the blank data can be transmitted during the data transmission. Even if data processing such as deletion of
Since data before processing can be logged, it is easy to search for erroneous data when a communication error occurs, and the burden of debugging work and the debugging time can be reduced.
第1図は本発明の原理的構成図,第2図は本発明実施例
動作の流れ図,第3図は従来例の構成図,第4図は従来
例動作の流れ図である。 第1図中 1:交換機 2:通信回線 3:計算機 4:アプリケーションプログラム 5:通信インタフェース部 6:通信制御部 7:回線制御部 8:ディスクファイル装置 9:ロギング情報表示出力ルーチン 10:ディスプレイ 11:プリンタFIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a flow chart of the operation of the embodiment of the present invention, FIG. 3 is a block diagram of the conventional example, and FIG. 4 is a flow chart of the conventional example operation. In FIG. 1, 1: Exchange 2: Communication line 3: Computer 4: Application program 5: Communication interface part 6: Communication control part 7: Line control part 8: Disk file device 9: Logging information display output routine 10: Display 11: Printer
Claims (1)
タのファイル機能を有する通信制御部をそなえた計算機
において, アプリケーションプログラムから呼び出されて,通信制
御部に対して必要な通信機能の実行要求を行うととも
に,当該アプリケーションプログラムからの呼び出しに
伴うインタフェース情報をロギング情報として編集し,
そのロギング情報を通信制御部に依頼してファイルに格
納させる機能を有する通信インタフェース部を設け, アプリケーションプログラムは通信処理時に通信インタ
フェース部を呼び出して,通信制御部に対する通信機能
の実行要求と,当該呼び出しに伴うイタフェース情報に
関するロギング情報編集処理およびファイル格納要求の
制御を行わせることを特徴とするプログラムデバッグに
おけるロギング方式。1. A computer, which has a communication control unit having a data file function for performing communication control in cooperation with an exchange, is called from an application program and requests the communication control unit to execute a necessary communication function. And edit the interface information associated with the call from the application program as logging information,
A communication interface unit having a function of requesting the logging information to the communication control unit and storing it in a file is provided, and the application program calls the communication interface unit at the time of communication processing, requests the communication control unit to execute the communication function, and calls the communication function. A logging method for program debugging, characterized by controlling logging information editing processing related to interface information and file storage request.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1323095A JPH0638246B2 (en) | 1989-12-13 | 1989-12-13 | Logging method for program debugging |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1323095A JPH0638246B2 (en) | 1989-12-13 | 1989-12-13 | Logging method for program debugging |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03184147A JPH03184147A (en) | 1991-08-12 |
| JPH0638246B2 true JPH0638246B2 (en) | 1994-05-18 |
Family
ID=18151022
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1323095A Expired - Lifetime JPH0638246B2 (en) | 1989-12-13 | 1989-12-13 | Logging method for program debugging |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0638246B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6195645A (en) * | 1984-10-16 | 1986-05-14 | Mitsubishi Electric Corp | Communication control equipment |
| JPS6247759A (en) * | 1985-08-26 | 1987-03-02 | Fujitsu Ltd | Automatic line trace processing system |
| JPS62182957A (en) * | 1986-02-07 | 1987-08-11 | Nec Corp | Communication tracing system |
-
1989
- 1989-12-13 JP JP1323095A patent/JPH0638246B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03184147A (en) | 1991-08-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5799191A (en) | Method and apparatus for supporting cooperative works via computer network | |
| JPH0638246B2 (en) | Logging method for program debugging | |
| JPH0656581B2 (en) | Object-oriented programming method | |
| JP2631778B2 (en) | Computer program test equipment | |
| JP2000223384A (en) | Process flow change system and process flow change method | |
| JPS63271564A (en) | Decentralized text editing system | |
| JPH04373060A (en) | Batch job input number limiting system | |
| JP3018359B2 (en) | Online call information trace method | |
| JP3470445B2 (en) | Agency processing system | |
| JPH08123673A (en) | Program management method and system | |
| JPH0628286A (en) | Method and device for controlling communication | |
| JP2007004239A (en) | Design support apparatus, design support method, and program | |
| KR100296972B1 (en) | Storage and Method of Overall Service Logic in Open Service Creation Environment | |
| JPS6142290B2 (en) | ||
| JPH0850597A (en) | Interrupt Search Method in Seal Search System | |
| JPH11219444A (en) | Scenario editing device | |
| JPS63209248A (en) | Inter-system data incoming control system | |
| JPH07334494A (en) | Information processor | |
| JPH0934813A (en) | Agent system | |
| JPH05342212A (en) | Document management device | |
| JPH08153071A (en) | File updating method and information processing apparatus | |
| JPH01185722A (en) | print spooler | |
| JPS6280732A (en) | Method for controlling data input | |
| JPH05257937A (en) | 'kanji' data input/output system | |
| JPH0423156A (en) | Loading system for communication software |