CN107918587A - The adjustment method and system of a kind of application program - Google Patents

The adjustment method and system of a kind of application program Download PDF

Info

Publication number
CN107918587A
CN107918587A CN201711127987.3A CN201711127987A CN107918587A CN 107918587 A CN107918587 A CN 107918587A CN 201711127987 A CN201711127987 A CN 201711127987A CN 107918587 A CN107918587 A CN 107918587A
Authority
CN
China
Prior art keywords
destination application
debugging
application
debugged
mobile terminal
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.)
Granted
Application number
CN201711127987.3A
Other languages
Chinese (zh)
Other versions
CN107918587B (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.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing China Power Information Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing China Power Information Technology Co Ltd
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 State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Beijing China Power Information Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201711127987.3A priority Critical patent/CN107918587B/en
Publication of CN107918587A publication Critical patent/CN107918587A/en
Application granted granted Critical
Publication of CN107918587B publication Critical patent/CN107918587B/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/3664Environments for testing or debugging software
    • 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

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 discloses a kind of adjustment method of application program, applied to terminal and mobile terminal, including:When detecting the debugging instruction to destination application, the first method that the destination application includes is obtained;When detecting the execution of the first method, the corresponding default conditions information of the first method is obtained;According to the debugging instruction, the default conditions information is debugged, obtains status information to be updated;The status information to be updated is passed to the mobile terminal for performing the destination application, makes the destination application be run according to the status information to be updated, realizes the debugging to the destination application.Above-mentioned method, debugs the application program of mobile terminal by terminal, avoids the debugging of application program in the prior art, is required for after application configuration is packed mobile terminal is installed the problem of, simplifying debugging flow.

Description

The adjustment method and system of a kind of application program
Technical field
The present invention relates to mixing mobile solution, more particularly to the adjustment method and system of a kind of application program.
Background technology
Mixing mobile applications are the application programs of a kind of Web and primary combination, mainly using HTML5 and JavaScript is built-up, and the mixing mobile applications are installed on mobile terminal, since each application program needs The optimization of application program is realized by constantly debugging, when the mixing mobile application needs to be debugged, it is necessary to will Installed after application configuration packing in mobile terminal, in the Operations Analyst problem such as running of mobile terminal print log and respond request Reason, according to analysis result, debugs the mobile applications.
Inventor carries out research discovery to the adjustment method of existing mixing mobile applications, every time the mixing movement When application program needs to be debugged, it is required for after application configuration is packed installing in mobile terminal, the process of debugging is cumbersome.
The content of the invention
In view of this, the present invention provides the call method and system of a kind of application program, to solve existing to state every time When mixing mobile applications need to be debugged, it is required for after application configuration is packed installing in mobile terminal, the mistake of debugging The cumbersome problem of journey, concrete scheme are as follows:
A kind of adjustment method of application program, applied to terminal and mobile terminal, including:
When detecting the debugging instruction to destination application, the first party that the destination application includes is obtained Method;
When detecting the execution of the first method, the corresponding default conditions information of the first method is obtained;
According to the debugging instruction, the default conditions information is debugged, obtains status information to be updated;
The status information to be updated is passed to the mobile terminal for performing the destination application, makes the target should Run with program according to the status information to be updated, realize the debugging to the destination application.
Above-mentioned method, it is preferred that obtaining the first method that the intended application journey includes includes:
Parse the debugging label that the destination application includes;
According to the debugging label, the corresponding medium file of the destination application is obtained;
According to the medium file, the method included to the destination application is written over;
When detecting that rewriteeing completion instructs, the first method that the destination application includes is obtained.
Above-mentioned method, it is preferred that according to the medium file, weight is carried out to the method that the destination application includes Write including:
The method to be debugged included in the destination application is parsed, the method to be debugged is at least one;
For each method to be debugged, according to the medium file, default tune is write in the method to be debugged Try information.
Above-mentioned method, it is preferred that obtaining the default conditions information of the first method includes:
Obtain the input data and output data of the first method;
Obtain the style information of the destination application included in the DOM Document Object Model of the first method.
Above-mentioned method, it is preferred that further include:
The parameter information for the mobile terminal for running the destination application is obtained, the parameter information is delivered to target Terminal.
A kind of debugging system of application program, applied to terminal and mobile terminal, including:
First acquisition module, for when detecting the debugging instruction to destination application, obtaining the intended application The first method that program includes;
Second acquisition module, for when detecting the execution of the first method, it is corresponding to obtain the first method Default conditions information;
Debugging module, for according to the debugging instruction, being debugged to the default conditions information, obtaining shape to be updated State information;
Module is run, the mobile end of the destination application is performed for the status information to be updated to be passed to End, makes the destination application be run according to the status information to be updated, realizes the debugging to the destination application.
Above-mentioned system, it is preferred that first acquisition module includes:
Resolution unit, the debugging label included for parsing the destination application;
First acquisition unit, for according to the debugging label, obtaining the corresponding medium file of the destination application;
Rewriting unit, for according to the medium file, the method included to the destination application to be written over;
Detection unit, for when detecting that rewriteeing completion instructs, obtaining the first party that the destination application includes Method.
Above-mentioned system, it is preferred that the rewriting unit includes:
Subelement is parsed, for parsing the method to be debugged included in the destination application, the side to be debugged Method is at least one;
Subelement is write, for for each method to be debugged, according to the medium file, in the method to be debugged The middle default Debugging message of write-in.
Above-mentioned system, it is preferred that second acquisition module includes:
Second acquisition unit, for obtaining the input data and output data of the first method;
3rd acquiring unit, the intended application journey included in the DOM Document Object Model for obtaining the first method The style information of sequence.
Above-mentioned system, it is preferred that further include:
3rd acquisition module, for obtaining the parameter information for the mobile terminal for running the destination application, by described in Parameter information is delivered to target terminal.
The invention discloses a kind of adjustment method of application program, applied to terminal and mobile terminal, including:When When detecting the debugging instruction to destination application, the first method that the destination application includes is obtained;When detecting During the execution of the first method, the corresponding default conditions information of the first method is obtained;According to the debugging instruction, to institute State default conditions information to be debugged, obtain status information to be updated;The status information to be updated is passed to described in execution The mobile terminal of destination application, makes the destination application be run according to the status information to be updated, realizes to institute State the debugging of destination application.Above-mentioned method, debugs the application program of mobile terminal by terminal, keeps away The debugging of application program in the prior art is exempted from, has been required for after application configuration is packed mobile terminal is installed the problem of, simplified Debugging flow.
Certainly, implement any of the products of the present invention and do not necessarily require achieving all the advantages described above at the same time.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of adjustment method flow chart of application program disclosed in the embodiment of the present application;
Fig. 2 is a kind of another method flow diagram of the adjustment method of application program disclosed in the embodiment of the present application;
Fig. 3 is a kind of another method flow diagram of the adjustment method of application program disclosed in the embodiment of the present application;
Fig. 4 is a kind of another method flow diagram of the adjustment method of application program disclosed in the embodiment of the present application;
Fig. 5 is a kind of debugging system structure diagram of application program disclosed in the embodiment of the present application.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment, belongs to the scope of protection of the invention.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide scope caused.
The present invention provides a kind of adjustment method of application program, the application program is based on mixing mobile application exploitation The application program based on the page, the application program is installed on mobile terminal, and the mobile terminal can be mobile phone, IPAD Deng.Wherein, mixing mobile application is the application program of a kind of Web and primary combination, mainly uses HTML5 and JavaScript structures Build and form, be then encapsulated in primary receptacle, primary platform feature can be accessed by container.The executive agent of the method It can be controller or debugging platform of terminal etc., when debugging, is being passed through computer end to application program End obtains the default conditions information of the application program, is debugged, the result of debugging feeds back to mobile terminal in real time.It is described Adjustment method is applied to in the debugging process of application program.Debugging platform of the present invention using executive agent as terminal be Example illustrates.Preferably, the debugging platform in the embodiment of the present invention is Integrated Development Environment (Integrated Development Enviroment)IDE.The flow of the adjustment method is as shown in Figure 1, including step:
S101, when detecting the debugging instruction to destination application, obtain the destination application includes One method;
In the embodiment of the present invention, the destination application refers to the current application journey to be debugged for running on mobile terminal Sequence, including bottom engine plug-in unit, and upper-layer service logic and User Page (User Interface) UI show.Described first Method refers to method to be debugged in the destination application, and the first method can be one, or and it is multiple, it is each A method all corresponds to a specific function in the page of the destination application.
S102, when detecting the execution of the first method, obtain the corresponding default conditions information of the first method;
In the embodiment of the present invention, the destination application includes multiple methods, but only when first method performs, The inputoutput data and layout pattern data of function module corresponding with the first method can just be obtained.
S103, according to the debugging instruction, the default conditions information is debugged, obtains status information to be updated;
In the embodiment of the present invention, the debugging instruction is parsed, determines each in the default conditions information to need to adjust Status information, the status information adjusted successively to each needs are adjusted, and when detecting that instruction is completed in debugging, are treated The status information of renewal.Wherein, the status information to be updated can also be shown in terminal.
The status information to be updated, is passed to the mobile terminal for performing the destination application by S104, described in order Destination application is run according to the status information to be updated, realizes the debugging to the destination application.
In the embodiment of the present invention, the mobile terminal by the status information to be updated that the terminal is debugged into Row real-time exhibition, if final displaying result, which is unsatisfied with, can repeat above-mentioned adjustment method, is constantly debugged, when After debugging process, the new version of the destination application is exited.
In the embodiment of the present invention, the engine plug-in unit of the destination application draws for the application in mixing mobile application exploitation Hold up, be the support platform for supporting HTML5 application operations;The engine plug-in unit provides primary ability, is called by standard interface, Extended mode is provided by application programming interface (Application Programming Interface) API.
In the embodiment of the present invention, the debugging instruction has two kinds to include:Terminal actively initiate to the target One or several methods included in application program are debugged, and can be a certain method mould to the destination application The debugging instruction for the generations such as block is updated or the layout of the corresponding page of the destination application is modified;It is mobile whole The debugging instruction initiated is held, is occurred when can be and be run by a certain function module of the corresponding page of the destination application wrong The debugging instruction for the abnormal conditions initiations such as by mistake or click is not responding to.
In the embodiment of the present invention, actively initiate debugging instruction debugging principle basis developer subjective desire and move The principle basis for the debugging instruction debugging that terminal is initiated are log approach, function call and network request of operation etc..
In the embodiment of the present invention, it is necessary to start the target of installation on mobile terminals before adjustment method execution The loading page of application program, the preferable page is the HTML5 pages.
In the embodiment of the present invention, be not each application program be intended in the process of running to abnormal conditions either Latest edition corresponding with the destination application is updated in real time, and therefore, there are one in the destination application Debugging switch, if the debugging switch is opened, performs above-mentioned adjustment method, if the debugging switch is closed, normal fortune The row destination application, without debugging.
The invention discloses a kind of adjustment method of application program, applied to terminal and mobile terminal, including:When When detecting the debugging instruction to destination application, the first method that the destination application includes is obtained;When detecting During the execution of the first method, the corresponding default conditions information of the first method is obtained;According to the debugging instruction, to institute State default conditions information to be debugged, obtain status information to be updated;The status information to be updated is passed to described in execution The mobile terminal of destination application, makes the destination application be run according to the status information to be updated, realizes to institute State the debugging of destination application.Above-mentioned method, debugs the application program of mobile terminal by terminal, keeps away The debugging of application program in the prior art is exempted from, has been required for after application configuration is packed mobile terminal is installed the problem of, simplified Debugging flow.
In the embodiment of the present invention, obtain the method flow for the first method that the destination application includes as shown in Fig. 2, Including step:
The debugging label that S201, the parsing destination application include;
In the embodiment of the present invention, the debugging platform of terminal can realize the tune to multiple and different application programs Examination, can be one debugging label of each application assigned to distinguish different application programs.
S202, according to the debugging label, obtain the corresponding medium file of the destination application;
In the embodiment of the present invention, a medium file storehouse is preset in the debugging platform of the terminal, has been given an account of Matter library includes multiple medium files, each medium file is distinguished with debugging label, in the medium file storehouse The medium file identical with the debugging label is searched, the medium file is the program code of one section of default settings, including more A method based on JavaScript scripting languages.
S203, according to the medium file, the method included to the destination application is written over;
In the embodiment of the present invention, the effect of the medium file is to intercept and capture the calling of the original page of destination application Method, debugging function is added to it, realizes the rewriting for the method that destination application described in other side includes, and can be whole with computer End is communicated, and performs the operational order of the terminal.Wherein, the process of communication is realized using ICP/IP protocol.
S204, when detect rewrite complete instruction when, obtain the first method that the destination application includes.
In the embodiment of the present invention, when rewrite operation is completed, the mobile terminal can send one rewrite complete instruction to The terminal, when the terminal detects that instruction is completed in the rewriting, obtains the destination application Comprising first method.
In the embodiment of the present invention, according to the medium file, the method included to the destination application is written over Method flow as shown in figure 3, including step:
The method to be debugged included in S301, the parsing destination application, the method to be debugged are at least one It is a;
In the embodiment of the present invention, the destination application includes multiple methods, but is not that each method is required for Rewrite, therefore, according to the debugging instruction, parse the method to be debugged included in the destination application, it is described to wait to adjust Method for testing can be one, or multiple.
S302, for each method to be debugged, according to the medium file, write in the method to be debugged default Debugging message.
In the embodiment of the present invention, according to the medium file, the method is intercepted, writes default tune in the method Information is tried, the default Debugging message writes the program of completion for one section in advance, it is possible to achieve the day for performing the method Will data feedback is to terminal.
In the embodiment of the present invention, obtain the method flow of the default conditions information of the first method as shown in figure 4, including Step:
S401, the input data and output data for obtaining the first method;
S402, the pattern letter for obtaining the destination application included in the DOM Document Object Model of the first method Breath.
In the embodiment of the present invention, the default conditions information includes two parts:A part is corresponding for the first method Function in the process of implementation output and input data, a part is the function in page corresponding with the destination application The information of the whole pages and pattern in face, the information of the whole page and pattern is with mobile application page documents object model The form storage of (Document Object Model) dom tree.The DOM, is the expansible mark of processing of W3C Organisation recommendations The standard programming interface of language.On webpage, the object of the tissue page (or document) is organized in a tree structure, is used for Represent that the master pattern of object in document is known as DOM.
In the embodiment of the present invention, the data that output and input are illustrated in the form of mobile application daily record, network request etc. On the corresponding debugging platform of terminal, the DOM is illustrated in the corresponding debugging of terminal in the form of HTML code On platform.
In the embodiment of the present invention, the adjustment method, further includes:Obtain the mobile terminal for running the destination application Parameter information, the parameter information is delivered to target terminal.The parameter information can be CPU, the memory of mobile terminal Etc. data.The purpose for obtaining the parameter information is to provide reference for the debugging of developer.What guarantee debugging obtained treats more New state information can normally operate in mobile terminal.
The correspondence of corresponding adjustment method Computer terminal and mobile terminal can be one in the embodiment of the present invention It can also be one-to-many to one, be only illustrated exemplified by one-to-one, the implementation procedure of the adjustment method is:
(1) destination application is packed and is installed on mobile terminal.
(2) destination application is started, mobile application engine corresponding with the destination application loads html page.
(3) during loading page, mobile application engine is debugged according to mobile application and configured, and dynamic generation obtains medium The debugging label of file, and be inserted into html page.
(4) destination application can ask medium file to remote debugging server, and this document is performed.
(5) after the medium file performs, log approach that the medium file is called the mobile application page, network The method debugged needed for requesting method etc. is rewritten.
(6) when destination application service logic runs to log approach, network request method the method debugged needed for, Taken over by the medium file.On the one hand the medium file continues to execute former function, on the one hand by the input in implementation procedure Output data feeds back to the debugging platform of terminal.
(7) the debugging platform of the terminal is according to the data got, the daily record of displaying mobile application, network request Etc. information.
(8) medium file begins stepping through the dom tree of the destination application page from root node, obtain whole pages and The current state information of pattern, and it is fed back to the debugging platform of terminal.
(9) the debugging platform of terminal shows mobile application HTML code according to the data got.
(10) developer debugs the pattern, modification element content, Yi Jixuan of the page on the debugging platform of terminal During middle element, the debugging platform of terminal can send operation pattern, modification element content, Yi Jixuan to the medium file Middle element instruction.
(11) medium file operates the page of destination application, enables developers to according to instruction Amended effect is seen on mobile terminal.
(12) data such as the CPU for mobile terminal, memory, by the plug-in unit of the mobile terminal from the operation of mobile terminal System obtains, and related data timing is passed to the medium file debugged in platform of terminal, anti-by medium file Feed the debugging platform of terminal, the debugging platform bandwagon effect of terminal.
(13) after debugging, the debugging platform for terminal of shutting down computer, exits the destination application that debugging is completed.
In the embodiment of the present invention, with the adjustment method of above-mentioned application program it is corresponding present invention also offers one kind should With the debugging system of program, the structure diagram of the debugging system as shown in figure 5, including:
First acquisition module 501, the second acquisition module 502, debugging module 503 and operation module 504.
Wherein,
First acquisition module 501, for when detecting the debugging instruction to destination application, obtaining the mesh The first method that mark application program includes;
Second acquisition module 502, for when detecting the execution of the first method, obtaining the first method Corresponding default conditions information;
The debugging module 503, for according to the debugging instruction, debugging, obtaining to the default conditions information Status information to be updated;
The operation module 504, the destination application is performed for the status information to be updated to be passed to Mobile terminal, makes the destination application be run according to the status information to be updated, realizes to the destination application Debugging.
The invention discloses a kind of debugging system of application program, applied to terminal and mobile terminal, including:When When detecting the debugging instruction to destination application, the first method that the destination application includes is obtained;When detecting During the execution of the first method, the corresponding default conditions information of the first method is obtained;According to the debugging instruction, to institute State default conditions information to be debugged, obtain status information to be updated;The status information to be updated is passed to described in execution The mobile terminal of destination application, makes the destination application be run according to the status information to be updated, realizes to institute State the debugging of destination application.Above-mentioned system, debugs the application program of mobile terminal by terminal, keeps away The debugging of application program in the prior art is exempted from, has been required for after application configuration is packed mobile terminal is installed the problem of, simplified Debugging flow.
In the embodiment of the present invention, first acquisition module 401 includes:
Resolution unit 405, first acquisition unit 406, rewriting unit 407 and detection unit 408.
Wherein,
The resolution unit 405, the debugging label included for parsing the destination application;
The first acquisition unit 406, for according to the debugging label, obtaining corresponding Jie of the destination application Matter file;
The rewriting unit 407, for according to the medium file, the method included to the destination application to carry out Rewrite;
The detection unit 408, for when detecting that rewriteeing completion instructs, obtaining what the destination application included First method.
In the embodiment of the present invention, the rewriting unit 407 includes:
Parse subelement 409 and write-in subelement 410.
Wherein,
The parsing subelement 409, it is described to treat for parsing the method to be debugged included in the destination application Adjustment method is at least one;
Said write subelement 410, for for each method to be debugged, according to the medium file, being treated described Default Debugging message is write in adjustment method.
In the embodiment of the present invention, second acquisition module 402 includes:
411 and the 3rd acquiring unit 412 of second acquisition unit.
Wherein,
The second acquisition unit 411, for obtaining the input data and output data of the first method;
3rd acquiring unit 412, the mesh included in the DOM Document Object Model for obtaining the first method Mark the style information of application program.
In the embodiment of the present invention, the application program debugging system further includes:
3rd acquisition module 412, for obtaining the parameter information for the mobile terminal for running the destination application, by institute State parameter information and be delivered to target terminal.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there are other identical element in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can Realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme essence On the part that contributes in other words to the prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment (can be personal computer, server, either network equipment etc.) performs some of each embodiment of the present invention or embodiment Method described in part.
The adjustment method and system of a kind of application program provided by the present invention are described in detail above, herein Apply specific case to be set forth the principle of the present invention and embodiment, the explanation of above example is only intended to help Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, There will be changes in specific embodiments and applications, in conclusion this specification content should not be construed as to this The limitation of invention.

Claims (10)

  1. A kind of 1. adjustment method of application program, it is characterised in that applied to terminal and mobile terminal, including:
    When detecting the debugging instruction to destination application, the first method that the destination application includes is obtained;
    When detecting the execution of the first method, the corresponding default conditions information of the first method is obtained;
    According to the debugging instruction, the default conditions information is debugged, obtains status information to be updated;
    The status information to be updated is passed to the mobile terminal for performing the destination application, makes the intended application journey Sequence is run according to the status information to be updated, realizes the debugging to the destination application.
  2. 2. according to the method described in claim 1, it is characterized in that, obtain the first method bag that the intended application journey includes Include:
    Parse the debugging label that the destination application includes;
    According to the debugging label, the corresponding medium file of the destination application is obtained;
    According to the medium file, the method included to the destination application is written over;
    When detecting that rewriteeing completion instructs, the first method that the destination application includes is obtained.
  3. 3. according to the method described in claim 2, it is characterized in that, according to the medium file, to the destination application Comprising method be written over, including:
    The method to be debugged included in the destination application is parsed, the method to be debugged is at least one;
    For each method to be debugged, according to the medium file, default debugging letter is write in the method to be debugged Breath.
  4. 4. according to the method described in claim 1, it is characterized in that, obtaining the default conditions information of the first method includes:
    Obtain the input data and output data of the first method;
    Obtain the style information of the destination application included in the DOM Document Object Model of the first method.
  5. 5. according to the method described in claim 1, it is characterized in that, further include:
    The parameter information for the mobile terminal for running the destination application is obtained, the parameter information is delivered to target end End.
  6. A kind of 6. debugging system of application program, it is characterised in that applied to terminal and mobile terminal, including:
    First acquisition module, for when detecting the debugging instruction to destination application, obtaining the destination application Comprising first method;
    Second acquisition module, for when detecting the execution of the first method, obtaining the corresponding acquiescence of the first method Status information;
    Debugging module, for according to the debugging instruction, being debugged to the default conditions information, obtaining state letter to be updated Breath;
    Module is run, the mobile terminal of the destination application, order are performed for the status information to be updated to be passed to The destination application is run according to the status information to be updated, realizes the debugging to the destination application.
  7. 7. system according to claim 6, it is characterised in that first acquisition module includes:
    Resolution unit, the debugging label included for parsing the destination application;
    First acquisition unit, for according to the debugging label, obtaining the corresponding medium file of the destination application;
    Rewriting unit, for according to the medium file, the method included to the destination application to be written over;
    Detection unit, for when detecting that rewriteeing completion instructs, obtaining the first method that the destination application includes.
  8. 8. system according to claim 7, it is characterised in that the rewriting unit includes:
    Subelement is parsed, for parsing the method to be debugged included in the destination application, the method to be debugged is extremely It is one less;
    Subelement is write, for for each method to be debugged, according to the medium file, being write in the method to be debugged Enter default Debugging message.
  9. 9. system according to claim 6, it is characterised in that second acquisition module includes:
    Second acquisition unit, for obtaining the input data and output data of the first method;
    3rd acquiring unit, the destination application included in the DOM Document Object Model for obtaining the first method Style information.
  10. 10. system according to claim 6, it is characterised in that further include:
    3rd acquisition module, for obtaining the parameter information for the mobile terminal for running the destination application, by the parameter Information is delivered to target terminal.
CN201711127987.3A 2017-11-15 2017-11-15 Debugging method and system for application program Active CN107918587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711127987.3A CN107918587B (en) 2017-11-15 2017-11-15 Debugging method and system for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711127987.3A CN107918587B (en) 2017-11-15 2017-11-15 Debugging method and system for application program

Publications (2)

Publication Number Publication Date
CN107918587A true CN107918587A (en) 2018-04-17
CN107918587B CN107918587B (en) 2021-07-13

Family

ID=61896281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711127987.3A Active CN107918587B (en) 2017-11-15 2017-11-15 Debugging method and system for application program

Country Status (1)

Country Link
CN (1) CN107918587B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874674A (en) * 2018-06-21 2018-11-23 北京金山安全软件有限公司 page debugging method and device
CN109783345A (en) * 2018-12-03 2019-05-21 百度在线网络技术(北京)有限公司 A kind of small routine performance test methods and system
CN110704262A (en) * 2019-09-17 2020-01-17 广州市玄武无线科技股份有限公司 Dynamic service logic debugging method, system, storage medium and intelligent device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060179352A1 (en) * 2005-02-10 2006-08-10 Tira Wireless Inc. Systems and methods for outputting debug messages
CN101493791A (en) * 2008-01-23 2009-07-29 希姆通信息技术(上海)有限公司 Computer debugging method and apparatus based on AT command of WINDOWS MOBILE
CN102855179A (en) * 2011-06-30 2013-01-02 国际商业机器公司 Program debugging method and system in virtual machine environment
CN102902618A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Method and device for developing and debugging application programs of mobile equipment
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN105357323A (en) * 2015-12-11 2016-02-24 北京京东尚科信息技术有限公司 HTML5 page debugging method and device in APP
CN105653448A (en) * 2015-12-25 2016-06-08 深圳中兴网信科技有限公司 Application debugging method, application debugging device and terminal
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN106878361A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 A kind of adjustment method of the terminal applies page, device and client
CN107277107A (en) * 2017-05-15 2017-10-20 深信服科技股份有限公司 Using adjustment method, apparatus and system
US9819758B2 (en) * 2014-04-28 2017-11-14 Sap Se Remote debugging into mobile web applications across devices

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060179352A1 (en) * 2005-02-10 2006-08-10 Tira Wireless Inc. Systems and methods for outputting debug messages
CN101493791A (en) * 2008-01-23 2009-07-29 希姆通信息技术(上海)有限公司 Computer debugging method and apparatus based on AT command of WINDOWS MOBILE
CN102855179A (en) * 2011-06-30 2013-01-02 国际商业机器公司 Program debugging method and system in virtual machine environment
CN102902618A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Method and device for developing and debugging application programs of mobile equipment
US9819758B2 (en) * 2014-04-28 2017-11-14 Sap Se Remote debugging into mobile web applications across devices
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN105357323A (en) * 2015-12-11 2016-02-24 北京京东尚科信息技术有限公司 HTML5 page debugging method and device in APP
CN106878361A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 A kind of adjustment method of the terminal applies page, device and client
CN105653448A (en) * 2015-12-25 2016-06-08 深圳中兴网信科技有限公司 Application debugging method, application debugging device and terminal
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN107277107A (en) * 2017-05-15 2017-10-20 深信服科技股份有限公司 Using adjustment method, apparatus and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874674A (en) * 2018-06-21 2018-11-23 北京金山安全软件有限公司 page debugging method and device
CN109783345A (en) * 2018-12-03 2019-05-21 百度在线网络技术(北京)有限公司 A kind of small routine performance test methods and system
CN109783345B (en) * 2018-12-03 2022-05-03 百度在线网络技术(北京)有限公司 Method and system for testing small program performance
CN110704262A (en) * 2019-09-17 2020-01-17 广州市玄武无线科技股份有限公司 Dynamic service logic debugging method, system, storage medium and intelligent device

Also Published As

Publication number Publication date
CN107918587B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN111679965A (en) Automatic testing method and device, computer equipment and storage medium
US10185546B2 (en) Service extraction and application composition
US20230236809A1 (en) Ios application program construction method and apparatus, electronic device, and storage medium
US10331425B2 (en) Automated source code adaption to inject features between platform versions
US10176270B2 (en) Performance of template based javascript widgets
JP2011070640A (en) Method and system for converting desktop application to web application
Wittern et al. Opportunities in software engineering research for web API consumption
CN107918587A (en) The adjustment method and system of a kind of application program
CN112685035A (en) Project development method and device, computer-readable storage medium and electronic device
CN104536398B (en) Frequency converter monitoring method and system
CN111008132B (en) Application debugging method and device for Android system, computer equipment and storage medium
CN107508846B (en) Updating method and system of application client and terminal equipment
CN104391717A (en) Method for dynamically updating code during debugging
CN111459495A (en) Unit test code file generation method, electronic device and storage medium
CN103186376A (en) Method, device and equipment for establishing or updating software development environment
CN107844300A (en) Script processing method and system
CN108287720B (en) Software compiling method, device, equipment and storage medium
CN110058849A (en) Generation method, device, computer equipment and the storage medium of flow chart
CN113791790A (en) Application program updating method and device, electronic equipment and storage medium
CN114116443A (en) Page data transmission method, device, system and medium
CN113296752A (en) Method, system, device and storage medium for generating API document
KR20130020135A (en) System and method of providing the developer list of developing code simultaneously in an integrated development environment
CN108614704B (en) Code compiling method and device
EP3974993A1 (en) Programming assist system and programming assist method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant