CN100419711C - Emitter for service debug command, and processing method - Google Patents

Emitter for service debug command, and processing method Download PDF

Info

Publication number
CN100419711C
CN100419711C CNB200610127865XA CN200610127865A CN100419711C CN 100419711 C CN100419711 C CN 100419711C CN B200610127865X A CNB200610127865X A CN B200610127865XA CN 200610127865 A CN200610127865 A CN 200610127865A CN 100419711 C CN100419711 C CN 100419711C
Authority
CN
China
Prior art keywords
service
command
debug
processing unit
debug command
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.)
Active
Application number
CNB200610127865XA
Other languages
Chinese (zh)
Other versions
CN1916873A (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.)
Aisino Corp
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CNB200610127865XA priority Critical patent/CN100419711C/en
Publication of CN1916873A publication Critical patent/CN1916873A/en
Application granted granted Critical
Publication of CN100419711C publication Critical patent/CN100419711C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A emitter of service-debugging command consists of I/O treatment unit of debugging command, verification/analysis treatment unit of debugging command, treatment unit of assistance command, treatment unit of querying and revising command, treatment unit of control command, debugging command. The method for making treatment on service-debugging command is also disclosed.

Description

A kind of emitter for service debug command and disposal route thereof
Technical field
The present invention relates to service debugging, monitoring and the test processes technical field of service-oriented architecture, relate in particular to a kind of emitter for service debug command and disposal route thereof.
Background technology
Web services (Web Services) provides the basis of developing and carrying out by the interface and the agreement of standard for the business processing process that is distributed on the network.Simultaneously, obtained paying close attention to widely, particularly those and the relevant behavior of Service Instance management based on the interface of these good structures and the mesh services (Grid Services) of special agreement exploitation.Generally, web services is a kind of stateless service, defines as W3C; Mesh services then is a kind of service that state is arranged.The high-level abstract of WWW and mesh services shielded a large amount of bottom ins and outs for developer of services and programming personnel.Some research institutions provide different technology to realize with industry, as Web Services-Axis, and GlobusToolkit, Vega GOS or the like.Along with popularizing of service-oriented computing, developer of services and programming personnel have also proposed the demand to service debugging technique and instrument.
Though existing programming language debugging technique and expansion thereof are (as the JDI of Sun Microsystems, the script debugging technology of IBM based on the JDI technology, the XML Web ServiceDebugging of Microsoft) obtained good application, but because they do not support the debugging to service invocation procedure well, so the programming personnel is still continuing to use these technology and instrument to use in development machines or demonstration machine rise examination service.As one of major issue in the requirement engineering research, whether meet design requirement in software systems of run time verification and to be known together widely.Can meet the demands before deployment even its main cause is the software systems of a demonstration, these demands also may be destroyed when operation.Service-oriented computing faces same problem, particularly under the WWW scale, and one dynamically in the execution environment of deployment services, when being difficult to or even can't start traditional debugging mode the time.Existing in this case adjustment method can't operate as normal, because execution environment does not possess or is not activated the needed debugging enironment of related commissioning.
Service-oriented architecture is a component model, is a services set of intercommunication mutually in essence, and this communication may be that simple data transmit or plural Services Combination activity.Service is by resource (as data, program or equipment), and service logic and Message Processing constitute, and activates the service logic that uses resource when message arrives a service.Service call is based on the standard agreement of message under the distributed environment.Though oriented systems provides the picture class, object, method, far call abstract has the notion based on message processing procedure.Message processing facility provides a kind of framework of supporting service behavior, and these behaviors comprise the role of node, the syntax and semantics of single computing unit, and switch mode, reliability, security, relevant related, route, ISP or the like.Therefore, more effective service adjustment method can be based on this behavior framework.The method of detecting and location mistake or fault needs developer or programming personnel to observe and analyzes the service behavior that goes wrong, and checks then whether observed behavior is consistent with desirable behavior.Developer or programming personnel pay close attention to these service behaviors and adopt different debug strategies and these behaviors are carried out understanding the desired services behavior simultaneously alternately.
Traditional debug source code pattern is to finish the debugging work of program by customized specifications and communication protocol in man-to-man mode; This means and to start and to move debugged program forcibly.For service compute, the debud mode of this compulsory employing customized specifications and communication protocol can't be supported under WWW and the mesh services computing environment online service debugging as required, promptly can't onlinely enter this debugging.Therefore, service debugging front end need provide emitter for service debug command that calls in accordance with the service compute agreement and the service debug command Request Processing method that meets the service compute standard.
Summary of the invention
(1) technical matters that will solve
In view of this, one object of the present invention is to provide a kind of emitter for service debug command, for the on-line debugging of service compute and grid computing provides a kind of simple, general and effective service debug command request processing mechanism.
Another object of the present invention is to provide a kind of method that service debug command is handled, for the on-line debugging of service compute and grid computing provides a kind of simple, general and effective service debug command treatment mechanism.
(2) technical scheme
For reaching an above-mentioned purpose, the invention provides a kind of emitter for service debug command, this transmitter comprises:
Debug command I/O processing unit, be used for debug command line output with external unit input to debug command checking and analysis and processing unit, and the debugging result that debug command checking and analysis and processing unit are returned is exported to external display device show;
Debug command checking and analysis and processing unit, be used to judge the type of the debug command row of debug command I/O processing unit input, HELP command is exported to the HELP command processing unit, to inquire about and revise order and export to inquiry and revise the command process unit, control command will be exported to the control command processing unit;
The HELP command processing unit, be used for generating the debugging help information, the debugging enironment attribute being set, and the debugging enironment attribute of debugging help information that will generate and setting is exported to display device by debug command checking and analysis and processing unit and debug command I/O processing unit and is shown according to the HELP command of debug command checking and analysis and processing unit input;
Inquiry and modification command process unit, be used to judge the command type of debug command checking and analysis and processing unit input, create a sub-thread for the asynchronous query order, this sub-thread dispatching debug command message processing unit of creating is exported to the debug command message processing unit with querying command; For synchronous modification order, directly call the debug command message processing unit, will revise order and export to the debug command message processing unit;
The control command processing unit, be used for the control command of debug command checking and analysis and processing unit input is exported to the debug command message processing unit, after receiving the response message that the debug command message processing unit returns, whether the control command of judging the input of debug command checking and analysis and processing unit is the single step order, if then the behavior description that service end address and debug command message processing unit are returned sends to the debug source code start unit; Otherwise the response message that the debug command message processing unit is returned returns to debug command checking and analysis and processing unit;
The debug source code start unit, be used for describing according to service end address that is received from the control command processing unit and corelation behaviour, start debug source code, and carry out context swap by debug command message processing unit and service end, dynamic loading and the order of execution debug source code are debugged the source code of this service behavior;
The debug command message processing unit, be used for to be received from inquiry and revise the inquiry of command process unit and the context swap command request message revising order, be received from the control command of control command processing unit and be received from the debug source code start unit sends to service end, and the response message that will be received from service end returns to inquiry respectively and revises command process unit, control command processing unit and debug source code start unit.
Described inquiry and modification order, control command and debug command are service debug command,
Described debug command message processing unit sends service debug command to service end and comprises two kinds of mode of operations: synchronous and asynchronous working pattern;
The emission process of described synchronous working pattern, the debug command message processing unit was not handled other service debug command request before receiving the response message that service end returns;
The emission process of described asynchronous working pattern, the debug command message processing unit need not waited for the response message that service end is returned, and can handle next service debug command request.
The structure of described service debug command comprises: system debug address of service sda, call operation title opn, debugged service call sign dsid and expression formula definition expr can be expressed as CF=(sda, opn, dsid, expr) four parts; Wherein,
System debug address of service sda is used to represent the service call address of standard, is a service debugging enironment attribute, and the service debug command emission process can be by the option acquisition system debug address of service of appointment;
Call operation title opn is consistent with the service debug command name;
Debugged service call sign dsid is used to represent controlled service end services request, is that the overall situation is unique, and the service debug command emission process can obtain debugged service call sign by option;
Expression formula definition expr is used for being provided with, calling, inquiring about or revise the respective element of serving debugging enironment and remote service context.
Described expression formula occurs at the capable rear portion of input command, and the null representation formula represents that this service debug command does not need to import expression formula;
The element decollator of expression formula inside is used to distinguish multistage service context element, appears at the left end of binary expression formula;
Equal sign is used to express an equation, the contextual element of equation left end specified services, and the equation right-hand member is an element value to be revised.
Described debug source code start unit is further used for and need carrying out the service behavior of moving under the situation of debug source code, describe according to service end address that is received from the control command processing unit and corelation behaviour, read outside debug source code configuration file; And, obtain current service end service context message by the service context request, and re-construct the service behavior that service context and loading are moved in this locality according to corresponding configuration startup local source code debugging environment; Under this debugging enironment, carry out the service behavior of being moved into; Use corresponding source code debugger that this service behavior is carried out debug source code; When the service behavior of being moved into is carried out end, send this service context message to service end, and return the service debug process.
For reaching above-mentioned another purpose, the invention provides a kind of method that service debug command is handled, this method comprises:
Step S1: the service debug command that emitter for service debug command reads external unit input is capable, and whether service for checking credentials debug command row is the service debug command request, if, execution in step S2 then; Otherwise, jump to step S1;
Step S2: whether emitter for service debug command service for checking credentials debug command row is the HELP command request, if, execution in step S3 then; Otherwise, execution in step S4;
Step S3: emitter for service debug command jumps to step S11 after calling and carry out and helping processing unit;
Step S4: emitter for service debug command judge service debug command capable whether be asynchronous service debug command request, if, execution in step S5 then; Otherwise, execution in step S6;
Step S5: emitter for service debug command is created asynchronous request thread, and main thread is back to step S1;
Step S6: emitter for service debug command debug command message processing unit calls control command/inquiry and revises command process, carry out the analysis of debug command row, system debug address of service and call operation name thereof are set, the sign of debugged service call and expression formula thereof;
Step S7: emitter for service debug command is according to the system debug address of service, and definite service debug command request message processing procedure of being called sends command request message to server end;
Step S8: emitter for service debug command receives the debug command response message that service end is returned;
Step S9: emitter for service debug command judges whether need to start debug source code, if desired, and execution in step S10 then; Otherwise, execution in step S11;
Step S10: emitter for service debug command reads the exterior arrangement file and starts configurable debug source code environment, obtain the current service context from service end, load and carry out the behavior of moving into, when debug source code finishes, send service context message to service end, and withdraw from the debug source code environment;
Step S11: handle and the demonstration return results.
The service debug command behavior of the input of external unit described in the step S1: from the debugging control platform, or the service debug command of the input of the control window under the Integrated Development Environment is capable.
(3) useful effect
From technique scheme as can be seen, the present invention has following beneficial effect:
1, the invention provides the emitter for service debug command of employing index plane, handle service debug command request and response message to service agreement; Compare with traditional debugging technique, the present invention has eliminated in mandatory debugging enironment the restriction to the service debugging of special-purpose debugging standard and agreement.
2, the invention provides according to the service debug command function, mode of operation, and the local and remote service debug command disposal route of calling, this method provides a kind of simple, general and effective service debug command transaction module and mechanism for the exploitation of the service debugging acid of service compute and grid computing.
3, the invention provides and be used to control the debugged service call behavior of service end, inquire about and revise debugged service call context, the service debug command collection of local debugging enironment attribute is set.
4, the invention provides configurable service behavior debug source code unit, this unit is activated when needs carry out the single step debug source code to the service behavior of moving into, for the service debugging provides a kind of online stratification solution from the message layer to the debug source code.
5, the invention provides the debug command request and the response message processing procedure of WWW and mesh services, support is with the system debug service call of web services and mesh services interface, solved the service debug command Message Processing problem of non-invasion on-line debugging Front-end Design and realization in service compute and grid computing.
Description of drawings
Fig. 1 is the structured flowchart of emitter for service debug command provided by the invention;
Fig. 2 is the realization flow figure that service debug command is handled provided by the invention;
Fig. 3 is the specific implementation process flow diagram that service debug command is handled provided by the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
As shown in Figure 1, Fig. 1 is the structured flowchart of emitter for service debug command provided by the invention, and this emitter for service debug command comprises debug command I/O processing unit 10, debug command checking and analysis and processing unit 11, HELP command processing unit 12, inquiry and revises command process unit 13, control command processing unit 14, debug source code start unit 15 and debug command message processing unit 16.
Wherein, debug command I/O processing unit 10 is used for debug command line output with external unit input to debug command checking and analysis and processing unit 11, and the debugging result that debug command checking and analysis and processing unit 11 are returned is exported to external display device shows.
Debug command checking and analysis and processing unit 11 are used to judge the type of the debug command row of debug command I/O processing unit 10 inputs, HELP command is exported to HELP command processing unit 12, to inquire about and revise order and export to inquiry and revise command process unit 13, control command will be exported to control command processing unit 14.
HELP command processing unit 12 is used for generating the debugging help information, the debugging enironment attribute being set according to the HELP command of debug command checking and analysis and processing unit 11 inputs, and the debugging enironment attribute of debugging help information that will generate and setting is exported to display device by debug command checking and analysis and processing unit 11 and debug command I/O processing unit 10 and shown.
Inquiry and modification command process unit 13 are used to judge the command type of debug command checking and analysis and processing unit 11 inputs, create a sub-thread for the asynchronous query order, this sub-thread dispatching debug command message processing unit 16 of creating is exported to debug command message processing unit 16 with querying command; For synchronous modification order, directly call debug command message processing unit 16, will revise order and export to debug command message processing unit 16.
Control command processing unit 14 is used for the control command of debug command checking and analysis and processing unit 11 inputs is exported to debug command message processing unit 16, after receiving the response message that debug command message processing unit 16 returns, whether the control command of judging debug command checking and analysis and processing unit 11 inputs is the single step order, if then the behavior description that service end address and debug command message processing unit are returned sends to debug source code start unit 15; Otherwise the response message that debug command message processing unit 16 is returned returns to debug command checking and analysis and processing unit 11;
Debug source code start unit 15 is used for describing according to service end address that is received from control command processing unit 14 and corelation behaviour, start debug source code, and carry out context swap by debug command message processing unit 16 and service end, dynamic loading and the order of execution debug source code are debugged the source code of this service behavior;
Debug command message processing unit 16 be used for will be received from inquiry and revise the inquiry of command process unit 13 and the context swap command request message revising order, be received from the control command of control command processing unit 14 and be received from debug source code start unit 15 sends to service end, and the response message that will be received from service end returns to inquiry respectively and revises command process unit 13, control command processing unit 14 and debug source code start unit 15.
Principle of work of the present invention and feature thereof will become obviously from following description, maybe can be by as described below practice of the present invention is understood.
For the far call request, the service debug command emission process is divided into two kinds of mode of operations: synchronous and asynchronous request; Its difference is that emission process is before service debug command request responding message is returned in the synchronous working pattern, do not handle other service debug command request, and emission process need not wait for that returning response message can handle next service debug command request in the asynchronous request.
The service debug command structure mainly comprises following four parts: 1) system debug address of service (sda), 2) call operation title (opn), 3) debugged service call sign (dsid) and 4) expression formula definition (expr); Can be expressed as CF=(sda, opn, dsid, expr).System debug address of service (sda) is as a service debugging enironment attribute, it is expressed as the service call address (as http://localhost:8080/axis/services/VegaDebugService) of a standard, and the service debug command emission process can obtain the system debug address of service by the option of appointment.Call operation title (opn) is consistent with the service debug command name.Debugged service call sign (dsid) is that the overall situation is unique, and it represents controlled service end services request, and the service debug command emission process can obtain debugged service call sign by option.Expression formula definition (expr) is provided with, calls, inquires about or revise the respective element in service debugging enironment and the remote service context.Expression formula occurs at the capable rear portion of input command, and the null representation formula represents that this service debug command does not need to import expression formula.The element decollator (.) of expression formula inside is distinguished multistage service context element, and decollator can only appear at the left end of binary expression formula.Equal sign (=) is expressed an equation, the contextual element of equation left end specified services, and the equation right-hand member is an element value to be revised.
A service debug command capable (CmdLine) can be a control command row (CtlLine), or an inquiry and revise order line (QULine), or a HELP command capable (HlpLine).Its syntactic representation is:
CmdLine→CtlLine|QULine|HlpLine
The control command row is made up of a control command (CtlCmd) and controlled variable (CtlArgs) thereof, and its syntactic representation is:
CtlLine→CtlCmd?CtlArgs
Control command (CtlCmd) is the operation name of calling system debugging services.Its controlled variable (CtlArgs) comprises system debug address of service option (r xxx), debugged service call sign option (m yyy), and optional constant expression (ConstString), and its syntactic representation is:
CtlArgs→RmtMark[Dot|ConstString|McidArgs]
RmtMark→Minus?RChar
Minus→-
RChar→r|R
Dot→.
McidArgs→McidMark?ConstString[ConstString]
McidMark→Minus?MChar
MChar→m|M
Inquiry and modification order line (QULine) order (QUCmd) and inquiry and modification parameter (QUArgs) thereof to form by an inquiry and modification, and its syntactic representation is:
QULine→QUCmd?QUArgs
Inquire about and revise order (QUCmd) for one and be the operation name of system debug service call.Inquiry and modification parameter (QUArgs) comprise system debug address of service option (r xxx), debugged service call sign option (m yyy), and inquiry and modification expression formula (QUExpr), and its syntactic representation is:
QUArgs→CtlArgs?QUExpr
QUExpr→Empty|Variable|QUExpr?Dot?Variable|QUEqu
Empty→null
QUEqu→QUMark?QUExpr?Equal?ConstString
Equal→=
QUMark→[Minus?QUType|ClearMark]
QUType→boolean|byte|integer|char|long|float|double|string|list
ClearMark→Minus?ClearString
ClearString→clear
Variable→Identifier
HELP command is capable to be made up of a HELP command (HlpCmd) and an optional constant expression (ConstString), and its syntactic representation is:
HlpLine→HlpCmd[ConstString]
Following table 1 shows the syntactic structure of complete service command collection and expression formula definition thereof.Wherein nonterminal ConstString represents a character string that does not contain variable, and with the nonterminal representative control implication that Ctl begins, with nonterminal representative inquiry and modification implication that QU begins, the nonterminal representative that begins with Hlp helps implication.
Figure C20061012786500161
Table 1
The basic step of service debugging is divided into: (1) observes the symptom that service behavior goes wrong; (2) wrong behavior source appears in the location; (3) determine wrong reason; The scheme of (4) implementation modification mistake; (5) test invoked behavior again.
Service debug command should provide the function of the needed observation of above step, modification and control service behavior, considers that simultaneously the performance issue service debug command of service debugging can be handled according to mode of operation and local and remote request.As mentioned above, control command belongs to synchronous remote request; Inquiry and modification order are divided into long-range asynchronous query and remote synchronization modification request; HELP command belongs to synchronous local request.
The debugging Request Processing is responsible for debug command request message is sent to service end in the service debug command message processing procedure.For example: web service request is handled the order that sends the stateless web services behavior of debugging, and its message processing procedure is observed relevant web services standard; Same mesh services Request Processing sends the order that debugging has the mesh services behavior of state, and its message processing procedure is observed relevant mesh services standard.The maximum difference of the two is the processing of associative operation input parameter, and WWW system debug service call is supported zero or a plurality of input parameter, and the grid system debugging services need reconstitute all input parameters an input parameter.
Below provide the WWW of service debug command and the false code that mesh services is called respectively.
1, the false code of web services message call processing procedure:
Figure C20061012786500171
2, the false code of mesh services message call processing procedure:
Figure C20061012786500172
Figure C20061012786500181
Configurable debug source code processing unit is to be activated under the situation that need carry out debug source code to the service behavior of moving in the service debug command emission process.This unit at first reads outside debug source code configuration file; Start local source code debugging environment according to configuration accordingly then, obtain current remote service context message, and re-construct the service behavior that service context and loading are moved in this locality by context request; The last service behavior of being moved into of under this debugging enironment, carrying out.Use corresponding source code debugger to carry out debug source code to this service behavior.When the service behavior of being moved into is carried out end, send this service context message, and return the service debug process.
The present invention has provided and has supported synchronously and the service debug command launching technique of asynchronous working pattern that this method is supported the debug command request and the response of WWW and mesh services standard.Service debug command is divided into following three classes by its function, mode of operation and Local or Remote request: control command, inquiry and modification order, and HELP command.Control command belongs to synchronous remote request; Inquiry and modification order are divided into long-range asynchronous query and remote synchronization modification request; HELP command belongs to synchronous local request.
Based on the structured flowchart of the described emitter for service debug command of Fig. 1, and above-mentioned description, below the method that service debug command is handled provided by the invention is elaborated to the principle of the invention and concrete practice.
As shown in Figure 2, Fig. 2 is the realization flow figure that service debug command is handled provided by the invention, and this method comprises:
Step S1: the service debug command that emitter for service debug command reads external unit input is capable, and whether service for checking credentials debug command row is the service debug command request, if, execution in step S2 then; Otherwise, jump to step S1;
In this step, the service debug command behavior of described external unit input: from the debugging control platform, or the service debug command of the input of the control window under the Integrated Development Environment is capable.
Step S2: whether emitter for service debug command service for checking credentials debug command row is the HELP command request, if, execution in step S3 then; Otherwise, execution in step S4.
Step S3: emitter for service debug command jumps to step S11 after calling and carry out and helping processing unit.
Step S4: emitter for service debug command judge service debug command capable whether be asynchronous service debug command request, if, execution in step S5 then; Otherwise, execution in step S6.
Step S5: emitter for service debug command is created asynchronous request thread, and main thread is back to step S1.
Step S6: emitter for service debug command debug command message processing unit calls control command/inquiry and revises command process, carry out the analysis of debug command row, system debug address of service and call operation name thereof are set, the sign of debugged service call and expression formula thereof.
Step S7: emitter for service debug command is according to the system debug address of service, and definite service debug command request message processing procedure of being called sends command request message to server end.
Step S8: emitter for service debug command receives the debug command response message that service end is returned.
Step S9: emitter for service debug command judges whether need to start debug source code, if desired, and execution in step S10 then; Otherwise, execution in step S11.
Step S10: emitter for service debug command reads the exterior arrangement file and starts configurable debug source code environment, obtain the current service context from service end, load and carry out the behavior of moving into, when debug source code finishes, send service context message to service end, and withdraw from the debug source code environment.
Step S11: handle and the demonstration return results, and be back to step S1.
For the method that service debug command is handled provided by the invention is described in further detail, below this is further described.
As shown in Figure 3, Fig. 3 is the specific implementation process flow diagram that service debug command is handled provided by the invention, and this method specifically comprises:
Step 301: debug command I/O processing unit with the debug command line output of external unit input to debug command checking and analysis and processing unit.
Step 302: debug command checking and analysis and processing unit are judged the type of the debug command row of input;
1) if debug command behavior HELP command, then execution in step 303;
2) if debug command behavior inquiry and modification are ordered, then execution in step 304;
3) if debug command behavior control command, then execution in step 305;
4) otherwise, return step 301.
Step 303: debug command checking and analysis and processing unit are exported to the HELP command processing unit with HELP command, the HELP command processing unit generates the debugging help information, the debugging enironment attribute is set according to the HELP command of input, and the debugging enironment attribute of debugging help information that will generate and setting exports to display device by debug command checking and analysis and processing unit and debug command I/O processing unit and shows, and returns step 301.
Step 304: debug command checking and analysis and processing unit will inquire about and revise order and export to inquiry and revise the command process unit, the command type of inquiry and the input of modification command process unit judges;
1) if the asynchronous query order is then inquired about and revised the command process unit and creates a sub-thread, the sub-thread dispatching debug command message of this of establishment processing unit is exported to the debug command message processing unit with querying command, execution in step 308;
2) if revise order synchronously, then inquire about and revise command process cell call debug command message processing unit, will revise order and export to debug command message processing unit, execution in step 308.
Step 305: debug command checking and analysis and processing unit are exported to the control command processing unit with control command, and the control command processing unit is exported to the debug command message processing unit, execution in step 308 with the control command of input.
Step 306: after receiving the response message that the debug command message processing unit returns, debug command checking and analysis and processing unit judge whether the control command of debug command checking and analysis and processing unit input is local single-step debug order, if then execution in step 307; Otherwise, execution in step 309.
Step 307: the control command processing unit sends to the debug source code start unit with service end address and corelation behaviour description, the debug source code start unit is described according to service end address that receives and corelation behaviour, start debug source code, and carry out context swap by debug command message processing unit and service end, dynamic loading and the order of execution debug source code, source code to this service behavior is debugged, when debug source code finishes, send service context message to service end, and withdraw from the debug source code environment.
Step 308: the debug command message processing unit sends to service end with the service debug command that receives, and the response message that will be received from service end returns to inquiry respectively and revises command process unit, control command processing unit and debug source code start unit; If step 306 is then returned in the control command request; Otherwise, execution in step 309.
Step 309: inquiry and revise the command process unit and the control command processing unit is exported to external display device with the response message that receives by debug command checking and analysis and processing unit and debug command I/O processing unit and shown, and return step 301.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. an emitter for service debug command is characterized in that, this transmitter comprises:
Debug command I/O processing unit, be used for debug command line output with external unit input to debug command checking and analysis and processing unit, and the debugging result that debug command checking and analysis and processing unit are returned is exported to external display device show;
Debug command checking and analysis and processing unit, be used to judge the type of the debug command row of debug command I/O processing unit input, HELP command is exported to the HELP command processing unit, to inquire about and revise order and export to inquiry and revise the command process unit, control command will be exported to the control command processing unit;
The HELP command processing unit, be used for generating the debugging help information, the debugging enironment attribute being set, and the debugging enironment attribute of debugging help information that will generate and setting is exported to display device by debug command checking and analysis and processing unit and debug command I/O processing unit and is shown according to the HELP command of debug command checking and analysis and processing unit input;
Inquiry and modification command process unit, be used to judge the command type of debug command checking and analysis and processing unit input, create a sub-thread for the asynchronous query order, this sub-thread dispatching debug command message processing unit of creating is exported to the debug command message processing unit with querying command; For synchronous modification order, directly call the debug command message processing unit, will revise order and export to the debug command message processing unit;
The control command processing unit, be used for the control command of debug command checking and analysis and processing unit input is exported to the debug command message processing unit, after receiving the response message that the debug command message processing unit returns, whether the control command of judging the input of debug command checking and analysis and processing unit is the single step order, if then the behavior description that service end address and debug command message processing unit are returned sends to the debug source code start unit; Otherwise the response message that the debug command message processing unit is returned returns to debug command checking and analysis and processing unit;
The debug source code start unit, be used for describing according to service end address that is received from the control command processing unit and corelation behaviour, start debug source code, and carry out context swap by debug command message processing unit and service end, dynamic loading and the order of execution debug source code are debugged the source code of this service behavior;
The debug command message processing unit, be used for to be received from inquiry and revise the inquiry of command process unit and the context swap command request message revising order, be received from the control command of control command processing unit and be received from the debug source code start unit sends to service end, and the response message that will be received from service end returns to inquiry respectively and revises command process unit, control command processing unit and debug source code start unit.
2. emitter for service debug command according to claim 1 is characterized in that, described inquiry and modification order, control command and HELP command are service debug command,
Described debug command message processing unit sends service debug command to service end and comprises two kinds of mode of operations: synchronous and asynchronous working pattern;
The emission process of described synchronous working pattern, the debug command message processing unit was not handled other service debug command request before receiving the response message that service end returns;
The emission process of described asynchronous working pattern, the debug command message processing unit need not waited for the response message that service end is returned, and can handle next service debug command request.
3. emitter for service debug command according to claim 2, it is characterized in that, the structure of described service debug command comprises: system debug address of service sda, call operation title opn, debugged service call sign dsid and expression formula definition expr, can be expressed as CF=(sda, opn, dsid, expr) four parts; Wherein,
System debug address of service sda is used to represent the service call address of standard, is a service debugging enironment attribute, and the service debug command emission process can be by the option acquisition system debug address of service of appointment;
Call operation title opn is consistent with the service debug command name;
Debugged service call sign dsid is used to represent controlled service end services request, is that the overall situation is unique, and the service debug command emission process can obtain debugged service call sign by option;
Expression formula definition expr is used for being provided with, calling, inquiring about or revise the respective element of serving debugging enironment and remote service context.
4. emitter for service debug command according to claim 3 is characterized in that, described expression formula occurs at the capable rear portion of input command, and the null representation formula represents that this service debug command does not need to import expression formula;
The element decollator of expression formula inside is used to distinguish multistage service context element, appears at the left end of binary expression formula;
Equal sign is used to express an equation, the contextual element of equation left end specified services, and the equation right-hand member is an element value to be revised.
5. emitter for service debug command according to claim 1, it is characterized in that, described debug source code start unit is further used for and need carrying out the service behavior of moving under the situation of debug source code, describe according to service end address that is received from the control command processing unit and corelation behaviour, read outside debug source code configuration file; And, obtain current service end service context message by the service context request, and re-construct the service behavior that service context and loading are moved in this locality according to corresponding configuration startup local source code debugging environment; Under this debugging enironment, carry out the service behavior of being moved into; Use corresponding source code debugger that this service behavior is carried out debug source code; When the service behavior of being moved into is carried out end, send this service context message to service end, and return the service debug process.
6. the method that service debug command is handled is characterized in that, this method comprises:
Step S1: the service debug command that emitter for service debug command reads external unit input is capable, and whether service for checking credentials debug command row is the service debug command request, if, execution in step S2 then; Otherwise, jump to step S1;
Step S2: whether emitter for service debug command service for checking credentials debug command row is the HELP command request, if, execution in step S3 then; Otherwise, execution in step S4;
Step S3: emitter for service debug command jumps to step S11 after calling and carry out and helping processing unit;
Step S4: emitter for service debug command judge service debug command capable whether be asynchronous service debug command request, if, execution in step S5 then; Otherwise, execution in step S6;
Step S5: emitter for service debug command is created asynchronous request thread, and main thread is back to step S1;
Step S6: emitter for service debug command debug command message processing unit calls control command/inquiry and revises command process, carry out the analysis of debug command row, system debug address of service and call operation name thereof are set, the sign of debugged service call and expression formula thereof;
Step S7: emitter for service debug command is according to the system debug address of service, and definite service debug command request message processing procedure of being called sends command request message to server end;
Step S8: emitter for service debug command receives the debug command response message that service end is returned;
Step S9: emitter for service debug command judges whether need to start debug source code, if desired, and execution in step S10 then; Otherwise, execution in step S11;
Step S10: emitter for service debug command reads the exterior arrangement file and starts configurable debug source code environment, obtain the current service context from service end, load and carry out the behavior of moving into, when debug source code finishes, send service context message to service end, and withdraw from the debug source code environment;
Step S11: handle and the demonstration return results.
7. the method that service debug command is handled according to claim 6, it is characterized in that, the service debug command behavior of the input of external unit described in the step S1: from the debugging control platform, or the service debug command of the input of the control window under the Integrated Development Environment is capable.
CNB200610127865XA 2006-09-22 2006-09-22 Emitter for service debug command, and processing method Active CN100419711C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200610127865XA CN100419711C (en) 2006-09-22 2006-09-22 Emitter for service debug command, and processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200610127865XA CN100419711C (en) 2006-09-22 2006-09-22 Emitter for service debug command, and processing method

