CN1920782A - System and method for debugging information output and control - Google Patents

System and method for debugging information output and control Download PDF

Info

Publication number
CN1920782A
CN1920782A CN 200510086301 CN200510086301A CN1920782A CN 1920782 A CN1920782 A CN 1920782A CN 200510086301 CN200510086301 CN 200510086301 CN 200510086301 A CN200510086301 A CN 200510086301A CN 1920782 A CN1920782 A CN 1920782A
Authority
CN
China
Prior art keywords
debugging message
output
control
console
application program
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.)
Granted
Application number
CN 200510086301
Other languages
Chinese (zh)
Other versions
CN100555231C (en
Inventor
李喜欣
朱晓斌
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005100863011A priority Critical patent/CN100555231C/en
Publication of CN1920782A publication Critical patent/CN1920782A/en
Application granted granted Critical
Publication of CN100555231C publication Critical patent/CN100555231C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a system of outputting and controlling the debug message, and relative method, wherein it comprises: debug message console, debug message input control module, at least one application program module for outputting debug message; the debug message console receives the debug message of application program module, to provide the control and receive operation interfaces of debug message; the debug message output control module communicates with the debug message console, to receive the control the debug message console and send its debug message to each application program module; the application program module communicates with the debug message output control module, to output debug message and receive the control of debug message output control module on the debug message output. The invention can be used in multi-process software system, to simplify the control mission, and output debug message at several methods, and detect the accidence of software.

Description

A kind of Debugging message output and control system and method thereof
Technical field
The invention belongs to the computer software design field, relate to the aided debugging method of software module, particularly relate to output and the control system and the method thereof of the Debugging message of the software systems that constitute by a plurality of subsystems.
Background technology
In the process of carrying out develop computer software; because the wrong or artificial mistake in the design etc.; in the design of software and cataloged procedure, hide a lot of mistakes through regular meeting; these mistakes are difficult to be found and solve usually, and some is wrong even only just can come out under specific running environment.The running environment of some software systems is more special, such as operating in the embedded software on the veneer, the NT service routine of Windows etc., is difficult to observe the ruuning situation of software, does not also know when mistake takes place somewhere, when produces.Along with the development of technology, software systems are huge day by day and complicated, and complete software systems may be made of a lot of subsystems, and the internal process of system and structure are very complicated, when this system breaks down, the root of fault location also cumbersome.
In order to improve the quality of software product, need provide a kind of means to help find these mistakes.
The current a kind of method that generally adopts is the running status of logging software, and software is exported Debugging message in operational process, the position of coming the auxiliary judgment fault to take place by Debugging message when breaking down.But this method relatively is applicable to the system of one process.Process is meant the independently application program of moving on the computing machine, is generally a subsystem that constitutes the whole software system.For the software systems that multi-process constitutes, the shortcoming of this method is: each process all needs to realize separately the output and the control function of Debugging message.In order to realize that the Debugging message output behavior of system is controlled, need be configured respectively and manage each process.This has not only increased the workload of configuration and management, and has caused the waste of computer resource.
Therefore need provide a kind of output and control system and method thereof of Debugging message, to improve control function to the Debugging message output of multiprocess system.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of Debugging message output and control system and method thereof, is used to solve that prior art is suitable for that software systems that multi-process constitutes realize that the output of Debugging message and the workload that control function is brought increase and problem such as the wasting of resources.
To achieve these goals, the invention provides a kind of Debugging message output and control system, comprising: the application program module of Debugging message operator's console, Debugging message output control module, at least one output Debugging message, wherein
Described Debugging message operator's console is used to receive the Debugging message of the application program module output of each described output Debugging message, and the operation interface of the control and the reception of Debugging message is provided;
Described Debugging message output control module and described Debugging message operator's console carry out communication, the application program module that is used to accept the control of described Debugging message operator's console and the control information that it is sent is sent to each described output Debugging message;
The application program module of described output Debugging message and described Debugging message output control module carry out communication, are used to export Debugging message, and accept the control of described Debugging message output control module to Debugging message output.
Output of described Debugging message and control system, wherein, described Debugging message operator's console and the application program module of described output Debugging message operate on same main frame or the different main frame.
Described Debugging message output and control system, wherein, the application program module of each described output Debugging message is by calling Debugging message output interface function output Debugging message.
Described Debugging message output and control system, wherein, described Debugging message output control module and described Debugging message operator's console by being selected to carry out communication by TCP, UDP or serial ports etc. by the user; The application program module of described Debugging message output control module and described output Debugging message is carried out communication by UDP.
Described Debugging message output and control system, wherein, described Debugging message operator's console by between described Debugging message operator's console and described Debugging message output control module, setting a safety certification interface and on described Debugging message operator's console the mode and the described Debugging message output control module of input one preset user information set up communication.
Described Debugging message output and control system, wherein, the application program module of described output Debugging message is with the way of output output Debugging message of hybrid mode or redirected mode.
Described Debugging message output and control system, wherein, described Debugging message output control module offers described Debugging message operator's console with the rank and the classification descriptor of Debugging message output when initialization.
Described Debugging message output and control system, wherein, the application program module of described output Debugging message is initiated registration message to described Debugging message output control module and is registered when initialization; The application program module of described output Debugging message sends deregister message to described Debugging message output control module when finishing operation.
Described Debugging message output and control system, wherein, described Debugging message output control module is received the configuration information that sends current Debugging message output behind the registration message of application program module of described output Debugging message to the application program module of described output Debugging message.
To achieve these goals, the present invention also provides a kind of Debugging message output and control method, comprises the steps:
The step that one Debugging message operator's console is provided with is used to provide the operation interface of the control and the reception of Debugging message;
The step of one Debugging message output control, the control that is used to receive the control information of described Debugging message operator's console transmission and accepts described Debugging message operator's console; And
The step of one Debugging message output is used to export Debugging message, receiving control information, and according to the output of described control information control Debugging message.
System that this method provides and method thereof are applicable to the computer software that one process/multi-process is formed.Especially under the embedded software system of multi-process, the invention provides a kind of method of centralized control software systems output Debugging message.Use this method not only to simplify the control behavior of Debugging message output, and the way of output of multiple Debugging message is provided, be applicable to various software running environment, easily the phenomenon of the failure in the operational process of monitoring of software and the positioning software operational process.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is a Debugging message output module system assumption diagram;
Fig. 2 is the system construction drawing under the multi-process pattern;
Fig. 3 is the system construction drawing under the one process pattern.
Embodiment
The objective of the invention is to provide for multiprocess software system a kind of output and control system and method thereof of Debugging message, this system and method thereof also are applicable to the software systems of one process.
Technical scheme of the present invention is as follows:
Debugging message output and control system are made up of Debugging message operator's console, Debugging message output control module, three parts of application program module Debugging message output interface.
The Debugging message operator's console: this module is as an independent subsystem operation, and it is responsible for receiving the Debugging message of each application program module of exporting Debugging message output, functions such as the preservation of realization Debugging message, inquiry.Provide the interface that control is unified in the Debugging message output behavior of system, it may operate on the different main frames with the application program module of output Debugging message.
The Debugging message output control module: this module operates on the same main frame with the application program module of output Debugging message, as MCU (Multipoint Control Unit, the multipoint control unit) equipment of TV conference system, terminal device etc.It and Debugging message operator's console carry out communication, accept the control of Debugging message operator's console; In addition, it also carries out communication with the application program module of each output Debugging message, the control information that the Debugging message operator's console is sent sends to the application program module that each exports Debugging message, realizes the control that each Debugging message of exporting the application program module of Debugging message is exported.
The application program module and the Debugging message output interface thereof of output Debugging message: this Debugging message output interface is called by this application program module for the interface function of output Debugging message, operates on same the main frame with the Debugging message output control module.Application program module is called the Debugging message of this interface function output application module.Simultaneously it carries out communication with the Debugging message output control module, accepts the Debugging message output control module is exported behavior to Debugging message control.
The way of output of Debugging message is divided into following several:
(1), dispersing mode: Debugging message directly sends to operator's console by each application program module example by UDP (User DatagramProtocol, User Datagram Protoco (UDP)).The operational efficiency of this mode is the highest, but application program module may be subjected to web influence.
(2), centralized system: application program module sends to control module with Debugging message earlier, concentrates by UDP to send to operator's console again.The efficient of this mode is low slightly, but application program module is not subject to web influence.
(3), hybrid mode: application program module sends to control module with Debugging message earlier, and the TCP connection of setting up by operator's console sends to operator's console again.This mode efficient is general, but the reliability height, needing to go for the public network environment of passing fire wall.
(4), be redirected mode: Debugging message is transmitted to operator's console through control module, and control module arrives all and the communication redirection of operator's console other output device such as serial ports etc.This mode efficient is minimum, but goes for not having the environment of network connection.
The inventive method is equally applicable to the software systems of one process.For the software systems of one process, the Debugging message output system comprises Debugging message operator's console, Debugging message output control module, and wherein the Debugging message output control module has been realized the output function of Debugging message.
This method has been simplified the control to Debugging message output, only needs just can realize control to all application program modules by operator's console.
Fig. 1 is a Debugging message output module system assumption diagram.The direction of transfer of the thick arrow 33 expression control informations between Debugging message operator's console 10 and the Debugging message output control module 30, the direction of transfer of the application program module 20 of output Debugging message and the 11 expression Debugging message of the arrow between the Debugging message operator's console 10.Application program module 20 and the empty arrow 22 between the Debugging message output control module 30 of output Debugging message is illustrated in the direction of transfer of the application program module 20 of control information from Debugging message output control module 30 to the output Debugging message and the direction of transfer of Debugging message from the application program module 20 of exporting Debugging message to Debugging message output control module 30 under mixed mode and redirect mode.The application program module 20 of wherein exporting Debugging message comprises a Debugging message output module 200.
Figure 2 shows that the system construction drawing under the multi-process pattern.With software systems of being made up of three subsystem A, B, C is that example illustrates the system architecture under the multi-process pattern.
1), Debugging message operator's console 10 is as an independent system, operate on the PC (PersonalComputer, personal computer).The user controls by the Debugging message output behavior of Debugging message operator's console 10 couples of A, B, three sub-system application modules 20 of C.Debugging message operator's console 10 provides the functional characteristic that Debugging message is saved in file for the control and the reception of Debugging message provide operation interface, and can import Debugging message from file; Analytic function to Debugging message is provided, can classifies to Debugging message, work such as ordering.The control of the Debugging message of A, B, three sub-system application modules 20 of C being exported behavior all is to realize by the communication with Debugging message output control module 30.It at first connects with Debugging message output control module 30, will receive the port numbers notice Debugging message output control module 30 of Debugging message, the classification and the rank descriptor of the Debugging message output that reception Debugging message output control module 30 reports.Communication between Debugging message output control module 30 and the Debugging message operator's console 10 has defined the interface of safety certification, only on Debugging message operator's console 10 interfaces, imported the user profile that pre-sets, could connect with Debugging message output control module 30.
2), the Debugging message output control module 30.This module and Debugging message operator's console 10 carry out communication by TCP, carry out communication with A, B, three sub-system application modules 20 of C by local UDP Socket (socket), in the 30 inner tabulations that need to safeguard a A, B, three sub-system application module 20 objects of C of Debugging message output control module.Debugging message output control module 30 as one independently process on the main frame at subsystem A, B, C place, move, as the terminal of MCU equipment or TV conference system.When 30 initialization of Debugging message output control module, the user offers Debugging message output control module 30 with the rank and the classification descriptor of Debugging message output as parameter, and this classification and rank descriptor will send to Debugging message operator's console 10 when Debugging message operator's console 10 and Debugging message output control module 30 connect.Debugging message output control module 30 receives the connection request of Debugging message operator's console 10, foundation is connected with Debugging message operator's console 10, read the configuration information that Debugging message operator's console 10 changes Debugging message output, travel through each application program module 20 then, the configuration information that current Debugging message is exported sends to A, B, three sub-system application modules 20 of C.
3), A, B, three subsystems of C application program that is MCU or video conference terminal, they need register to Debugging message output control module 30 when initialization, and Debugging message output control module 30 is received the configuration information that sends current Debugging message output behind the log-on message of A, B, three sub-system application modules 20 of C to this application program module 20.This application program module 20 needs to send to Debugging message output control module 30 message of cancel register when finishing operation.Call the interface function of its Debugging message output module 200 in the place of needs output Debugging message.
Fig. 3 is the system construction drawing under the one process pattern.Introduce the embodiment of one process pattern below: under the one process pattern, have only a software systems A20, comprised Debugging message output control module 30, as shown in Figure 3.The direction of transfer of black arrow 222 expression control informations can carry out communication by the mode of TCP between Debugging message output control module 30 and the Debugging message operator's console 10, also can be by mode communications such as serial ports.The direction of transfer of the empty arrow 111 expression Debugging message between Debugging message output control module 30 and the Debugging message operator's console 10.
Beneficial effect of the present invention:
The invention provides the system and the method thereof of a kind of Debugging message output and control, be suitable for the computer software that one process/multi-process is formed.Especially under the embedded software system of multi-process, the invention provides a kind of method of centralized control software systems output Debugging message.Use this method not only to simplify the control behavior of Debugging message output, and the way of output of multiple Debugging message is provided, be applicable to various software running environment, easily the phenomenon of the failure in the operational process of monitoring of software and the positioning software operational process.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (10)

