CN105512035B - Debugging method and system of mobile APP - Google Patents

Debugging method and system of mobile APP Download PDF

Info

Publication number
CN105512035B
CN105512035B CN201510919926.5A CN201510919926A CN105512035B CN 105512035 B CN105512035 B CN 105512035B CN 201510919926 A CN201510919926 A CN 201510919926A CN 105512035 B CN105512035 B CN 105512035B
Authority
CN
China
Prior art keywords
deployment
program
execution
mobile app
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510919926.5A
Other languages
Chinese (zh)
Other versions
CN105512035A (en
Inventor
冯浩
张晓伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201510919926.5A priority Critical patent/CN105512035B/en
Publication of CN105512035A publication Critical patent/CN105512035A/en
Application granted granted Critical
Publication of CN105512035B publication Critical patent/CN105512035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3624Software debugging by performing operations on the source code, e.g. via a compiler

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a debugging method and a debugging system of a mobile APP, wherein the method comprises the following steps: p1 compiles a source program of the mobile APP through the integrated development environment to generate a mobile APP installation package; p2 deploys the mobile APP installation package to the mobile terminal through multiple executives: starting a sequence detection service after receiving a deployment command; the sequence detection service sequentially numbers the execution programs related to the received deployment command according to the execution sequence of the command; if the number of the current execution program is consistent with the pre-stored number, returning an execution notice by the sequence detection service; after receiving the execution notice, operating the current execution program; after the P3 finishes the deployment of the mobile APP installation package, the debugging command input by the user is sent to the mobile APP installation package deployed in the mobile terminal to debug the mobile APP. By applying the method and the device, the possibility of the failure of the deployment of the mobile APP can be reduced, so that the debugging success rate of the mobile APP is improved.

Description

The adjustment method and system of mobile APP
Technical field
The present invention relates to mobile solutions, specifically, the present invention relates to the adjustment method of mobile APP a kind of and System.
Background technique
In the development process of mobile APP (Application, using), debugging is important link.Currently, for movement The adjustment method of APP is usually that Software Development Kit or Integrated Development Environment are debugged.In practical application, opened integrated When carrying out the debugging of mobile APP on hair ring border (IDE, Integrated Development Environment), generally include Three processes: compiling, deployment and operation debugging.Wherein, the deployment process of mobile APP is made of a series of execution programs, than Such as connect initialization, file uploads, installation APP installation kit executes program.By above-mentioned executive programs, the deployment of mobile APP The APP installation kit that compiling generates can be uploaded to mobile terminal, and be installed.
It was found by the inventors of the present invention that during developer does not know mobile APP deployment each meaning for executing program, Or in the case where maloperation, the deployment of mobile APP is be easy to cause to fail, so as to cause the debugging failed of mobile APP.Due to moving The debugging of dynamic APP is related to multiple processes such as compiling, deployment and operation, and each process is often made of multiple execution programs, because This, after mobile APP is debugging failed, developer would become hard to the reason of finding unsuccessfully.
Therefore, it is necessary to provide the adjustment method of mobile APP a kind of, the possibility of the deployment failure of mobile APP can reduce Property, to improve the debugging success rate of mobile APP.
Summary of the invention
In view of the above-mentioned drawbacks of the prior art, the present invention provides the adjustment method and system of a kind of mobile APP, energy A possibility that enough deployment failures for reducing mobile APP, to improve the debugging success rate of mobile APP.
The present invention provides the adjustment methods of mobile APP a kind of, comprising:
P1, the source program that mobile application APP is compiled by Integrated Development Environment, generate mobile APP installation kit;
P2, the mobile APP installation kit is deployed to mobile terminal by multiple execution programs:
Start preset sequence detection service after receiving deployment order;By sequence detection service the holding according to order Execution program involved in received deployment order is successively numbered in row sequence;If currently executing the number of program and pre- The number for the execution program deposited is consistent, then is returned by sequence detection service and execute notice;It receives and described executes notice Afterwards, operation is current executes program;
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.
Preferably, described execute sequence according to order by the sequence detection service, to involved by received deployment order And execution program be successively numbered after, the adjustment method further include:
If not including current execution program in the execution program prestored, mistake is prompted.
Preferably, described execute sequence according to order by the sequence detection service, to involved by received deployment order And execution program be successively numbered after, the adjustment method further include:
If the number for currently executing program is inconsistent with the number of the execution program prestored, mistake is prompted.
Preferably, the execution program includes:
Connection initialization, upload, the movement of the mobile APP installation kit between the PC and the mobile terminal The installation of APP installation kit.
Preferably, the mobile terminal is specially mobile phone or simulator;And
When the mobile terminal is specially simulator, the execution program further include: the starting of simulator.
According to another aspect of the present invention, the debugging system of mobile APP a kind of is additionally provided, which includes:
Collector generates mobile APP installation for compiling the source program of mobile application APP by Integrated Development Environment Packet;
Deployment module is specific to wrap for the mobile APP installation kit to be deployed to mobile terminal by multiple execution programs It includes: starting preset sequence detection service after receiving deployment order;It is suitable according to the execution of order by the sequence detection service Execution program involved in received deployment order is successively numbered in sequence;If currently executing the number of program and prestoring The number of the execution program is consistent, then is returned by sequence detection service and execute notice;After receiving the execution notice, fortune Program is executed before the trade;
Debugging module, the debugging for after the deployment that the deployment module completes mobile APP installation kit, user to be inputted Order is sent to mobile terminal to debug to the mobile APP.
If not wrapped preferably, the deployment module is also used to the sequence detection service detection into the execution program prestored Current execution program is included, then prompts mistake.
If preferably, the deployment module be also used to the sequence detection service detection to the current number for executing program with The number of the execution program prestored is inconsistent, then prompts mistake.
Preferably, the execution program specifically includes:
Connection initialization and the upload and peace of the mobile APP installation kit between the PC and the mobile terminal Dress.
Preferably, the mobile terminal is specially mobile phone or simulator;And
When the mobile terminal is specially simulator, the execution program further include: the starting of simulator.
It, can root by sequence detection service during the deployment debugged to mobile APP in technical solution of the present invention Sequence is executed according to order, execution program involved in received deployment order is successively numbered;If currently executing program Number it is inconsistent with the number of the execution program prestored, then carry out prompt mistake to user in time.In this way, even if in user In the case where not knowing the meaning or maloperation that mobile APP deployment respectively executes program in the process, user can also be according to prompt Adjustment executes the operation order of program, until completing the deployment of mobile APP in the correct order, reduces the portion of mobile APP A possibility that administration's failure, and can prevent because the sequence error of the execution program during deployment causes mobile APP debugging to be lost It loses.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
The internal structure of the debugging system for the mobile APP of adjustment method process that Fig. 1 is mobile APP in the embodiment of the present invention is shown It is intended to;
Fig. 2 is the schematic diagram of internal structure of the debugging system of mobile APP in the embodiment of the present invention;
Fig. 3 is the schematic diagram of internal structure of deployment module in the embodiment of the present invention.
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.

Claims (8)

1. a kind of adjustment method of mobile APP characterized by comprising
P1, the source program that mobile application APP is compiled by Integrated Development Environment, generate mobile APP installation kit;
P2, the mobile APP installation kit is deployed to mobile terminal by multiple execution programs:
Start preset sequence detection service after receiving deployment order;It is suitable according to the execution of order by the sequence detection service Execution program involved in received deployment order is successively numbered in sequence;If currently executing the number of program and prestoring The number of the execution program is consistent, then is returned by sequence detection service and execute notice;After receiving the execution notice, fortune Program is executed before the trade;
The execution program includes:
Connection initialization, upload, the shifting of the mobile APP installation kit between personal computer PC and the mobile terminal The installation of dynamic APP installation kit;
After P3, completion move the deployment of APP installation kit, the debug command that user inputs is sent to mobile terminal to described Mobile APP is debugged.
2. the method as described in claim 1, which is characterized in that described suitable according to the execution of order by the sequence detection service Sequence, after execution program involved in received deployment order is successively numbered, further includes:
If not including current execution program in the execution program prestored, mistake is prompted.
3. the method as described in claim 1, which is characterized in that described suitable according to the execution of order by the sequence detection service Sequence, after execution program involved in received deployment order is successively numbered, further includes:
If the number for currently executing program is inconsistent with the number of the execution program prestored, mistake is prompted.
4. the method as described in claim 1, which is characterized in that the mobile terminal is specially mobile phone or simulator;And
When the mobile terminal is specially simulator, the execution program further include: the starting of simulator.
5. a kind of debugging system of mobile APP characterized by comprising
Collector generates mobile APP installation kit for compiling the source program of mobile application APP by Integrated Development Environment;
Deployment module is specifically included for the mobile APP installation kit to be deployed to mobile terminal by multiple execution programs: Start preset sequence detection service after receiving deployment order;Sequence is executed according to order by the sequence detection service, Execution program involved in received deployment order is successively numbered;If the number for currently executing program is held with this prestored The number of line program is consistent, then is returned by sequence detection service and execute notice;After receiving the execution notice, operation is worked as Preceding execution program;
The execution program specifically includes:
Between personal computer PC and the mobile terminal connection initialization and the mobile APP installation kit upload and Installation;
Debugging module, the debug command for after the deployment that the deployment module completes mobile APP installation kit, user to be inputted Mobile terminal is sent to debug to the mobile APP.
6. system as claimed in claim 5, which is characterized in that
If it does not include currently executing that the deployment module, which is also used to the sequence detection service detection into the execution program prestored, Program then prompts mistake.
7. system as claimed in claim 5, which is characterized in that
It is held to the current number for executing program with this prestored if the deployment module is also used to the sequence detection service detection The number of line program is inconsistent, then prompts mistake.
8. system as claimed in claim 5, which is characterized in that the mobile terminal is specially mobile phone or simulator;And
When the mobile terminal is specially simulator, the execution program further include: the starting of simulator.
CN201510919926.5A 2015-12-11 2015-12-11 Debugging method and system of mobile APP Active CN105512035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510919926.5A CN105512035B (en) 2015-12-11 2015-12-11 Debugging method and system of mobile APP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510919926.5A CN105512035B (en) 2015-12-11 2015-12-11 Debugging method and system of mobile APP

Publications (2)

Publication Number Publication Date
CN105512035A CN105512035A (en) 2016-04-20
CN105512035B true CN105512035B (en) 2018-12-14

Family

ID=55720036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510919926.5A Active CN105512035B (en) 2015-12-11 2015-12-11 Debugging method and system of mobile APP

Country Status (1)

Country Link
CN (1) CN105512035B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815149B (en) * 2017-01-13 2020-05-22 上海市共进通信技术有限公司 Debugging system and method for software development based on intelligent gateway platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631679A (en) * 2013-12-06 2014-03-12 Tcl通讯(宁波)有限公司 Application installation control method and system for mobile terminal
CN103699481A (en) * 2013-12-03 2014-04-02 华为技术有限公司 Code debugging method and code debugging system
CN104679644A (en) * 2013-11-28 2015-06-03 比亚迪股份有限公司 Testing method and system for application program in mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020066071A1 (en) * 1999-02-25 2002-05-30 Sing-Ban Robert Tien Local environment for integrated multiple-tier client-server concurrent program developement

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679644A (en) * 2013-11-28 2015-06-03 比亚迪股份有限公司 Testing method and system for application program in mobile terminal
CN103699481A (en) * 2013-12-03 2014-04-02 华为技术有限公司 Code debugging method and code debugging system
CN103631679A (en) * 2013-12-06 2014-03-12 Tcl通讯(宁波)有限公司 Application installation control method and system for mobile terminal

Also Published As

Publication number Publication date
CN105512035A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
US9898387B2 (en) Development tools for logging and analyzing software bugs
US9921948B2 (en) Software commit risk level
US7647584B2 (en) Automation and isolation of software component testing
US8370816B2 (en) Device, method and computer program product for evaluating a debugger script
US7168009B2 (en) Method and system for identifying errors in computer software
Lam et al. Dependent-test-aware regression testing techniques
CN105094783A (en) Method and device for testing Android application stability
CN107329889B (en) Method for automatically testing C compiler
CN110688313B (en) Fault injection method for software testing under VxWorks operating system
CN101639805A (en) Method and equipment for tracing variable in program debugging
CN106155900A (en) A kind of code tester monitoring method, device and equipment
CN107045474B (en) Program flow tracking method and device in Fuzz test
CN106919431B (en) Code comparison method, equipment and system in continuous integration
CN103049374B (en) Automatic testing method and device
CN106648762A (en) Development environment building method and device
CN105630674A (en) Test method and device capable of aiming at interface
CN110377471A (en) Generation method, device, storage medium and the electronic equipment of interface check data
Yang et al. Efsm-based test case generation: Sequence, data, and oracle
CN105512035B (en) Debugging method and system of mobile APP
CN115470138A (en) Debugger defect detection method based on different debugging levels cross validation
CN103699485B (en) Application program adjustment method and device
CN107480048A (en) Testing tool generation method, device, storage medium and computer equipment
CN110633199A (en) Testing apparatus, method, and medium for block chain supporting intelligent contract
Taufiqurrahman et al. The impacts of test driven development on code coverage
EP2820547B1 (en) Debugging method and computer program product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210203

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160420

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Debugging method and system of mobile app

Granted publication date: 20181214

License type: Common License

Record date: 20210531

EE01 Entry into force of recordation of patent licensing contract