Publications (2)

Publication Number Publication Date
CN1916873A CN1916873A (en) 2007-02-21
CN100419711C true CN100419711C (en) 2008-09-17

Family

ID=37737873

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200610127865XA Active CN100419711C (en) 2006-09-22 2006-09-22 Emitter for service debug command, and processing method

Country Status (1)

Country Link
CN (1) CN100419711C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145953B (en) * 2007-06-13 2014-08-13 中兴通讯股份有限公司 Method and system for dynamic debugging of network device management software
CN112073356B (en) * 2019-06-10 2022-07-19 海信视像科技股份有限公司 Data transmission method and display device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071243A1 (en) * 2003-09-30 2005-03-31 Anandhi Somasekaran Non-disruptive business process debugging and analysis
US20050172168A1 (en) * 2004-01-21 2005-08-04 Frank Kilian Remote debugging
US20060129988A1 (en) * 2004-12-01 2006-06-15 Microsoft Corporation Distributed debugger environment
US20060129885A1 (en) * 2004-11-30 2006-06-15 Erol Bozak Propagating debug information in a web services environment
US20060195894A1 (en) * 2005-02-25 2006-08-31 Microsoft Corporation Windows remote debugger service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071243A1 (en) * 2003-09-30 2005-03-31 Anandhi Somasekaran Non-disruptive business process debugging and analysis
US20050172168A1 (en) * 2004-01-21 2005-08-04 Frank Kilian Remote debugging
US20060129885A1 (en) * 2004-11-30 2006-06-15 Erol Bozak Propagating debug information in a web services environment
US20060129988A1 (en) * 2004-12-01 2006-06-15 Microsoft Corporation Distributed debugger environment
US20060195894A1 (en) * 2005-02-25 2006-08-31 Microsoft Corporation Windows remote debugger service

