CN108073504A - For debugging the method, apparatus of distributed system and debugging system - Google Patents
For debugging the method, apparatus of distributed system and debugging system Download PDFInfo
- Publication number
- CN108073504A CN108073504A CN201611012291.1A CN201611012291A CN108073504A CN 108073504 A CN108073504 A CN 108073504A CN 201611012291 A CN201611012291 A CN 201611012291A CN 108073504 A CN108073504 A CN 108073504A
- Authority
- CN
- China
- Prior art keywords
- debugging
- message
- application example
- request
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
Abstract
This application involves for debugging the method, apparatus of distributed system and debugging system, method includes:Debugging request is received, the debugging request includes the location information and Debugging message that position the application example of application system, and the Debugging message includes at least debugging code section;The Debugging message is sent to the corresponding application example of the location information;It receives the application example and performs the debugging result that the Debugging message returns.The technical solution of the application can reduce development cost, and avoid and the function of original code is had an impact by being managed concentratedly to the debugging of distributed system.
Description
Technical field
This application involves system debug technical field, in particular to for debugging the method, apparatus of distributed system
And debugging system.
Background technology
With flourishing for network, large-scale distributed system is modern software system general scheme, and the 7*24 of system
The system run all right of hour is the target that many internet systems are pursued again, so, general internet system can all use
Multiple systems environment ensures the stability of system.
In correlation technique, internet system is generally all divided into test environment, production environment etc., and production environment is user's visit
The environment asked, so, production environment is that developer arbitrarily cannot change or change, moreover, many companies all can strictly control
Flow of reaching the standard grade is made, ensures that the system service of production environment is stablized.However, production system is still present with some abnormal conditions, but
That can not be reappeared in test environment, such situation developer is difficult to pinpoint the problems, and increases abnormal processing time, and to
The access at family impacts.So commissioning staff can be passed to by information such as page online input system debugging code, parameters
WEB application example carrys out Dynamic Execution debugging code, and whether the running environment for examining WEB application example is normal.
Fig. 1 shows a kind of debugging instance graph of the prior art, wherein, A passes through browser page typing for commissioning staff
Debugging message;B is submission Debugging message;C performs for debugging code;D returns for debugging result.As shown in Figure 1, commissioning staff is led to
Browser page typing Debugging message (debugging code, parameter etc.) is crossed, submits tuning parameter afterwards, WEB application example is in local
Debugging code is performed, and normal outcome or abnormal results are returned into the commissioning staff, is shown in the page of browser, institute
It states commissioning staff and judges whether the running environment of system is normal according to debugging result.
But such as the Application of Interface and task application in figure, without providing page resource, no normal direction WEB in application code
Using like that can by browser input tuning parameter come debugging system.So if it is desired that with debugging function, it is necessary to every
A application will add the information such as the debugging page, increase development amount, and the maintenances such as debugging function code upgrade also can be very
Trouble.
Lack in correlation technique to the straightforward procedure of debugging function access, it is necessary to additionally increase the exploitation of access debugging function
Cost, and can be because not providing page resource, it is necessary to support the loading of page resource and influence the code function applied originally.
The content of the invention
Disclosure is used for the method for debugging distributed system, by being managed concentratedly to the debugging of distributed system, with
Reduce development cost.
Other characteristics and advantage of the present invention will be by the following detailed description apparent from or partially by the present invention
Practice and acquistion.
According to an aspect of the present invention, a kind of method for debugging distributed system is provided, including:
Receive debugging request, the debugging request include for position application system application example location information, with
And Debugging message, the Debugging message include at least debugging code section;
The Debugging message is sent to the corresponding application example of the location information;
It receives the application example and performs the debugging result that the Debugging message returns, the debugging result is returned into institute
State commissioning staff.
According to some embodiments, receiving debugging request includes:Debugging request is received by browser page;
It receives after the application example performs the debugging result that the Debugging message returns and further includes:The debugging is tied
Fruit returns to the browser page.
According to some embodiments, the location information includes the IP address and port numbers of the application example.According to one
A little embodiments, the Debugging message further include tuning parameter.
According to some embodiments, the tuning parameter includes being related to parameter class.path, the corresponding key assignments of parameter class, Yi Jican
Several classes of corresponding JSON strings.
According to some embodiments, also wrapped before the Debugging message is sent to the corresponding application example of the location information
It includes, verifies the debugging request.
According to some embodiments, the verification debugging request includes:
Verify whether the commissioning staff has the debugging permission of the application system;And
Verify whether the location information belongs to the application system.
According to some embodiments, before the debugging request is verified, the IP of the application example of the application system is recorded
Address list and record the application system commissioning staff user's list of file names;
Verify whether the commissioning staff has the debugging permission of the application system according to the IP address list;
Whether the application system is belonged to according to location information described in the user name list verification.
According to another aspect of the present invention, a kind of method for debugging distributed system is provided, including:
The corresponding debugging function code bag of integrated debugging system, when startup, load the debugging function code bag and start prison
Port is listened, to monitor the Debugging message that the debugging system is sent, the Debugging message includes at least debugging code section;
When listening to debugging request, the Debugging message is performed by the debugging function code bag;
Debugging result after execution is returned into the debugging system.
According to some embodiments, the Debugging message further includes tuning parameter.
According to some embodiments, the tuning parameter includes being related to parameter class.path, the corresponding key assignments of parameter class, Yi Jican
Several classes of corresponding JSON strings.
According to another aspect of the present invention, a kind of device for being used to debug distributed system is provided, including:
Debugging request receiving unit, for receiving debugging request, the debugging request includes positioning application system
The location information and Debugging message of application example, the Debugging message include at least debugging code section;
The Debugging message is sent to the corresponding application example of the location information by Debugging message transmitting element;
Debugging result returning unit, for receiving the debugging result that the application example performs the Debugging message and returns.
According to some embodiments, the debugging request receiving unit is additionally operable to, and debugging request is received by browser page;
The debugging result returning unit is additionally operable to, and is receiving the tune of the application example execution Debugging message return
After test result, the debugging result is returned into the browser page.
According to some embodiments, the location information includes the IP address and port numbers of the application example.
According to some embodiments, the Debugging message further includes tuning parameter.
According to some embodiments, the tuning parameter includes being related to parameter class.path, the corresponding key assignments of parameter class, Yi Jican
Several classes of corresponding JSON strings.
According to some embodiments, described device further includes authentication unit, for the Debugging message is sent to it is described
Before the corresponding application example of location information, the debugging request is verified.
According to some embodiments, the authentication unit is additionally operable to:
Verify whether the commissioning staff has the debugging permission of the application system;And
Verify whether the location information belongs to the application system.
According to some embodiments, the authentication unit is additionally operable to:
Before the debugging request is verified, the IP address list of the application example of the application system, Yi Jiji are recorded
Record user's list of file names of the commissioning staff of the application system;
Verify whether the commissioning staff has the debugging permission of the application system according to the IP address list;
Whether the application system is belonged to according to location information described in the user name list verification.
According to another aspect of the present invention, a kind of device for being used to debug distributed system is provided, including:
System access and monitoring unit, for the corresponding debugging function code bag of integrated debugging system, when startup, loads institute
It states debugging function code bag and starts listening port, to monitor the Debugging message that the debugging system is sent, the Debugging message
Including at least debugging code section;
Execution unit is debugged, for when listening to debugging request, the tune to be performed by the debugging function code bag
Try information;
As a result returning unit, for the debugging result after performing to be returned to the debugging system.
According to some embodiments, the Debugging message further includes tuning parameter.
According to some embodiments, the tuning parameter includes being related to parameter class.path, the corresponding key assignments of parameter class, Yi Jican
Several classes of corresponding JSON strings.
According to another aspect of the present invention, a kind of debugging system is provided, including:Processor;Memory stores to handle
The instruction of the following operation of device control:
Receive debugging request, the debugging request include for position application system application example location information, with
And Debugging message, the Debugging message include at least debugging code section;
The Debugging message is sent to the corresponding application example of the location information;
It receives the application example and performs the debugging result that the Debugging message returns.
The technical solution that embodiments herein provides can include the following benefits:
The technical solution of the application can reduce development cost, and keep away by being managed concentratedly to the debugging of distributed system
Exempt to have an impact the function of original code.It should be appreciated that above general description and following detailed description is only shown
Example property, the present invention can not be limited.
Description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other feature of the invention and advantage will become more
Add apparent.
Fig. 1 shows a kind of debugging instance graph of the prior art;
Fig. 2 shows the method according to an embodiment of the invention for debugging distributed system;
Fig. 3 shows debugging page instance figure according to an embodiment of the invention;
Fig. 4 shows the method according to another embodiment of the present invention for debugging distributed system;
Fig. 5 shows debugging flow instance figure according to another embodiment of the present invention;
Fig. 6 shows the method according to an embodiment of the invention for debugging distributed system;
Fig. 7 shows debugging system access instance graph according to an embodiment of the invention;
Fig. 8 shows the block diagram of the device according to an embodiment of the invention for being used to debug distributed system
Fig. 9 shows the block diagram of the device according to another embodiment of the present invention for being used to debug distributed system;
Figure 10 shows the block diagram of the device according to an embodiment of the invention for being used to debug distributed system;
Figure 11 shows debugging system according to an embodiment of the invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms
It applies, and is not understood as limited to embodiment set forth herein;On the contrary, these embodiments are provided so that the present invention will be comprehensively and complete
It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical reference numeral represents in figure
Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to fully understand the embodiment of the present invention so as to provide.However,
It will be appreciated by persons skilled in the art that technical scheme can be put into practice without one or more in specific detail,
Or other methods, constituent element, device, step etc. may be employed.In other cases, side known in being not shown in detail or describe
Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Attached block diagram shown in figure is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to it realizes these functional entitys using software form or is realized in one or more hardware modules or integrated circuit
These functional entitys realize these functional entitys in heterogeneous networks and/or processor device and/or microcontroller device.
Attached flow chart shown in figure is merely illustrative, it is not necessary to including all contents and operation/step,
It is not required to perform by described order.For example, some operation/steps can also decompose, and some operation/steps can close
And or partly merging, therefore the order actually performed is possible to be changed according to actual conditions.
Fig. 2 shows the method according to an embodiment of the invention for debugging distributed system, and the present embodiment is applicable
In to the application example of the application system in distributed system, (such as WEB application example, task application example and interface should
With example etc.) situation about being debugged, executive agent is debugging system, as shown in Fig. 2, described in the present embodiment for debugging point
The method of cloth system includes:
In step S210, debugging request is received, the debugging request includes positioning the application example of application system
Location information and Debugging message, the Debugging message include at least debugging code section.
It should be noted that application system described in the present embodiment is the quilt of distributed application system, i.e. the present embodiment
Debugging system, the application system include at least one application example, in order to when an application example breaks down,
Other application example can complete identical function in distributed system.The present embodiment is substantially using application example as debugging pair
As.
Debugging system receives debugging request, and concrete mode in the present embodiment and is not construed as limiting, such as passes through browser
The page receives debugging request.According to this mode, then receive the application example and perform the debugging that the Debugging message returns
As a result after, the debugging result can be returned to the browser page.
It should be noted that in the present embodiment, the debugging system can be a distributed system in itself, receive debugging
Tuning parameter that personnel are submitted by the page, debugging request, and these information that commissioning staff is submitted are sent to commissioning staff
The IP address specified adds the corresponding application system example of port numbers (can be any type of system example, include but not limited to
WEB application example, application instances and task application example), debugging function code bag SDK bags is transferred to perform and specifically should
Flow is debugged with system example.
Those of ordinary skill in the art it should be clear that, the Debugging message can also wrap in addition to including code segment
Tuning parameter is included, for example, tuning parameter may include involved parameter class.path, the corresponding key assignments of parameter class and parameter class
Corresponding JSON strings etc..
Fig. 3 shows debugging page instance figure according to an embodiment of the invention, as shown in figure 3, including application in the page
Systematic selection, current commissioning staff can select oneself to have examined the debugging system list passed through, and application address is according to choosing
The debugging system selected, to select the location information of corresponding application example, i.e. IP address and port numbers;Parameter list, wherein relating to
And the corresponding JSON strings of parameter class.path, the corresponding key value Key of parameter class, parameter class, the result of JSON string antitone sequences is exactly one
The corresponding object of a class is exactly a com.patent.Bean object that is, after JSON1 antitone sequences, the built-in attribute value of the Bean
For [name=myname1, age=24, address=" Beijing Daxing Yi Zhuang "], two objects are included in parameter list;IP
Location and port numbers are the parameters of debugging system positioning application example, for positioning specifically debugged application system example.Example
Such as, the example that Fig. 3 median surfaces are presented is used for through the IP address of from debugging system to tested test system serial_log
10.187.95.187, the application example that port numbers are 30001 sends parameter and code segment in parameter list, makes the application
Example performs the code segment, which receives the implementing result of the application example, and result is gone out by the interface display
Come.
It should be noted that the acquisition of key data, is not the key that define before as serviceImpl is identified
Word then goes by the key in context Context to obtain the corresponding value values of the Key, after getting the value values, triggering
Corresponding method save (symbologies function call) below.This serviceImpl is that operation system oneself defines,
Debugging system is that business development personnel use, some key in the code snippet of their data, in their business systems in itself
It is existing in system example, these are all that business development personnel know oneself.
The construction of context Context, operation system load the program bag of debugging system, and the function that the inside has been defined connects
Mouthful, the good function interface of operation system exemplary configuration misses mouth cruelly by IP address and port numbers, the parsing of code segment performs all
It is the code execution in this program bag.Context Context can be matched somebody with somebody in operation system exemplary configuration function interface
It puts, while operation system has relied on spring frames now, the bean that debugging package can be also obtained in spring is (right
As) object in container, i.e., corresponding object is inquired about by serviceImpl.
In step S220, the Debugging message is sent to the corresponding application example of the location information.
It is that call relation, example are judged by the location information in the present embodiment, between debugging system and application system
Such as, call relation is judged by the IP address and port numbers of application example between debugging system and application system.It increases income frame
Frame such as Mina, Netty etc. can serve as the realization of interactive means.
In step S230, receive the application example and perform the debugging result that the Debugging message returns.
In the present embodiment, the application example of debugging system is each accessed, that is, asks the application of the application system of debugging, including
WEB application, Application of Interface, task application are required for the debugging function code bag (debugging SDK bags) of integrated debugging system, and
And when application starts, open listening port waits debugging request, it is possible to the internal operating environment of this application example is debugged,
And debugging code is performed, return to debugging result.
The technical solution of the present embodiment can facilitate commissioning staff quickly to access debugging system, the system debugged to needs
Debugging function is opened, removes the debugging page of exploitation again without oneself, reduces the workload of commissioning staff, meanwhile, debugging function
Upgrading can also be by unified maintenance management.
Fig. 4 shows the method according to another embodiment of the present invention for debugging distributed system, as shown in figure 4, this
Include described in embodiment for debugging the method for distributed system:
In step S410, debugging request is received, the debugging request includes positioning the application example of application system
Location information and Debugging message, the Debugging message include at least debugging code section.
In the step s 420, the debugging request is verified.
In step S430, the Debugging message is sent to the corresponding application example of the location information.
In step S440, receive the application example and perform the debugging result that the Debugging message returns.
It should be noted that the present embodiment step S410, S430 and S440 are identical with a upper embodiment, the present embodiment
Mainly on the basis of a upper embodiment, by the Debugging message be sent to the corresponding application example of the location information it
Before, including verify the debugging request the step of.Such as verify whether the commissioning staff has the debugging of the application system
Whether permission and the verification location information belong to described application system etc..It for example, can be by verifying the debugging request
Before, record the IP address list of the application example of the application system and record the commissioning staff's of the application system
User's list of file names verifies whether the commissioning staff has the debugging permission of the application system according to the IP address list,
Whether the application system is belonged to according to location information described in the user name list verification.
Fig. 5 shows debugging flow instance figure according to another embodiment of the present invention, wherein, A passes through clear for commissioning staff
Look at device page typing Debugging message;B debugs energy number to submit;C is information checking;D is debugging request;E is debugging result, and F is
Debugging result returns.Those skilled in the art can understand an embodiment of the present embodiment by instance graph as shown in Figure 5.
The first step, commissioning staff input tuning parameter by browser page, including debugged using IP, port, debugging
Parameter, code segment;
Second step, commissioning staff submit debugging request, and debugging system receives the debugging request that commissioning staff submits, and verification should
Whether system opens the commissioning staff debugging permission, verifies whether the IP belongs to the system;
The debugging request is transmitted to IP, the corresponding application system example in port by the 3rd step, debugging system;
4th step after IP, the corresponding application system example in port receive debugging request, performs the debugging code in request
Section, debugging system is returned to by debugging code normal outcome, abnormal results;
Debugging result after debugging system receives debugging result, is returned to the browser page of commissioning staff by the 5th step,
Commissioning staff judges whether the running environment of back-end services is normal according to page debugging result.
Fig. 6 shows the method according to an embodiment of the invention for debugging distributed system, the execution of the present embodiment
The application example for the application system that main body is debugged for request, the present embodiment are applicable to application example access debugging system and perform tune
Debugging code that examination personnel are inputted by debugging system and the feelings that debugging result is returned to commissioning staff by debugging system
Condition, the executive agent of the present embodiment are application example, as shown in fig. 6, described in the present embodiment for debugging distributed system
Method includes:
In step S610, the corresponding debugging function code bag of integrated debugging system, when startup, loads the debugging function
Code bag simultaneously starts listening port, and to monitor the Debugging message that the debugging system is sent, the Debugging message, which includes at least, to be adjusted
Try code segment.
In step S620, when listening to debugging request, the debugging is performed by the debugging function code bag and is believed
Breath.
In step S630, the debugging result after execution is returned into the debugging system.
Before the debugging request is verified, can also the pre-recorded application system application example IP address row
Table and record the application system commissioning staff user's list of file names, the debugging is verified according to the IP address list
Whether whether personnel have the debugging permission of the application system, belonged to according to location information described in the user name list verification
The application system.
Fig. 7 shows debugging system access instance graph according to an embodiment of the invention, wherein, A passes through for commissioning staff
PC PC is to debugging system typing debugging system information;B pulls application system letter for debugging system from prestored information storehouse
Breath, director's information, application example IP address list including application system are saved in database;C gives for debugging system should
Examination & approval mail is sent with system principal.As shown in Figure 7, the application example access debugging system can be real by following steps
It is existing:
Debugged system information is thought in the first step, commissioning staff's typing, submits typing request;
Second step after debugging system receives typing request, goes to system administration center to obtain the corresponding information of the system, wraps
Include system principal, IP address list etc.;
3rd step, debugging system send examination & approval mail to system principal, system principal are notified to examine;
4th step, after system principal's examination & approval pass through, commissioning staff could debug the corresponding IP address of the system.
Fig. 8 shows the block diagram of the device according to an embodiment of the invention for being used to debug distributed system, the present embodiment
Described is configured at for debugging the device of distributed system in the server of debugging system, as shown in figure 8, described in the present embodiment
For debug distributed system device include debugging request receiving unit 810, Debugging message transmitting element 820 and adjust
Test result returning unit 830.
The debugging request receiving unit 810 is configured to receive debugging request, and the debugging request is included for fixed
The location information and Debugging message of the application example of position application system, the Debugging message include at least debugging code section
The Debugging message transmitting element 820 is configured as, and it is corresponding that the Debugging message is sent to the location information
Application example.
The debugging result returning unit 830, which is configured to receive the application example and performs the Debugging message, to be returned
The debugging result returned.
According to some embodiments, the debugging request receiving unit 810 is additionally operable to, and receiving debugging by browser page please
It asks;The debugging result returning unit 830 is additionally operable to, and is received the application example and is performed the debugging knot that the Debugging message returns
After fruit, the debugging result is returned into the browser page.
According to some embodiments, the location information includes the IP address and port numbers of the application example.
According to some embodiments, the Debugging message further includes tuning parameter.
According to some embodiments, the tuning parameter includes being related to parameter class.path, the corresponding key assignments of parameter class, Yi Jican
Several classes of corresponding JSON strings.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
It is provided in this embodiment to can perform the embodiment of the present invention one and embodiment two for debugging the device of distributed system
There is provided for the method for debugging distributed system, possess the corresponding function module of execution method and advantageous effect.
Fig. 9 shows the block diagram of the device according to another embodiment of the present invention for being used to debug distributed system, such as Fig. 9 institutes
Show, include described in the present embodiment for debugging the device of distributed system:Debugging request receiving unit 910, authentication unit
920th, Debugging message transmitting element 930 and debugging result returning unit 940.
The debugging request receiving unit 910 is configured to receive debugging request, and the debugging request is included for fixed
The location information and Debugging message of the application example of position application system, the Debugging message include at least debugging code section.
The authentication unit 920 be configured to by the Debugging message be sent to the location information it is corresponding should
Before example, the debugging request is verified.
The Debugging message transmitting element 930 is configured as, and it is corresponding that the Debugging message is sent to the location information
Application example.
The debugging result returning unit 940, which is configured to receive the application example and performs the Debugging message, to be returned
The debugging result returned.
According to some embodiments, the debugging request receiving unit 910 is additionally operable to, and receiving debugging by browser page please
It asks;The debugging result returning unit 940 is additionally operable to, and is received the application example and is performed the debugging knot that the Debugging message returns
After fruit, the debugging result is returned into the browser page.
According to some embodiments, the location information includes the IP address and port numbers of the application example.
According to some embodiments, the Debugging message further includes tuning parameter.
According to some embodiments, the tuning parameter includes being related to parameter class.path, the corresponding key assignments of parameter class, Yi Jican
Several classes of corresponding JSON strings.
According to some embodiments, the authentication unit 920 is additionally operable to:
Verify whether the commissioning staff has the debugging permission of the application system;And
Verify whether the location information belongs to the application system.
According to some embodiments, the authentication unit 920 is additionally operable to:
Before the debugging request is verified, the IP address list of the application example of the application system, Yi Jiji are recorded
Record user's list of file names of the commissioning staff of the application system;
Verify whether the commissioning staff has the debugging permission of the application system according to the IP address list;
Whether the application system is belonged to according to location information described in the user name list verification.
Provided in this embodiment can perform for the device of debugging distributed system is previously used for debugging distributed system
Embodiment of the method provided for the method for debugging distributed system, possess the corresponding function module of execution method and beneficial to effect
Fruit.
Figure 10 shows the block diagram of the device according to another embodiment of the present invention for being used to debug distributed system, the device
It is configured in the server of each application example of the application system of request debugging, as shown in Figure 10, is used for described in the present embodiment
The device of debugging distributed system includes:System access is returned with monitoring unit 1010, debugging execution unit 1020 and result
Unit 1030.
The system access and monitoring unit 1010 are configured to the corresponding debugging function code of integrated debugging system
Bag, when startup, load the debugging function code bag and start listening port, and the debugging sent with monitoring the debugging system is believed
Breath, the Debugging message include at least debugging code section;
The debugging execution unit 1020 is configured to when listening to debugging request, passes through the debugging function generation
Code bag performs the Debugging message;
The result returning unit 1030 is configured to the debugging result after execution returning to the debugging system.
According to some embodiments, the Debugging message further includes tuning parameter.
According to some embodiments, the tuning parameter includes being related to parameter class.path, the corresponding key assignments of parameter class, Yi Jican
Several classes of corresponding JSON strings.
Figure 11 shows debugging system according to an embodiment of the invention, and as shown in figure 11, debugging system 1100 may include
Processor 1110, memory 1120, transmitter 1130 and receiver 1140.
Memory 1120 can store the instruction for the processing of 1110 control operation of processor.Memory 1120 may include volatile
Property or nonvolatile memory, such as static RAM (SRAM), electrically erasable programmable read-only memory
(EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM)
Deng the present invention is not limited in this respect.
Processor 1110 can call the instruction stored in memory 1120 to control relevant operation.According to an embodiment, storage
Device 1120 stores controls the instruction operated below for processor 1110:
Receive debugging request, the debugging request include for position application system application example location information, with
And Debugging message, the Debugging message include at least debugging code section;
The Debugging message is sent to the corresponding application example of the location information;
It receives the application example and performs the debugging result that the Debugging message returns.
It can be readily appreciated that memory 1120, which can also store, controls other behaviour according to embodiments of the present invention for processor 1110
The instruction of work, which is not described herein again.
The also controllable transmitter 1130 of processor 1110 and receiver 1140 send and receive signals.
By above detailed description, those skilled in the art it can be readily appreciated that according to the system in the embodiment of the present invention and
Method has one or more of the following advantages.
According to an embodiment of the invention, managed concentratedly using debugging system, debugging services are provided;Using open SDK,
Facilitate quickly accessing, promoting code revision workload minimum for application system.
According to some embodiments, the present invention also provides a kind of non-transitorycomputer readable storage medium, such as including referring to
The memory of order, above-metioned instruction can be performed to complete the above method by the processor of device.For example, non-transitory is computer-readable
Storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..When depositing
When instruction in storage media is performed by the processor of terminal so that terminal is able to carry out following methods:By the original in script module
Production-goods source name is transformed to Resources ID;Native applications module obtains corresponding Resources by Resources ID.
It will be understood by those skilled in the art that attached drawing is the schematic diagram of example embodiment, module or flow in attached drawing
Necessary to not necessarily implementing the present invention, therefore it cannot be used for limiting the scope of the invention.
It will be appreciated by those skilled in the art that above-mentioned each module can be distributed according to the description of embodiment in device, also may be used
To carry out respective change uniquely different from one or more devices of the present embodiment.The module of above-described embodiment can be merged into
One module, can also be further split into multiple submodule.
Exemplary embodiment of the present invention is particularly shown and described above.It is it should be understood that public the invention is not restricted to institute
The embodiment opened, on the contrary, it is intended to cover comprising various modifications in the spirit and scope of the appended claims and wait
Effect arrangement.
Claims (15)
- A kind of 1. method for debugging distributed system, which is characterized in that including:Debugging request is received, the debugging request includes the location information for positioning the application example of application system and adjusts Information is tried, the Debugging message includes at least debugging code section;The Debugging message is sent to the corresponding application example of the location information;It receives the application example and performs the debugging result that the Debugging message returns.
- 2. the method as described in claim 1, it is characterised in that:Receiving debugging request includes:Debugging request is received by browser page;It receives after the application example performs the debugging result that the Debugging message returns and further includes:The debugging result is returned Back to the browser page.
- 3. the method as described in claim 1, which is characterized in that the IP address of the location information including the application example with And port numbers.
- 4. the method as described in claim 1, which is characterized in that the Debugging message further includes tuning parameter.
- 5. method as claimed in claim 4, which is characterized in that the tuning parameter includes being related to parameter class.path, parameter class Corresponding key assignments and the corresponding JSON strings of parameter class.
- 6. the method as described in claim 1, which is characterized in that it is corresponding that the Debugging message is sent to the location information It is further included before application example, verifies the debugging request.
- 7. method as claimed in claim 6, which is characterized in that the verification debugging request includes:Whether verifying and debugging personnel have the debugging permission of the application system;AndVerify whether the location information belongs to the application system.
- 8. the method for claim 7, which is characterized in that before the debugging request is verified, record the application system The IP address list of the application example of system and record the application system commissioning staff user's list of file names;Verify whether the commissioning staff has the debugging permission of the application system according to the IP address list;Whether the application system is belonged to according to location information described in the user name list verification.
- A kind of 9. method for debugging distributed system, which is characterized in that including:The corresponding debugging function code bag of integrated debugging system, when startup, which loads the debugging function code bag and starts, monitors end Mouthful, to monitor the Debugging message that the debugging system is sent, the Debugging message includes at least debugging code section;When listening to debugging request, the Debugging message is performed by the debugging function code bag;Debugging result after execution is returned into the debugging system.
- 10. method as claimed in claim 9, which is characterized in that the Debugging message further includes tuning parameter.
- 11. method as claimed in claim 10, which is characterized in that the tuning parameter includes being related to parameter class.path, parameter The corresponding key assignments of class and the corresponding JSON strings of parameter class.
- 12. a kind of device for being used to debug distributed system, which is characterized in that including:Debugging request receiving unit, for the debugging request of reception, the debugging request includes positioning answering for application system With the location information and Debugging message of example, the Debugging message includes at least debugging code section;The Debugging message is sent to the corresponding application example of the location information by Debugging message transmitting element;Debugging result returning unit, for receiving the debugging result that the application example performs the Debugging message and returns.
- 13. device as claimed in claim 12, it is characterised in that:The debugging request receiving unit is additionally operable to, and debugging request is received by browser page;The debugging result returning unit is additionally operable to, and is received the application example and is performed the debugging result that the Debugging message returns Afterwards, the debugging result is returned into the browser page.
- 14. a kind of device for being used to debug distributed system, which is characterized in that including:System access and monitoring unit, for the corresponding debugging function code bag of integrated debugging system, when startup, loads the tune Examination function code bag simultaneously starts listening port, and to monitor the Debugging message that the debugging system is sent, the Debugging message is at least Including debugging code section;Execution unit is debugged, for when listening to debugging request, performing the debugging by the debugging function code bag and believing Breath;As a result returning unit, for the debugging result after performing to be returned to the debugging system.
- 15. a kind of debugging system, which is characterized in that including:Processor;Memory, storage are following for processor control The instruction of operation:Debugging request is received, the debugging request includes the location information for positioning the application example of application system and adjusts Information is tried, the Debugging message includes at least debugging code section;The Debugging message is sent to the corresponding application example of the location information;It receives the application example and performs the debugging result that the Debugging message returns.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611012291.1A CN108073504A (en) | 2016-11-17 | 2016-11-17 | For debugging the method, apparatus of distributed system and debugging system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611012291.1A CN108073504A (en) | 2016-11-17 | 2016-11-17 | For debugging the method, apparatus of distributed system and debugging system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108073504A true CN108073504A (en) | 2018-05-25 |
Family
ID=62163514
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611012291.1A Pending CN108073504A (en) | 2016-11-17 | 2016-11-17 | For debugging the method, apparatus of distributed system and debugging system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108073504A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109150978A (en) * | 2018-07-24 | 2019-01-04 | 北京百度网讯科技有限公司 | The method and apparatus for debugging micro services |
CN110019145A (en) * | 2018-06-19 | 2019-07-16 | 杭州数澜科技有限公司 | A kind of multi-environment cascade method and apparatus of big data platform |
CN111475763A (en) * | 2020-04-15 | 2020-07-31 | 成都安易迅科技有限公司 | Webpage running method and device, storage medium and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020120918A1 (en) * | 2000-12-27 | 2002-08-29 | International Business Machines Corporation | Monitoring messages during execution of a message flow |
CN102521087A (en) * | 2011-11-02 | 2012-06-27 | 烽火通信科技股份有限公司 | System and method for remotely obtaining real-time graded debugging information of kernel module |
CN103916663A (en) * | 2014-03-25 | 2014-07-09 | 烽火通信科技股份有限公司 | Method for realizing remote debugging of IPTV set top box |
CN105338110A (en) * | 2015-11-23 | 2016-02-17 | 小米科技有限责任公司 | Remote debugging method, platform and server |
CN105808399A (en) * | 2016-03-14 | 2016-07-27 | 百度在线网络技术(北京)有限公司 | Method and device for remote debugging |
-
2016
- 2016-11-17 CN CN201611012291.1A patent/CN108073504A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020120918A1 (en) * | 2000-12-27 | 2002-08-29 | International Business Machines Corporation | Monitoring messages during execution of a message flow |
CN102521087A (en) * | 2011-11-02 | 2012-06-27 | 烽火通信科技股份有限公司 | System and method for remotely obtaining real-time graded debugging information of kernel module |
CN103916663A (en) * | 2014-03-25 | 2014-07-09 | 烽火通信科技股份有限公司 | Method for realizing remote debugging of IPTV set top box |
CN105338110A (en) * | 2015-11-23 | 2016-02-17 | 小米科技有限责任公司 | Remote debugging method, platform and server |
CN105808399A (en) * | 2016-03-14 | 2016-07-27 | 百度在线网络技术(北京)有限公司 | Method and device for remote debugging |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110019145A (en) * | 2018-06-19 | 2019-07-16 | 杭州数澜科技有限公司 | A kind of multi-environment cascade method and apparatus of big data platform |
CN110019145B (en) * | 2018-06-19 | 2021-09-14 | 杭州数澜科技有限公司 | Multi-environment cascading method and device for big data platform |
CN109150978A (en) * | 2018-07-24 | 2019-01-04 | 北京百度网讯科技有限公司 | The method and apparatus for debugging micro services |
CN109150978B (en) * | 2018-07-24 | 2022-05-10 | 北京百度网讯科技有限公司 | Method and device for debugging micro service |
CN111475763A (en) * | 2020-04-15 | 2020-07-31 | 成都安易迅科技有限公司 | Webpage running method and device, storage medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220004546A1 (en) | System for automatically discovering, enriching and remediating entities interacting in a computer network | |
US10733078B2 (en) | System and method of handling complex experiments in a distributed system | |
US10362051B2 (en) | Site independent methods for deriving contextually tailored security vulnerability corrections for hardening solution stacks | |
US9369482B2 (en) | Site independent system for deriving contextually tailored security vulnerability corrections for hardening solution stacks | |
US8832658B2 (en) | Verification framework for business objects | |
US6909994B2 (en) | Method, system and computer product for performing failure mode and effects analysis throughout the product life cycle | |
US20210248487A1 (en) | Framework management method and apparatus | |
US10296412B2 (en) | Processing run-time error messages and implementing security policies in web hosting | |
US20150213282A1 (en) | Online Privacy Management System with Enhanced Automatic Information Detection | |
US8239493B2 (en) | Automated server controlled client-side logging | |
CN104579830B (en) | service monitoring method and device | |
CN106209515B (en) | Access network equipment automatization test system | |
US10778526B2 (en) | Automated creation of test tenants for data center technical issue detection | |
US11362912B2 (en) | Support ticket platform for improving network infrastructures | |
US8824656B2 (en) | System and method for self-supporting applications | |
CN112994958B (en) | Network management system, method and device and electronic equipment | |
CN110851471A (en) | Distributed log data processing method, device and system | |
CN108073504A (en) | For debugging the method, apparatus of distributed system and debugging system | |
CN109542470A (en) | Configuration, installation method and configuration device | |
US20190354991A1 (en) | System and method for managing service requests | |
CN113569179A (en) | Subsystem access method and device based on unified website | |
RU2669172C2 (en) | Method and monitoring system of web-site consistency | |
CN112230938A (en) | Method and device for configuring rental products of industrial Internet | |
CN105162856B (en) | Network application integrated system and method | |
CN110061864A (en) | A kind of method and system of domain name configuration automatic Verification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180525 |