Software application remote debugging method based on cloud computing and device
Technical field
The present invention relates to technical field of the computer network, more particularly to the software application remote debugging method based on cloud computing
And device.
Technical background
Cloud computing has become the main flow direction of information-based industry, either personal or enterprise-level application, either
Mobile application or PC applications, service based on cloud are increasingly becoming mainstream, however, also being brought for the debugging of application very big
Challenge.
Before the debugging of software is the program input actual motion that will be worked out, by hand or the methods of compiler is surveyed
Examination, corrects the process of syntax error and logic error, and the tool and environment needed for the process under traditional mode very
Maturation, software developer largely skillfully use, and it's not true, and efficiency of research and development substantially reduces,.However in the pattern of cloud
Under, such environment almost becomes very difficult.Huge cloud computing platform system is substantially unrealistic in local disposition, soft
Part developer will must go to develop in software deployment to cloud platform.But the work of coding is not only considerably increased in this way
Amount, also increases work step.
How effectively and rapidly development environment is provided for the software development under cloud computing mode at low cost, gives us cloud
Cloud service operator, software debugging unit and personnel under the calculating epoch propose great challenge.
In view of drawbacks described above, creator of the present invention obtains the present invention finally by prolonged research and practice.
Invention content
The object of the present invention is to provide a kind of software application remote debugging method and device based on cloud computing, to
Solve above-mentioned technological deficiency.
To achieve the above object, the technical solution adopted by the present invention is, provides a kind of software application based on cloud computing
Remote debugging method, including:
Step S1:Log-on message is sent out, and the log-on message is judged, if correct send out service startup request
Information terminates if incorrect;
Step S2:Start solicited message to the service to judge, if it is determined that correctly providing security token and standard
It is standby to complete information, if incorrect, terminate;
Step S3:It is ready to complete information described in reception, and the security token is added to call request;
Step S4:Security token described in certification, if certification correctly sends call result, conversely, terminating;
Step S5 receives the call result, carries out debugging processing, turns to step S3.
Preferably, the step S1 includes:
Step S11:Send out the log-on message;
Step S12:The log-on message is received, and the log-on message is judged, if it is determined that correct turn to step
Rapid S13 terminates if incorrect;
Step S13:It sends out service and starts solicited message;
The step S2 includes:
Step S21:Start solicited message to the service to judge, if it is determined that step S22 is correctly turned to, if not
Correctly, terminate;
Step S22:Service available information is sent out, and provides security token;
Step S23:The security token is received, sends out and described is ready to complete information.
Preferably, the step S21 includes:
Step S211:The frequency that the service starts different service signal in request is obtained, the service signal includes
A kind of main signal and a variety of subsignals;
Step S212:Judge the frequency f of the main signal received0Size, if f0It is 0, terminates, if f0No
It is 0, goes to step S213;
Step S213 counts the total flow θ of the service signal;
Step S214 judges the total flow θ and threshold flow θ0Size, if the total flow θ be more than or equal to institute
State threshold flow θ0, step S22 is gone to, if the total flow θ is less than the threshold flow θ0, terminate.
Preferably, the calculation formula of the total flow θ is:
Wherein, n is the species number of the subsignal and n is integer more than 1, f0For the frequency of the main signal received
Rate, f1、f2……fnIt is followed successively by the corresponding frequency of subsignal described in the n kinds received;w0For the corresponding weight system of the main signal
Number;θ is the total flow for receiving the service signal, and i is integer, fiFor the frequency of the i-th seed signal, wiFor the i-th seed signal
Weight coefficient.
Preferably, the step S3 includes:
Step S31:It is ready to complete information described in reception, sends out interface packet;
Step S32:It receives the interface packet and is handled, send out call request;
Step S33:The call request is received, and adds the security token;
The step S4 includes:
Step S41:Security token described in certification forwards the call request if certification correctly, conversely, terminating;
Step S42:The call request of forwarding is received, and returns to the call result.
Preferably, in the step S5, after carrying out debugging processing, step S32 is turned to.
Preferably, including:
One logs in unit, sends out log-on message, and judge the log-on message, if correct send out service startup
Solicited message is stopped if incorrect;
One service unit is connected with the login unit, and starting solicited message to the service judges, if it is determined that
It correctly provides security token and is ready to complete information and be stopped if incorrect;
Steady unit is connected with the service unit, information is ready to complete described in reception, and add institute to call request
State security token;
One safety certification unit is connected with the preparatory unit, security token described in certification, if certification correctly sends tune
With as a result, conversely, being stopped;
One debugging unit is connected with the safety certification unit and the service unit, receives the call result, carries out
Debugging is handled.
Preferably, the login unit includes:
One login sends out module, sends out the log-on message;
One logs in judgment module, and sending out module with the login is connected, and receives the log-on message, and believe the login
Breath is judged, if it is determined that correctly then working on, is otherwise stopped;
One service request module is connected with the login judgment module, described in log-on message correct judgment startup
Service request module sends out the service and starts solicited message;
The service unit includes:
One service judgment module, is connected with the service request module, receives the service and starts solicited message, and to this
Information is judged, if it is determined that correctly then working on, is otherwise stopped;
One secure token module is connected with the service judgment module, provides the security token;
One completes module, connects with the secure token module, receives the security token, and sends out described be ready to complete
Information.
Preferably, the service judgment module includes:
One frequency acquisition submodule, is connected with the service request module, obtains the service and starts in solicited message not
The frequency of the same service signal;
One main signal judging submodule is connected with the frequency acquisition submodule, judges the main signal received
Frequency f0Size, if f0It is 0, is stopped, if f0It is not 0, works on;
One flow judging submodule is connected with the main signal judging submodule, works as f0Start the flow when not being 0 to sentence
Disconnected submodule, counts the total flow θ of the service signal;One threshold value comparison submodule, with the flow judging submodule
It is connected, judges the total flow θ and the threshold flow θ0Size, if the total flow θ be more than or equal to the threshold value stream
Measure θ0, work on, if the total flow θ is less than the threshold flow θ0, it is stopped.
Preferably, the preparatory unit includes:
One receiving module is connected with the completion module, information is ready to complete described in reception, and sends out the interface packet;
One processing module is connected with the receiving module, receives the interface packet and is handled, sends out the calling and ask
It asks;
One add module is connected with the processing module and the completion module, receives the call request, and add institute
State security token;
The safety certification unit includes:
One authentication module is connected with the add module, security token described in certification, if certification correctly described in forwarding
Call request, anyway, it is stopped;
One calling module is connected with the authentication module, receives the call request of forwarding, and returns to the calling knot
Fruit.
Compared with prior art, the beneficial effects of the present invention are:Provide a kind of remote software based on cloud computing
Adjustment method and device so that commissioning staff can fast and effectively complete debugging operations in cloud system;Provide a kind of clothes
Business starts the method that request is judged, improves accuracy and the safety of working efficiency and operation of judgement.
Description of the drawings
Fig. 1 is that the present invention is based on the flow charts of the software application remote debugging method embodiment one of cloud computing;
Fig. 2 is that the present invention is based on the flow charts of the software application remote debugging method embodiment two of cloud computing;
Fig. 3 is that the present invention is based on the flow charts of the software application remote debugging method embodiment three of cloud computing;
Fig. 4 is that the present invention is based on the structural schematic diagrams of the software application remote testing device example IV of cloud computing;
Fig. 5 is that the present invention is based on the structural schematic diagrams of the software application remote testing device embodiment five of cloud computing;
Fig. 6 is that the present invention is based on the structural schematic diagrams of the software application remote testing device embodiment six of cloud computing.
Specific implementation mode
Technical scheme of the present invention and advantageous effect are understood for ease of those skilled in the art, spy is in conjunction with attached drawing pair
Specific implementation mode is described below.
Embodiment one
As shown in Figure 1, the software application remote debugging method based on cloud computing, including:
Step S1:Log-on message is sent out, and the log-on message is judged, if correct send out service startup request
Information terminates if incorrect;
Step S2:Start solicited message to the service to judge, if it is determined that correctly providing security token and standard
It is standby to complete information, if incorrect, terminate;
Step S3:It is ready to complete information described in reception, and the security token is added to call request;
Step S4:Security token described in certification, if certification correctly sends call result, conversely, terminating;
Step S5 receives the call result, carries out debugging processing, turns to step S3.
When work, log-on message is sent out from the ends PC first, cloud platform member authentication system receives the log-on message, and right
The log-on message is judged, after successfully can log in cloud platform, it is flat to cloud to send out service startup solicited message from the ends PC
Platform.Cloud application member and related software end start request to the service and judge, correct judgment provide security token and
It is ready to complete information, if incorrect end flow.PC is ready to complete information described in receiving, and asks cloud platform end addition safety
Token.When security token certification is correct, call result is sent to commissioning staff.Commissioning staff carries out debugging processing to call result
Afterwards, step S3 is turned back to.Debugging processing is before the program that will work out puts into actual motion, by hand or compiler etc.
Method is tested, and the process of syntax error and logic error is corrected.Embodiment two
The software application remote debugging method based on cloud computing, the present embodiment as described in above-described embodiment one propose one
The method that kind is improved described step S1, S2, S3 and S4, please refers to Fig. 2.
Step S1 includes:
Step S11:Send out log-on message;
Step S12:The log-on message is received, and the log-on message is judged, if it is determined that correct turn to step
Rapid S13 terminates if incorrect;
Step S13:It sends out service and starts solicited message.
The step S2 includes:
Step S21:Start solicited message to the service to judge, if it is determined that step S22 is correctly turned to, if not
Correctly, terminate;
Step S22:Service available information is sent out, and provides security token;
Step S23:The security token is received, sends out and is ready to complete information.
Upon step s 2, further include step S3 and step S4, the step S3 include:
Step S31:It is ready to complete information described in reception, sends out interface packet;
Step S32:It receives the interface packet and is handled, send out call request;
Step S33:The call request is received, and adds the security token.
The step S4 includes:
Step S41:Security token described in certification forwards the call request if certification correctly, conversely, terminating;
Step S42:The call request is received, and returns to call result
When work, commissioning staff sends out logging request by the ends PC to cloud platform member authentication system, asks described in login
Cloud platform member authentication system.When the cloud platform member authentication system is detected the logging request, if it is decided that institute
State logging request it is correct when, successfully log in the cloud platform member authentication system;If it is determined that when the logging request mistake, knot
Beam login process.After success logs in the cloud platform member authentication system, the ends PC send out service and start solicited message to cloud platform
End.The service is started request message transmission to cloud application member and related software end, the end pair by the cloud platform server-side
The service starts solicited message and is checked, judges its availability.If it is correct that the service starts solicited message, the cloud
Service available information is sent out to the cloud platform end using member and related software end.The cloud platform end receives the service can
After information, security token is sent out to the ends PC, the ends PC receive the security token.Class cloud platform service starts to what service waited for
Process is completed.
After the completion of class cloud platform service starts to the process that service waits for, pc client sends out interface packet, commissioning staff
After receiving the interface packet, call request is sent out.Commissioning staff minimizes the priority of the interface packet, if one
Module appears on local and cloud platform simultaneously, can adjust the configuration of IDE project environments, and limited sequence is called in setting, can be preferential
It is invoked at local module, also can preferentially call the module being deployed in cloud as needed.The pc client receives the tune
With request, and the security token will be added in the call request.The cloud platform end receives and is added to the security token
The call request, and the security token is authenticated.When the security token is correct, the call request is passed
It is handed to the cloud application member and related software end.Call result is passed sequentially through cloud by the cloud application member and related software end
Platform end, pc client are transferred to commissioning staff.After commissioning staff receives the call result, debugging processing is carried out, it can be with
Send out next call request.But when the security token is incorrect, terminate whole process.
Embodiment three
The software application remote debugging method based on cloud computing, the present embodiment as described in above-described embodiment two propose one
The method that kind is improved the step S21, please refers to Fig. 3.
When the service initiation information is correct, service available information can be sent out;Conversely, when the service starts letter
When breath mistake, it is merely able to terminate whole process.The service initiation information includes two parts, respectively a kind of main signal A and n
Seed signal B1, B2 ... Bn, wherein n are the positive number more than 1.The frequency of various signals is different in the service initiation information,
The frequency of the main signal A is f0, the subsignal B1, B2 ... the corresponding frequencies of Bn are followed successively by f1、f2、……fn.Main letter
The weight coefficient of number A is w0, the weight coefficient of i-th of subsignal is wi.Letter is started to the service got in the unit interval
The total flow θ of breath is calculated, when total flow θ is more than or equal to threshold flow θ0When, judge that the service initiation information is correct;When
Total flow θ is less than threshold flow θ0When, judge the service initiation information mistake.The computational methods of the total flow are:
Wherein, w0The weight coefficient of ∈ (1,3), i-th of subsignal are wiComputational methods be:
wi=i-2/3
So the calculation formula of the total flow can be reduced to:
Service initiation information is detected, if there is no main signal A, illustrates the service initiation information mistake, no
It needs again to calculate service initiation information total flow, improves statistical efficiency;If there is main signal A, it is necessary to count
The total flow of service initiation information.This judgment mode is not only able to improve computational efficiency, and can improve to the service
Start the accuracy that information judges.
Step S21 includes:
Step S211:The frequency that the service starts different service signal in request is obtained, the service signal includes
A kind of main signal and a variety of subsignals;
Step S212:Judge the frequency f of the main signal received0Size, if f0It is 0, terminates, if f0It is not
0, go to step S213;
Step S213, counts the total flow θ of the service signal, and the calculation formula of the total flow θ is:
Wherein, n is the species number of the subsignal and n is integer more than 1, f0For the frequency of the main signal received
Rate, f1、f2……fnIt is followed successively by the corresponding frequency of subsignal described in the n kinds received;w0For the corresponding weight system of the main signal
Number;w1、w2……wnThe respectively corresponding weight coefficient of subsignal described in n kinds;θ is the total flow for receiving the service signal, i
For integer, fiFor the frequency of the i-th neutron signal, wiFor the weight coefficient of the i-th seed signal;
Step S214 judges the total flow θ and threshold flow θ0Size, if the total flow θ be more than or equal to institute
State threshold flow θ0, step S22 is gone to, if the total flow θ is less than the threshold flow θ0, terminate.
Example IV
The software application remote debugging method based on cloud computing as described in above-described embodiment three, present embodiments provides one
Software application remote testing device of the kind based on cloud computing, as shown in Figure 4.
Software application remote testing device based on cloud computing, including:
One logs in unit 01, sends out log-on message, and judge the log-on message, is opened if correctly sending out service
Dynamic solicited message is stopped if incorrect;
One service unit 02 is connected with the login unit 01, and starting solicited message to the service judges, if
Correct judgment provides security token and is ready to complete information and is stopped if incorrect;
Steady unit 03 is connected with the service unit 02, information is ready to complete described in reception, and add to call request
Add the security token;
One safety certification unit 04, is connected with the preparatory unit 03, security token described in certification, if certification is correctly sent out
Call result is sent, conversely, being stopped;
One debugging unit 05, is connected with the authentication unit and the service unit 02, receives the call result, carries out
Debugging is handled.
When work, the preparatory unit 03 sends out log-on message, and judges the log-on message, if correct hair
Go out service startup solicited message to be stopped if incorrect.Service unit 02 starts solicited message to the service and carries out
Judge, is stopped if incorrect if it is determined that correctly providing security token and being ready to complete information.Preparatory unit 03
It is ready to complete information described in reception, and the security token is added to call request.Safety described in 04 certification of safety certification unit
Token, if certification correctly sends call result, conversely, being stopped.Debugging unit 05 receives the call result, is adjusted
Examination is handled.
Embodiment five
The software application remote testing device based on cloud computing as described in above-mentioned example IV, present embodiments provides one
Kind changes the login unit 01, the service unit 02, the preparatory unit 03 and the safety certification unit 04
Into device, as shown in Figure 5.
The login unit 01 includes:
One login sends out module 11, sends out the log-on message;
One logs in judgment module 12, and sending out module 11 with the login is connected, and receives the log-on message, and step on to described
Record information is judged, if it is determined that correctly starting service request module 13, is otherwise stopped;
One service request module 13 is connected with the login judgment module 12, sends out service and starts solicited message.
The service unit 02 includes:
One service judgment module 21, is connected with the service request module 13, receives the service request module 13 and send out
The service start solicited message, and the information is judged, if it is determined that correctly starting secure token module 22, otherwise
It is stopped;
One secure token module 22 is connected with the service judgment module 21, provides security token;
One completes module 23, connects with the secure token module 22, receives the security token, and send out and be ready to complete
Information.
The preparatory unit 03 includes:
One receiving module 31, the receiving module 31 described are ready to complete information, concurrent outgoing interface packet for receiving;
One processing module 32, is connected with the receiving module 31, receives the interface packet and is handled, sends out calling and ask
It asks;
One add module 33 is connected with the processing module 32 and the completion module 23, receives the call request, and
Add the security token.
The safety certification unit 04 includes:
One authentication module 41, is connected with the add module 33, and security token described in certification forwards if certification correctly
The call request, anyway, it is stopped;
One calling module 42, is connected with the authentication module 41, receives the call request, and return to call result.
When work, start to log in and send out module 11, send out the log-on message, and the log-on message is transferred to described
Log in judgment module 12.The login judgment module 12 judges the log-on message, if it is determined that correctly, described in startup
Service request module 13, is otherwise stopped.After the service request module 13 starts, sends out service and start solicited message.
The service judgment module 21 receives service and starts solicited message, and judges the information, if it is determined that correctly then starting
The secure token module 22, is otherwise stopped.After the secure token module 22 starts, security token is provided, it is described
It completes module 23 and receives security token, and send out and be ready to complete information.
Receiving module 31 receive it is described be ready to complete information, concurrent outgoing interface packet, post-processing module 32 receive the place
Reason is wrapped and is handled, and call request is sent out.The add module 33 receives the call request, and adds the completion module
23 security tokens passed over.The authentication module 41 is authenticated the security token later, starts if correct
The calling module 42, is otherwise stopped.After the calling module 42 starts, the call request is received, and return to tune
With result.The debugging unit 05 receives the call result, carries out a series of debugging processing, and continues to start processing module
32, carry out next round operation.
Embodiment six
The software application remote testing device based on cloud computing as described in above-mentioned example IV, present embodiments provides one
The device that kind is improved the service judgment module 21, as shown in Figure 6.
The service judgment module 21 includes:
One frequency acquisition submodule 211:It is connected with the service request module 13, obtains the service and start in request not
The frequency of same service signal, the service signal includes a kind of main signal and a variety of subsignals;
One main signal judging submodule 212:It is connected with the frequency acquisition submodule 211, judges the main letter received
Number frequency f0Size, if f0It is 0, is stopped, if f0It is not 0, starts flow judging submodule 213;
One flow judging submodule 213:It is connected with the main signal judging submodule 212, counts the service signal
Total flow θ;
One threshold value comparison submodule 214:It is connected with the flow judging submodule 213, judges the total flow θ and threshold value
Flow θ0Size, if the total flow θ be more than or equal to the threshold flow θ0, start the secure token module 22, if
The total flow θ is less than the threshold flow θ0, it is stopped.
When work, the frequency acquisition submodule 211 receives the service and starts solicited message, and obtains main in the information
Signal frequency f0With the frequency f of a variety of subsignalsi.Frequency f of the main signal judging submodule 212 to the main signal0It is big
It is small to be judged, if f0It is 0, is stopped, if f0It is not 0, starts flow judging submodule 213.When the flow judges
After submodule 213 starts, the total flow θ of the service signal is counted.Start threshold value comparison sub-module 214 later, to described total
Flow θ and threshold flow θ0Size judged, if the total flow θ be more than or equal to the threshold flow θ0, start institute
Secure token module 22 is stated, if the total flow θ is less than the threshold flow θ0, it is stopped.
The foregoing is merely presently preferred embodiments of the present invention, is merely illustrative for the purpose of the present invention, and not restrictive
's.Those skilled in the art understand that in the spirit and scope defined by the claims in the present invention many changes can be carried out to it
And modification or even equivalent, but fall in protection scope of the present invention.