Also Published As

Publication number Publication date
CN1916873A (en) 2007-02-21

Similar Documents

Publication Publication Date Title
US5301270A (en) Computer-assisted software engineering system for cooperative processing environments
US6625804B1 (en) Unified event programming model
EP2169547B1 (en) Compilation model for programmable logic controllers (PLC).
US7954084B2 (en) Software for generating a computer application code and software description language
US20030200533A1 (en) Method and apparatus for creating software objects
CN101645011A (en) Integration scheme and platform between heterogeneous workgroup collaborative design system and PLM system
CN101553769A (en) Method and system for tracking and monitoring computer applications
CN103336705A (en) Automatic transcoding and semantic adaptation between scripting and workflow systems
CN101393528B (en) Method and system for determining instance object conversion order in dynamic update of software
CN103678135A (en) System and method for achieving cross-process and cross-thread debugging in large-data environment
CN101025698A (en) Apparatus for forcibly terminating thread blocked on input/output operation and method for the same
CN101458633B (en) Method for accessing host program by script program, and system and apparatus thereof
Oberleitner et al. The Vienna Component Framework enabling composition across component models
CN100419711C (en) Emitter for service debug command, and processing method
US8434071B2 (en) Method for translating a graphical workflow in a textual description
Davies et al. Concurrency and refinement in the unified modeling language
Griss et al. Using UML state machine models for more precise and flexible JADE agent behaviors
CN114745257B (en) Data frame debugging method, device, equipment and storage medium
CN100468347C (en) Process and device for transferring parameter between application module and COM component
Stankovic et al. Visual programming for message-passing systems
CN1932760B (en) System and method for execution of application program
Guerrouat et al. A component-based specification approach for embedded systems using FDTs
CN100512275C (en) Service debugging device and method faced to service system structure
JP2001075817A (en) Method for automatically generating specification
Ziaei et al. SynchNet: a petri net based coordination language for distributed objects

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
ASS Succession or assignment of patent right