1, a kind of Debugging message output and control system is characterized in that, comprising: the application program module of Debugging message operator's console, Debugging message output control module, at least one output Debugging message, wherein
Described Debugging message operator's console is used to receive the Debugging message of the application program module output of each described output Debugging message, and the operation interface of the control and the reception of Debugging message is provided;
Described Debugging message output control module and described Debugging message operator's console carry out communication, the application program module that is used to accept the control of described Debugging message operator's console and the control information that it is sent is sent to each described output Debugging message;
The application program module of described output Debugging message and described Debugging message output control module carry out communication, are used to export Debugging message, and accept the control of described Debugging message output control module to Debugging message output.
2, Debugging message according to claim 1 output and control system is characterized in that, described Debugging message operator's console and the application program module of described output Debugging message operate on same main frame or the different main frame.
3, Debugging message output according to claim 1 and control system is characterized in that, the application program module of each described output Debugging message is by calling Debugging message output interface function output Debugging message.
4, according to claim 1,2 or 3 described Debugging message output and control system, it is characterized in that described Debugging message output control module and described Debugging message operator's console can carry out communication by TCP, UDP or serial ports according to user's selection; The application program module of described Debugging message output control module and described output Debugging message is carried out communication by UDP Socket.
5, according to claim 1,2 or 3 described Debugging message output and control system, it is characterized in that, described Debugging message operator's console by between described Debugging message operator's console and described Debugging message output control module, setting a safety certification interface and on described Debugging message operator's console the mode and the described Debugging message output control module of input one preset user information set up communication.
According to claim 1,2 or 3 described Debugging message output and control system, it is characterized in that 6, the application program module of described output Debugging message is with the way of output output Debugging message of hybrid mode or redirected mode.
7, according to claim 1,2 or 3 described Debugging message output and control system, it is characterized in that described Debugging message output control module offers described Debugging message operator's console with the rank and the classification descriptor of Debugging message output when initialization.
8, according to claim 1,2 or 3 described Debugging message output and control system, it is characterized in that the application program module of described output Debugging message is initiated registration message to described Debugging message output control module and registered when initialization; The application program module of described output Debugging message sends deregister message to described Debugging message output control module when finishing operation.
9, Debugging message output according to claim 8 and control system, it is characterized in that described Debugging message output control module is received the configuration information that sends current Debugging message output behind the registration message of application program module of described output Debugging message to the application program module of described output Debugging message.
10, a kind of Debugging message output and control method is characterized in that, comprise the steps:
The step that one Debugging message operator's console is provided with is used to provide the operation interface of the control and the reception of Debugging message;
The step of one Debugging message output control, the control that is used to receive the control information of described Debugging message operator's console transmission and accepts described Debugging message operator's console; And
The step of one Debugging message output is used to export Debugging message, receiving control information, and according to the output of described control information control Debugging message.
CNB2005100863011A 2005-08-26 2005-08-26 A kind of Debugging message output and control system and method thereof Expired - Fee Related CN100555231C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100863011A CN100555231C (en) 2005-08-26 2005-08-26 A kind of Debugging message output and control system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100863011A CN100555231C (en) 2005-08-26 2005-08-26 A kind of Debugging message output and control system and method thereof

