Specific embodiment
Clear, complete description is carried out to technical solution of the present invention below with reference to attached drawing, it is clear that described implementation
Example is only a part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is general
Logical technical staff obtained all other embodiment without making creative work belongs to the present invention and is protected
The range of shield.
Invention discovery of the invention, it is each during the deployment that user does not know mobile APP (Application, using)
In the case where a meaning or maloperation for executing program, it is easy to appear the operation order change for executing program, to cause to move
The deployment failure of dynamic APP, and then cause to move the debugging failed of APP.
Therefore, the present inventor considers, can pre-define a sequence for each execution program of deployment
Amount, and the sequence amount based on definition increase the sequence detection mechanism for executing program during the debugging deployment of mobile APP,
When detecting that user changes the operation order for executing program, prompt mistake is carried out to user in time.In this way, user can basis
Prompt adjustment executes the operation order of program, until completing the deployment of mobile APP in the correct order, reduces mobile APP
Deployment failure a possibility that, and can prevent because the sequence error for executing program during deployment leads to mobile APP debugging
Failure.
The technical solution that the invention will now be described in detail with reference to the accompanying drawings.
The present invention provides the adjustment methods of mobile APP a kind of, mainly include the following steps P1-P3:
P1, the source program that mobile APP is compiled by Integrated Development Environment, generate mobile APP installation kit.
P2, mobile APP installation kit is deployed to mobile terminal by multiple execution programs.
After P3, completion move the deployment of APP installation kit, the debug command that user inputs is sent to mobile terminal to right
The mobile APP is debugged.
Wherein, during mobile APP installation kit is deployed to mobile terminal by multiple execution programs, portion is received
Start preset sequence detection service after administration's order;Sequence is executed according to order by sequence detection service, to received deployment
Program is executed involved in order to be successively numbered;If currently executing the number of the number and the execution program prestored of program
Unanimously, then it is returned by sequence detection service and executes notice;After receiving execution notice, current execution program is run.
Specifically, the detailed process of the adjustment method of mobile APP is as shown in Figure 1, may include steps of:
S101: compiling the source program of mobile APP by Integrated Development Environment, generates mobile APP installation kit.
It, can be in PC (Personal Computer, individual calculus in order to carry out the debugging of mobile APP in practical application
Machine) it is equipped with IDE ((Integrated Development Environment, Integrated Development Environment).Wherein, IDE is to be used for
The application program of programming development environment generally comprises code editor, compiler, debugger and tool graphical user interface.It should
Program can also can be used in combination with independent operating with other programs.In this way, PC can compile mobile APP by Integrated Development Environment
Source program, generate mobile APP installation kit.
In practical application, the operation of mobile APP generally includes three processes when debugging: compiling, deployment and operation are adjusted
Examination.Therefore, after the compiling for completing mobile APP, the mobile APP installation kit for generating compiling is needed to be deployed to mobile terminal
In.Specifically, mobile APP installation kit can be deployed to mobile terminal by multiple execution programs.
In this way, subsequent can carry out operation debugging to mobile APP in the terminal.Wherein, mobile terminal can be specific
It is the computer equipment that mobile phone, notebook, tablet computer, POS machine, vehicle-mounted computer etc. can use on the move.
Further, in the embodiment of the present invention, the debugging of mobile APP can also be carried out by simulator, i.e., it is mobile whole
End can be specifically simulator, such as the simulator of mobile phone.In this way, before the debugging for carrying out mobile APP needing that life will be compiled
At mobile APP installation kit be deployed in simulator.
In practical application, the process that mobile APP installation kit is deployed to mobile terminal can be by following step S102-
S107 is realized.
S102: start preset sequence detection service after receiving deployment order.
Under normal conditions, it after the compiling work for completing mobile APP, needs to generate compiling by the work of deployment
Mobile APP installation kit is uploaded to mobile terminal, and is installed.Wherein, multiple execution programs are related to during deployment, than
Such as, the connection of mobile terminal and PC, the upload of mobile APP installation kit and installation etc..In the feelings that mobile terminal is specially simulator
It further include the execution program of the starting of simulator under condition, during deployment.
In practical application, user can select the execution program to be run by input deployment order;PC can basis
Received deployment order executes corresponding execution program.But, it is contemplated that it is each during user does not know the deployment of mobile APP
In the case where the meaning or maloperation that execute program, the deployment of mobile APP is be easy to cause to fail, so as to cause mobile APP's
It is debugging failed.It therefore, can be in advance for each execution program carry out sequence volume during deployment in the embodiment of the present invention
Number, after running corresponding execution program according to this serial number, mapping out the work for mobile APP can be successfully completed.
Therefore, in the embodiment of the present invention, PC needs to start preset sequence inspection after receiving the deployment order of input
Service is surveyed, to be detected as sequence detection service to the sequence for executing program involved in the deployment order, later, PC root
Decide whether to run involved in the deployment order according to testing result and executes program.
S103: sequence is executed according to order by sequence detection service, executes journey to involved in received deployment order
Sequence is successively numbered.
Specifically, sequence detection service can be determined to execute program involved in received deployment order, and according to
This executes sequence for the order executed before during the deployment of movement APP installation kit, to currently received portion
Program is executed involved in administration's order to be successively numbered.For example, at this for the deployment process of movement APP installation kit
In, the number of execution program is 2 involved in the order for last time execution, then for involved by currently received deployment order
And the number of execution program can be specially 3.
S104: the number of the current number and the execution program prestored for executing program is compared by sequence detection service
It is right;If inconsistent, S105 is thened follow the steps;Otherwise, step S106 is executed.
Specifically, sequence detection service is executing program successively to involved in received deployment order by step S103
It, can be by the volume of the number and the execution program prestored of execution program involved in received deployment order after being numbered
It number is compared.If the number for currently executing program is inconsistent with the number of the execution program prestored, S105 is thened follow the steps;
Otherwise, step S106 is executed.
S105: if executing numbering with the number of the execution program prestored not for program involved in received deployment order
Unanimously, then mistake is prompted.
Specifically, if executing the variation of program and the execution program prestored involved in currently received deployment order
It numbers inconsistent, then illustrates that the operation order for executing program involved in currently received deployment order is wrong.For example, if holding
It is run after the execution program that row number is 2 and executes program involved in currently received deployment order, it would be possible to caused entire
The deployment failure of mobile APP.Therefore, the generation of above situation in order to prevent is somebody's turn to do in the number for currently executing program with what is prestored
In the case that the number of execution program is inconsistent, sequence detection service can prompt the user with mistake in time.For example, can text
Originally, audio or other modes are prompted to user.
S106: if executing the number one of the number and the execution program prestored of program involved in received deployment order
It causes, is then returned by sequence detection service and execute notice.
Specifically, sequence detection service by the number of execution program involved in currently received deployment order with prestore
After the number of the execution program is compared, if currently executing the number one of the number and the execution program prestored of program
Cause, then illustrate the operation order that program is executed involved in currently received deployment order be correctly, can be by sequence detection
Service returns and executes notice.
S107: receiving after executing notice, runs and executes program involved in received deployment order.
Specifically, PC can run received deployment order after receiving the execution notice that sequence detection service returns
Related execution program.
In practical application, if PC be not received by sequence detection service return execute notice, received portion will not be run
Program is executed involved in administration's order, but waits next deployment order to be received.After receiving next deployment order,
PC will be serviced by sequence detection and executed before during this is directed to the deployment of movement APP installation kit before
Order execute sequence, execution program involved in currently received deployment order is numbered.
For example, during this is directed to the deployment of movement APP installation kit, since last time numbers the execution program for being 3
It does not run, therefore, in the case where the number for execution program involved in the upper order once executed is 2, for working as
The number that program is executed involved in preceding received deployment order will be 3.If being executed involved in currently received deployment order
Program is consistent with the number of the execution program prestored, then sequence detection service can return and execute notice.Correspondingly, PC can be with
Execute the execution program that number is 3.
Further, it is contemplated that if user arbitrarily increases the execution program of deployment, it is also possible to will lead to the portion of mobile APP
Administration's failure.Therefore, in the embodiment of the present invention, sequence detection service, which can also detect, executes journey involved in received deployment order
Whether sequence belongs to the execution program during the deployment of mobile APP, and is detecting involved in currently received deployment order
In the case where executing the execution program during program is not belonging to the deployment of mobile APP, mistake is prompted the user in time.
Specifically, sequence detection service is executing sequence according to order by step 203, to received deployment order institute
After the execution program being related to successively is numbered, if not including received deployment in the execution program that sequence detection service prestores
Order involved in execute program, then prompt mistake, the extra execution program to prevent subsequent execution and cause deployment fail.
S108: after the deployment for completing mobile APP installation kit, by the debug command that user inputs be sent to mobile terminal to
Mobile APP is debugged.
It specifically, can be by the debugging of user's input after the deployment that mobile APP installation kit is completed by step S102-107
Order is sent to mobile terminal to debug to mobile APP.On how to carry out the debugging of mobile APP according to debug command
Technical means commonly used by such a person skilled in the art can be used, details are not described herein.
In practical application, last execution performed by the deployment in the process of mobile APP installation kit can be directed to according to this
The number of program, determines whether the deployment of mobile APP installation kit is completed.The number of the execution program once executed in determination is
The last one executes the number of program needed for deployment for mobile APP installation kit, then can determine that deployment is completed;Later,
It can receive the debug command of user's input, and after the debug command for receiving user's input, debug command be sent to
Mobile terminal is to debug mobile APP.
Based on the adjustment method of above-mentioned mobile APP, the present invention also provides the debugging systems of mobile APP a kind of, such as Fig. 2 institute
Show, which may include: collector 201, deployment module 202, debugging module 203.
Wherein, collector 201 is used to compile the source program of mobile application APP by Integrated Development Environment, generates movement
APP installation kit.
Deployment module 202 is used to that mobile APP installation kit to be deployed to mobile terminal by multiple execution programs.
Specifically, deployment module 202 starts preset sequence detection service after receiving deployment order;It is taken by sequence detection
Business executes sequence according to order, and execution program involved in received deployment order is successively numbered;If current execute
The number of program is consistent with the number of the execution program prestored, then is returned by sequence detection service and execute notice;It receives and holds
After row notice, current execution program is run.
Debugging module 203 is used for after the deployment that deployment module 202 completes mobile APP installation kit, the tune that user is inputted
Examination order is sent to mobile terminal to debug to mobile APP.
In practical application, collector 201, deployment module 202, debugging module 203 can be all set in PC (Personal
Computer, personal computer) in.
In the embodiment of the present invention, collector 201 can compile the source journey of mobile application APP by Integrated Development Environment
Sequence generates mobile APP installation kit.Wherein, Integrated Development Environment is the application program for programming development environment, generally comprises generation
Code editing machine, compiler, debugger and tool graphical user interface.The program can be with independent operating, can also be with other programs
It is used in combination.
In practical application, before the debugging for carrying out mobile APP, deployment module 202 can be incited somebody to action by multiple execution programs
The mobile APP installation kit that collector 201 generates is deployed in mobile terminal.In this way, subsequent so as in the terminal to shifting
Dynamic APP is debugged.Wherein, mobile terminal can be mobile phone, notebook, tablet computer, POS machine, vehicle-mounted computer etc. in movement
Used in computer equipment.
Further, in the embodiment of the present invention, the debugging of mobile APP can also be carried out by simulator, i.e., it is mobile whole
End can be specifically simulator, such as the simulator of mobile phone.In this way, before the debugging for carrying out mobile APP needing that life will be compiled
At mobile APP installation kit be deployed in simulator.
Under normal conditions, after the compiling work for completing mobile APP by collector 201, deployment module 202 can be with
The mobile APP installation kit that compiling generates is uploaded to mobile terminal by the work of deployment, and is installed.Wherein, deployment
It in the process include multiple execution programs, for example, the connection of mobile terminal and PC, the upload of mobile APP installation kit and installation etc..?
It further include the execution program of the starting of simulator in the case that mobile terminal is specially simulator, during deployment.
In practical application, user can select the execution program to be run by input deployment order.Correspondingly, it disposes
Module 202 deployment order can execute corresponding execution program based on the received.
But, it is contemplated that the meaning or maloperation of program are respectively executed during the deployment of the unclear mobile APP of user
In the case where, it be easy to cause the deployment of mobile APP to fail, so as to cause the debugging failed of mobile APP.Therefore, the present invention is implemented
In example, deployment module 202 can carry out serial number for each execution program during deployment in advance, according to this sequence
After the corresponding execution program of number operation, mapping out the work for mobile APP can be successfully completed.
Therefore, in the embodiment of the present invention, deployment module 202 is after the deployment order for receiving user's input, Ke Yiqi
Preset sequence detection service is moved, the sequence for executing program involved in the deployment order is examined as sequence detection service
It surveys, later, deployment module 202 decides whether to execute the deployment order according to testing result.
Specifically, mobile APP installation kit is deployed to the process of mobile terminal by multiple execution programs by deployment module 202
In, preset sequence detection service can be started after receiving deployment order;By sequence detection service according to the execution of order
Sequentially, execution program involved in received deployment order is successively numbered;If currently execute program number with prestore
The execution program number it is consistent, then by sequence detection service return execute notice;After receiving execution notice, operation is current
Execute program.
In practical application, sequence detection service can be determined after the deployment order for receiving the forwarding of deployment module 202
It executes program involved in the deployment order, and the deployment of movement APP installation kit is directed at this according to deployment module 202
The order executed before in journey executes sequence, successively compiles to execution program involved in currently received deployment order
Number.For example, being held involved in the order for last time execution during this is directed to the deployment of movement APP installation kit
The number of line program is 2, then can be specially 3 for the number of program is executed involved in currently received deployment order.
In turn, after execution program involved in received deployment order is numbered, journey will can currently be executed
The number of sequence is compared with the number of the execution program prestored.
If the number of the number and the execution program prestored that execute program involved in currently received deployment order is not
Unanimously, then illustrate that the sequence that program is executed involved in currently received deployment order is wrong.For example, if deployment module 202 exists
It executes the execution program that number is 2 and runs execution program involved in currently received deployment order later, it would be possible to cause whole
The deployment of a mobile APP fails.Therefore, the generation of above situation in order to prevent, the number for currently executing program with prestore
In the case that the number of the execution program is inconsistent, deployment module 202 can prompt the user with mistake in time.For example, can be with
Text or other modes are prompted to user.
And if currently received deployment order involved in execute program it is consistent with the number of the execution program prestored,
Illustrate that the operation order that program is executed involved in currently received deployment order is correctly that sequence detection service can be to portion
Administration's return of module 202 executes notice.
In this way, received deployment can be executed after deployment module 202 receives the execution notice that sequence detection service returns
Program is executed involved in order.
In practical application, if deployment module 202 be not received by sequence detection service return execute notice, will not run
Program is executed involved in received deployment order, but waits next deployment order to be received.Receiving next deployment
After order, deployment module 202 will received deployment order be sent to sequence detection service.Correspondingly, sequence detection service
The execution of order executed before during this is directed to the deployment of movement APP installation kit according to deployment module 202 is suitable
Execution program involved in currently received deployment order is successively numbered in sequence.
For example, during this is directed to the deployment of movement APP installation kit, since last time numbers the execution program for being 3
Do not run, therefore, the feelings for being 2 for the number of execution program involved in the upper order once executed in deployment module 202
Under condition, sequence detection service will be 3 for the number for executing program involved in currently received deployment order.If current receive
Deployment order involved in execute program it is consistent with the number of the execution program prestored, then sequence detection service can be to portion
Administration's return of module 202 executes notice.The execution program that number is 3 is executed by tune deployment module 202.
Further, it is contemplated that if user arbitrarily increases the execution program of deployment, it is also possible to will lead to the portion of mobile APP
Administration's failure.Therefore, in the embodiment of the present invention, sequence detection service, which can also detect, executes journey involved in received deployment order
Whether sequence belongs to the execution program during the deployment of mobile APP, and is detecting involved in currently received deployment order
In the case where executing the execution program during program is not belonging to the deployment of mobile APP, deployment module 202 prompts the user in time
Mistake.
Specifically, sequence detection service is executing sequence according to order, executes to involved in received deployment order
After program is successively numbered, if not including current execution program in the execution program prestored in sequence detection service, dispose
Module 202 prompts mistake, causes deployment to fail to prevent executing extra execution program.
In the embodiment of the present invention, after the deployment that deployment module 202 completes mobile APP installation kit, debugging module 203 can be with
The debug command that user inputs is sent to mobile terminal to debug to mobile APP.On how to according to debug command
The debugging for carrying out mobile APP can be using technical means commonly used by such a person skilled in the art, and details are not described herein.
In practical application, debugging module 203 this can be directed to the deployment of mobile APP installation kit according to deployment module 202
The number of performed last execution program in the process, determines whether the deployment of mobile APP installation kit is completed.It is upper primary determining
The number of the execution program of execution is the number for the last one execution program needed for the deployment for moving APP installation kit, then
Debugging module 203 can receive the debug command of user's input;And after the debug command for receiving user's input, it will debug
Order is sent to mobile terminal to debug to mobile APP.
In the embodiment of the present invention, as shown in figure 3, the deployment module 202 in the debugging system of mobile APP may include: portion
Affix one's name to order receiving unit 301, sequence detection service 302 and deployment execution unit 303.
Wherein, deployment order receiving unit 301 starts preset sequence detection after receiving the deployment order that user inputs
Service 302.
Sequence detection service 302 executes sequence according to order, to executed involved in received deployment order program according to
It is secondary to be numbered;If the number for currently executing program is consistent with the number of the execution program prestored, it is directed to the execution program
Return executes notice.
Specifically, sequence detection service 302 can be determined to execute program involved in received deployment order, and according to
The order executed before during this is directed to the deployment of movement APP installation kit executes sequence, to currently received
Program is executed involved in deployment order to be successively numbered.For example, at this for the deployment process of movement APP installation kit
In, debugging module 101 is 2 for the number of program is executed involved in the last order executed, then for currently received
It can be specially 3 that the number of program is executed involved in deployment order.
In turn, sequence detection service 302 can by involved in received deployment order execute program number with prestore
The number of the execution program be compared;If the number for executing program involved in received deployment order is held with this prestored
The number of line program is consistent, then returns to deployment execution unit 303 and execute notice for the execution program.
Correspondingly, it after deployment execution unit 303 receives the execution notice that sequence detection service 302 returns, runs this and holds
Row notifies targeted execution program.
Further, in the embodiment of the present invention, deployment module can also include: error warning unit 304.
Error warning unit 304 is for the number of execution program involved in deployment order and the execution program prestored
Number it is inconsistent when, prompt the user with mistake.
More preferably, it is contemplated that if user arbitrarily increases the execution program of deployment, it is also possible to will lead to the deployment of mobile APP
Failure.Therefore, in the embodiment of the present invention, sequence detection service 302 can also be detected and be executed involved in received deployment order
Whether program belongs to the execution program during the deployment of mobile APP;Correspondingly, error warning unit 304 is also used to dispose life
When executing the execution program during program is not belonging to the deployment of mobile APP involved in enabling, mistake is prompted the user with.
Based on the adjustment method of above-mentioned mobile APP, the present invention also provides the deployment device of mobile APP a kind of, the deployment
It may include: deployment order receiving unit, sequence detection service and deployment execution unit in device.
Wherein, the function of deployment order receiving unit, sequence detection service and deployment execution unit can be with reference to movement
The each unit of deployment module 202 in the debugging system of APP, details are not described herein.
In technical solution of the present invention, during the deployment debugged to mobile APP, serviced by preset sequence detection
Sequence can be executed according to order, execution program involved in received deployment order is successively numbered;If currently holding
The number of line program is inconsistent with the number of the execution program prestored, then carries out prompt mistake to user in time.In this way, even if
In the case where respectively executing the meaning or maloperation of program during the deployment that user does not know mobile APP, user can also be with
The operation order for executing program is adjusted according to prompt, until completing the deployment of mobile APP in the correct order, reduces movement
A possibility that deployment failure of APP, and can prevent because the sequence error for executing program during deployment leads to mobile APP tune
Examination failure.
The terms such as " module " used in this application, " system " be intended to include with computer-related entity, such as it is but unlimited
In hardware, firmware, combination thereof, software or software in execution.For example, module can be, and it is not limited to: processing
Process, processor, object, executable program, the thread of execution, program and/or the computer run on device.For example, it counts
Calculating the application program run in equipment and this calculating equipment can be module.One or more modules can be located in execution
In one process and/or thread, a module can also be located on a computer and/or be distributed in two or more calculating
Between machine.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein
One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general
Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in
It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not
Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card
Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read
Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, without departing from the principle of the present invention, it can also make several improvements and retouch, these improvements and modifications are also answered
It is considered as protection scope of the present invention.