Owner name: BEIJING STAR-NET COMMUNICATIONS INFORMATION TECHNO

Free format text: FORMER OWNER: INSTITUTE OF COMPUTING TECHNOLOGY, CHINESE ACADEMY OF SCIENCES

Effective date: 20121204

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100080 HAIDIAN, BEIJING TO: 100020 CHAOYANG, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20121204

Address after: 100020, Chaoyang District, Beijing, on the first Street No. 6, facing outside, block SOHOA, 2105

Patentee after: Beijing star Netcom Information Technology Co., Ltd.

Address before: 100080 Haidian District, Zhongguancun Academy of Sciences, South Road, No. 6, No.

Patentee before: Institute of Computing Technology, Chinese Academy of Sciences

ASS Succession or assignment of patent right

Owner name: HANGTIAN INFORMATION CO LTD

Free format text: FORMER OWNER: BEIJING STAR-NET COMMUNICATIONS INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20121226

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100020 CHAOYANG, BEIJING TO: 100195 HAIDIAN, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20121226

Address after: 100195 Haidian District apricot stone road, a No. 1, Beijing

Patentee after: Hangtian Information Co., Ltd.

Address before: 100020, Chaoyang District, Beijing, on the first Street No. 6, facing outside, block SOHOA, 2105

Patentee before: Beijing star Netcom Information Technology Co., Ltd.