Publications (2)

Publication Number Publication Date
CN1920782A true CN1920782A (en) 2007-02-28
CN100555231C CN100555231C (en) 2009-10-28

Family

ID=37778512

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100863011A Expired - Fee Related CN100555231C (en) 2005-08-26 2005-08-26 A kind of Debugging message output and control system and method thereof

Country Status (1)

Country Link
CN (1) CN100555231C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540706B (en) * 2009-04-23 2011-12-28 中兴通讯股份有限公司 Method and system for realizing remote debugging
CN101753375B (en) * 2009-12-11 2012-07-04 中国航空无线电电子研究所 Device for debugging UDP network packet in avionics simulation environment and method therefor
CN104536838A (en) * 2014-12-18 2015-04-22 中国电子科技集团公司第三十八研究所 Remote debugging method and system with asynchronous monitoring function
CN102073581B (en) * 2009-11-23 2015-09-23 新奥特(北京)视频技术有限公司 A kind of output intent of Debugging message and system
CN105959160A (en) * 2016-07-01 2016-09-21 瑞斯康达科技发展股份有限公司 Debugging information transmission method and apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540706B (en) * 2009-04-23 2011-12-28 中兴通讯股份有限公司 Method and system for realizing remote debugging
CN102073581B (en) * 2009-11-23 2015-09-23 新奥特(北京)视频技术有限公司 A kind of output intent of Debugging message and system
CN101753375B (en) * 2009-12-11 2012-07-04 中国航空无线电电子研究所 Device for debugging UDP network packet in avionics simulation environment and method therefor
CN104536838A (en) * 2014-12-18 2015-04-22 中国电子科技集团公司第三十八研究所 Remote debugging method and system with asynchronous monitoring function
CN105959160A (en) * 2016-07-01 2016-09-21 瑞斯康达科技发展股份有限公司 Debugging information transmission method and apparatus

Also Published As

Publication number Publication date
CN100555231C (en) 2009-10-28

Similar Documents

Publication Publication Date Title
CN1276636C (en) Method and equipment for executing common calling management by common software platform
CN1991710A (en) Remote control method, device and computer switcher
CN101064670A (en) Network multi-service processing method and system
CN1859187A (en) Method and system for centrally configurating terminal equipment
CN1920782A (en) System and method for debugging information output and control
CN1801790A (en) Method for improving data communication reliability using floating IP address
CN101051948A (en) System and method for realizing multiple link point-to-point silent interception by port image
CN101035025A (en) Network device management method and system
CN101075920A (en) Method for monitoring switching system far-end port
CN101043367A (en) Multi-apparatus management method and system
CN1113505C (en) Network management method with distributed network agent manager
CN1889483A (en) Interframe interconnection communication system and data exchanging method thereof
CN100337170C (en) Network separated industrial controller on spot and realizing method thereof
CN1462129A (en) Multimedia intelligent monitoring method and system
CN1955990A (en) Flow executing method and system of integral telecommunication platform
CN100343817C (en) Far end server monitor
CN1991745A (en) Method for catching 64 bit information in 64 bit system by using 32 bit master program
CN1933450A (en) Interplate communicating method and interface plate
CN1713664A (en) Realizing method and system of testing service performance for calling center
CN1183721C (en) Cluster management method and system for low-end switches
CN1622617A (en) A multi-point control unit and IP network based sharing method and conference system
CN1848752A (en) Business data packet tracing realizing method
CN1263342C (en) Method for controlling switch, control device and program module thereof, and switching system
CN1293723C (en) Method for implementing call tracing
CN1722903A (en) Roaming communication system over internet with remote hosts and related method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091028

Termination date: 20150826

EXPY Termination of patent right or utility model