CN105653448B - Using adjustment method, using debugging apparatus and terminal - Google Patents

Using adjustment method, using debugging apparatus and terminal Download PDF

Info

Publication number
CN105653448B
CN105653448B CN201510992775.6A CN201510992775A CN105653448B CN 105653448 B CN105653448 B CN 105653448B CN 201510992775 A CN201510992775 A CN 201510992775A CN 105653448 B CN105653448 B CN 105653448B
Authority
CN
China
Prior art keywords
debugging
terminal
resource file
function
universal
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
CN201510992775.6A
Other languages
Chinese (zh)
Other versions
CN105653448A (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.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT Technologies 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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN201510992775.6A priority Critical patent/CN105653448B/en
Publication of CN105653448A publication Critical patent/CN105653448A/en
Application granted granted Critical
Publication of CN105653448B publication Critical patent/CN105653448B/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

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)

Abstract

The invention proposes a kind of application adjustment method, a kind of application debugging apparatus and a kind of terminals, wherein, include: to apply debug command according to what is received using adjustment method, the newest debugging version information for the server being connected with terminal is obtained by Universal debugging application program;According to the newest debugging version information of the server, judge whether the debugging version information of the stored debugging resource file of the terminal is consistent with the newest debugging version information;According to judging result, carried out in the terminal using debugging.According to the technical solution of the present invention, resource file is debugged by the Universal debugging application call target installed in terminal, and exploitation debugging can be directly carried out using the environment of terminal itself, debugging enironment or simulator without pacifying integrated complex, so that debugging process is easier, debugging cost is saved, reduces debugging difficulty, debugging efficiency is improved simultaneously, realizes the autonomous long-range exploitation debugging of terminal.

Description

Using adjustment method, using debugging apparatus and terminal
Technical field
The present invention relates to debugging technique field is applied, debugged in particular to a kind of application adjustment method, a kind of application Device and a kind of terminal.
Background technique
Market with mobile Internet is constantly expanding, and miscellaneous mobile application appears in the daily life of people In, therefore, the people for being engaged in mobile application development gradually increases.The adjustment method of general mobile application needs developer to exist The exploitation debugging enironment that integrated complex is installed on computer debug or debugged using simulator, in this way, not only debugging Journey is cumbersome, and inefficiency, in addition, meeting heavy dependence develops debugging enironment, and can not be real when developer debugs Now long-range exploitation debugging.
For this problem, general user is to access client ip address on the browser of server-side, passes through HTTP Mode sends debugging instruction to client, and then, client application carries out program debugging according to the debugging instruction, and will adjust State parameter during examination returns to server-side.
But in mobile network environment, the IP address of mobile client is all randomly assigned, in this way, server-side is only Long connection can be established with client can send debugging instruction message to client, however establishes and grow with client in server-side When connection, biggish additional system and more network overheads are needed, in addition, establishing long connection with client in server-side Afterwards, message push function is also realized between client and server-side, the implementation process of this scheme is more complicated, and practicability With convenience deficiency.
Therefore a kind of new technical solution is needed, the efficiency using debugging can be further promoted, reduces application debugging pair Develop the degree of dependence of debugging enironment.
Summary of the invention
The present invention is based on the above problems, proposes a kind of new technical solution, can further be promoted using debugging Efficiency, reduce application debugging to exploitation debugging enironment degree of dependence.
In view of this, an aspect of of the present present invention propose it is a kind of using adjustment method, comprising: adjusted according to the application received Examination order, the newest debugging version information for the server being connected with terminal is obtained by Universal debugging application program;According to described The newest debugging version information of server, judge the terminal it is stored debugging resource file debugging version information whether with The newest debugging version information is consistent;According to judging result, carried out in the terminal using debugging.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, wherein common application journey Sequence is integrated with the local function of third party's function and the terminal, and the target that terminal obtains debugs resource file, can be from The connected server of terminal obtains, and is also possible to obtain under the storage catalogue of terminal itself, in this way, getting target debugging After resource file, resource file is debugged by the Universal debugging application call target installed in terminal, and utilize terminal The environment of itself can directly carry out exploitation debugging, debugging enironment or simulator without pacifying integrated complex, so that debugging Process is easier, saves debugging cost, reduces debugging difficulty, while improving debugging efficiency, realizes terminal oneself Main long-range exploitation debugging.
In the above-mentioned technical solutions, it is preferable that it is described according to judging result, it is carried out in the terminal using debugging, tool Body includes: to determine that the stored debugging resource file of the terminal is latest edition when the judging result, which is, is, will be described Stored debugging resource file is set as the target debugging resource file;When the judging result is no, from the clothes The corresponding debugging resource file of the newest debugging resource file version information is downloaded as target debugging resource text in business end Part.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, is if it is directly made With the debugging resource file in terminal, if it is not, then the debugging resource file from server downloading latest edition is needed, thus Guarantee the accuracy and validity of debugging, while also achieving the autonomous long-range exploitation debugging of terminal, saves debugging cost, drop Low debugging difficulty, while improving debugging efficiency.
In the above-mentioned technical solutions, it is preferable that the general purpose application program is integrated with third party's function and the terminal Local function, and there is debugging function interface;And it is described according to judging result, it is carried out in the terminal using debugging, packet Include: the debugging function interface of the Universal debugging application program needed for debugging resource file by the target calls third party The local function of function or the terminal is carried out using debugging.
In the technical scheme, due to directly being debugged in terminal, it can directly utilize existing in terminal As exploitation debugging enironment, Universal debugging application program has dedicated debugging function interface, takes for ground function or third party's function For the scheme of original debugging enironment in server installation integrated complex or simulator.It is available by the technical solution The functional interface of terminal calls directly the contents such as local function or the third party's function of terminal and carries out as exploitation environment using tune Examination, this greatly reduces debugging costs and debugging difficulty, to ensure that the accuracy of debugging.
In the above-mentioned technical solutions, it is preferable that the local function of the terminal includes: short message, phone, address list, take pictures, Have and the local in picture library, recording, video, positioning, compass, bluetooth, accelerometer and the Universal debugging application program The relevant access right statement of function and the statement of functional interface call method;Third party's function includes: that third party logs in, divides Enjoy, pay, have the function of in two-dimensional code scanning, map and the Universal debugging application program it is relevant to the third party Access right statement and the statement of functional interface call method.
In the technical scheme, the local function of terminal includes but is not limited at least one of or combination: short message, electricity Words address list, are taken pictures, picture library, recording, video, positioning, compass, bluetooth, accelerometer, and equally, third party's function includes but unlimited In at least one of or combination: third party logs in, shares, paying, two-dimensional code scanning, map.Wherein, Universal debugging application journey It is provided in sequence and access right statement and functional interface call method sound is all had to the local function of third party's function and terminal It is bright, in this way, can be stated effectively to call general tune with the statement of functional interface call method according to access right when being debugged Application program is tried, debugging is smoothly completed.
In the above-mentioned technical solutions, it is preferable that it is described according to judging result, it is carried out in the terminal using debugging, packet It includes: setting debug point information;It is carried out by the debug point information being arranged using debugging, wherein the debug point information Processing mode include: to show debugging location parameter status information in the terminal, the end will be stored in using debugging result The application debugging result is sent to the server by end.
In the technical scheme, it can be debugged in the target of server side and dispose debug point information in resource file, thus After terminal gets target debugging resource file, so that it may be determined according to debug point information therein to application debugging result Processing mode, wherein the processing mode to application debugging result includes but is not limited to show debugging location parameter state in terminal Information will be stored in terminal, the application debugging result is sent to server process using debugging result.Believed by debug point The setting of breath facilitates the processing to application debugging result, facilitates exploitation debugging process.
In the above-mentioned technical solutions, it is preferable that the debugging resource file is based on dynamic language and/or static resource is raw At, wherein the dynamic language includes JavaScript, HTML5, CSS or XML, and the static resource includes picture.
In the technical scheme, dynamic language includes JavaScript, HTML5, CSS or XML, and static resource includes but not It is limited to picture, in addition, dynamic language can need other debugging resource files in addition to this according to.
In the above-mentioned technical solutions, it is preferable that the terminal has multiple operating systems, in the multiple operating system Each operating system corresponds to the debugging resource file grouping in the Universal debugging application program.
In the technical scheme, for multisystem terminal, each operating system has in Universal debugging application program One corresponding debugging resource file grouping, when debugging to objects such as application programs, can first determine belonging to the object Operating system, recall the operating system corresponding debugging resource file grouping and debugged, to meet different operation system The different demands of system have adapted to actual needs.
In the above-mentioned technical solutions, it is preferable that further include: the newest debugging resource text that will be downloaded from the server The corresponding debugging resource file of part version information is saved to the storage catalogue of the terminal, for lowering from the storage catalogue It is carried out with the debugging resource file using debugging.
In the technical scheme, the debugging resource file of latest edition can also be stored under the storage catalogue of terminal, So that terminal calls the debugging resource file when independently being debugged.In addition, when saving the debugging resource file of latest edition, Former debugging resource file, which can be covered, can not also cover original to save memory space, and in the case where memory space allows Resource file is debugged, the two is saved parallel, to transfer the relative recording of former debugging resource file in debugging process.
Another aspect of the present invention proposes a kind of using debugging apparatus, comprising: acquiring unit, according to the application received Debug command obtains the newest debugging version information for the server being connected with terminal by Universal debugging application program;Judgement is single Member judges the debugging version of the stored debugging resource file of the terminal according to the newest debugging version information of the server Whether this information is consistent with the newest debugging version information;Debugging unit is answered in the terminal according to judging result With debugging.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, wherein common application journey Sequence is integrated with the local function of third party's function and the terminal, and the target that terminal obtains debugs resource file, can be from The connected server of terminal obtains, and is also possible to obtain under the storage catalogue of terminal itself, in this way, getting target debugging After resource file, resource file is debugged by the Universal debugging application call target installed in terminal, and utilize terminal The environment of itself can directly carry out exploitation debugging, debugging enironment or simulator without pacifying integrated complex, so that debugging Process is easier, saves debugging cost, reduces debugging difficulty, while improving debugging efficiency, realizes terminal oneself Main long-range exploitation debugging.
In the above-mentioned technical solutions, it is preferable that the debugging unit is specifically used for: when the judging result, which is, is, really The fixed stored debugging resource file of terminal is latest edition, sets described for the stored debugging resource file Target debugs resource file, and when the judging result is no, from the server-side downloading newest debugging resource text The corresponding debugging resource file of part version information debugs resource file as the target.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, is if it is directly made With the debugging resource file in terminal, if it is not, then the debugging resource file from server downloading latest edition is needed, thus Guarantee the accuracy and validity of debugging, while also achieving the autonomous long-range exploitation debugging of terminal, saves debugging cost, drop Low debugging difficulty, while improving debugging efficiency.
In the above-mentioned technical solutions, it is preferable that the general purpose application program is integrated with third party's function and the terminal Local function, and there is debugging function interface;And the debugging unit includes: interface call unit, passes through the target tune The debugging function interface of the Universal debugging application program needed for trying resource file calls third party's function or the terminal Local function is carried out using debugging.
In the technical scheme, due to directly being debugged in terminal, it can directly utilize existing in terminal As exploitation debugging enironment, Universal debugging application program has dedicated debugging function interface, takes for ground function or third party's function For the scheme of original debugging enironment in server installation integrated complex or simulator.It is available by the technical solution The functional interface of terminal calls directly the contents such as local function or the third party's function of terminal and carries out as exploitation environment using tune Examination, this greatly reduces debugging costs and debugging difficulty, to ensure that the accuracy of debugging.
In the above-mentioned technical solutions, it is preferable that the local function of the terminal includes: short message, phone, address list, take pictures, Have and the local in picture library, recording, video, positioning, compass, bluetooth, accelerometer and the Universal debugging application program The relevant access right statement of function and the statement of functional interface call method;Third party's function include: third party log in, Have the function of in sharing, payment, two-dimensional code scanning, map and the Universal debugging application program related to the third party Access right statement and functional interface call method statement.
In the technical scheme, the local function of terminal includes but is not limited at least one of or combination: short message, electricity Words address list, are taken pictures, picture library, recording, video, positioning, compass, bluetooth, accelerometer, and equally, third party's function includes but unlimited In at least one of or combination: third party logs in, shares, paying, two-dimensional code scanning, map.Wherein, Universal debugging application journey It is provided in sequence and access right statement and functional interface call method sound is all had to the local function of third party's function and terminal It is bright, in this way, can be stated effectively to call general tune with the statement of functional interface call method according to access right when being debugged Application program is tried, debugging is smoothly completed.
In the above-mentioned technical solutions, it is preferable that the debugging unit includes: debug point setting unit, and setting debug point is believed Breath;Debug point processing unit is carried out by the debug point information being arranged using debugging, wherein the debug point information Processing mode include: to show debugging location parameter status information in the terminal, the end will be stored in using debugging result The application debugging result is sent to the server by end.
In the technical scheme, it can be debugged in the target of server side and dispose debug point information in resource file, thus After terminal gets target debugging resource file, so that it may be determined according to debug point information therein to application debugging result Processing mode, wherein the processing mode to application debugging result includes but is not limited to show debugging location parameter state in terminal Information will be stored in terminal, the application debugging result is sent to server process using debugging result.Believed by debug point The setting of breath facilitates the processing to application debugging result, facilitates exploitation debugging process.
In the above-mentioned technical solutions, it is preferable that the debugging resource file is based on dynamic language and/or static resource is raw At, wherein the dynamic language includes JavaScript, HTML5, CSS or XML, and the static resource includes picture.
In the technical scheme, dynamic language includes JavaScript, HTML5, CSS or XML, and static resource includes but not It is limited to picture, in addition, dynamic language can need other debugging resource files in addition to this according to.
In the above-mentioned technical solutions, it is preferable that the terminal has multiple operating systems, in the multiple operating system Each operating system corresponds to the debugging resource file grouping in the Universal debugging application program.
In the technical scheme, for multisystem terminal, each operating system has in Universal debugging application program One corresponding debugging resource file grouping, when debugging to objects such as application programs, can first determine belonging to the object Operating system, recall the operating system corresponding debugging resource file grouping and debugged, to meet different operation system The different demands of system have adapted to actual needs.
In the above-mentioned technical solutions, it is preferable that further include: storage unit, it is described newest by being downloaded from the server The corresponding debugging resource file of debugging resource file version information is saved to the storage catalogue of the terminal, for depositing from described The debugging resource file is called to carry out using debugging under storage catalogue.
In the technical scheme, the debugging resource file of latest edition can also be stored under the storage catalogue of terminal, So that terminal calls the debugging resource file when independently being debugged.In addition, when saving the debugging resource file of latest edition, Former debugging resource file, which can be covered, can not also cover original to save memory space, and in the case where memory space allows Resource file is debugged, the two is saved parallel, to transfer the relative recording of former debugging resource file in debugging process.
Another aspect of the invention proposes a kind of terminal, including described in any of the above embodiments using debugging apparatus, therefore, The terminal has technical effect identical with application debugging apparatus described in any of the above embodiments, and details are not described herein.
By above technical scheme, the Universal debugging application call target debugging resource file installed in terminal, And exploitation debugging can be directly carried out using the environment of terminal itself, debugging enironment or simulation without pacifying integrated complex Device saves debugging cost so that debugging process is easier, reduces debugging difficulty, while improving debugging efficiency, realizes The autonomous long-range exploitation debugging of terminal.
Detailed description of the invention
Fig. 1 shows the flow chart according to an embodiment of the invention using adjustment method;
Fig. 2 shows the flow charts according to an embodiment of the invention using debugging apparatus;
Fig. 3 shows the block diagram of terminal according to an embodiment of the invention;
Fig. 4 shows the flow chart of downloading debugging resource file according to an embodiment of the invention;
Fig. 5 shows the flow chart using adjustment method according to another embodiment of the invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the flow chart according to an embodiment of the invention using adjustment method.
As shown in Figure 1, according to an embodiment of the invention apply adjustment method, comprising:
Step 102, debug command is applied according to what is received, is connected by the acquisition of Universal debugging application program with terminal The newest debugging version information of server;
Step 104, according to the newest debugging version information of the server, judge the stored debugging resource of the terminal Whether the debugging version information of file is consistent with the newest debugging version information;
Step 106, it according to judging result, is carried out in the terminal using debugging.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, wherein common application journey Sequence is integrated with the local function of third party's function and the terminal, and the target that terminal obtains debugs resource file, can be from The connected server of terminal obtains, and is also possible to obtain under the storage catalogue of terminal itself, in this way, getting target debugging After resource file, resource file is debugged by the Universal debugging application call target installed in terminal, and utilize terminal The environment of itself can directly carry out exploitation debugging, debugging enironment or simulator without pacifying integrated complex, so that debugging Process is easier, saves debugging cost, reduces debugging difficulty, while improving debugging efficiency, realizes terminal oneself Main long-range exploitation debugging.
In the above-mentioned technical solutions, it is preferable that step 106 specifically includes: when the judging result, which is, is, described in determination The stored debugging resource file of terminal is latest edition, sets the target tune for the stored debugging resource file Try resource file;When the judging result is no, the newest debugging resource file version information is downloaded from the server-side Corresponding debugging resource file debugs resource file as the target.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, is if it is directly made With the debugging resource file in terminal, if it is not, then the debugging resource file from server downloading latest edition is needed, thus Guarantee the accuracy and validity of debugging, while also achieving the autonomous long-range exploitation debugging of terminal, saves debugging cost, drop Low debugging difficulty, while improving debugging efficiency.
In the above-mentioned technical solutions, it is preferable that the general purpose application program is integrated with third party's function and the terminal Local function, and there is debugging function interface;And step 106 includes: institute needed for debugging resource file by the target The debugging function interface for stating Universal debugging application program calls the local function of third party's function or the terminal to carry out using tune Examination.
In the technical scheme, due to directly being debugged in terminal, it can directly utilize existing in terminal As exploitation debugging enironment, Universal debugging application program has dedicated debugging function interface, takes for ground function or third party's function For the scheme of original debugging enironment in server installation integrated complex or simulator.It is available by the technical solution The functional interface of terminal calls directly the contents such as local function or the third party's function of terminal and carries out as exploitation environment using tune Examination, this greatly reduces debugging costs and debugging difficulty, to ensure that the accuracy of debugging.
In the above-mentioned technical solutions, it is preferable that the local function of the terminal includes: short message, phone, address list, take pictures, Have and the local in picture library, recording, video, positioning, compass, bluetooth, accelerometer and the Universal debugging application program The relevant access right statement of function and the statement of functional interface call method;Third party's function includes: that third party logs in, divides Enjoy, pay, have the function of in two-dimensional code scanning, map and the Universal debugging application program it is relevant to the third party Access right statement and the statement of functional interface call method.
In the technical scheme, the local function of terminal includes but is not limited at least one of or combination: short message, electricity Words address list, are taken pictures, picture library, recording, video, positioning, compass, bluetooth, accelerometer, and equally, third party's function includes but unlimited In at least one of or combination: third party logs in, shares, paying, two-dimensional code scanning, map.Wherein, Universal debugging application journey It is provided in sequence and access right statement and functional interface call method sound is all had to the local function of third party's function and terminal It is bright, in this way, can be stated effectively to call general tune with the statement of functional interface call method according to access right when being debugged Application program is tried, debugging is smoothly completed.
In the above-mentioned technical solutions, it is preferable that step 106 includes: setting debug point information;Pass through the tune being arranged Pilot information is carried out using debugging, wherein the processing mode of the debug point information includes: to show debugging position in the terminal Parameter status information will be stored in the terminal or the application debugging result is sent to the service using debugging result Device.
In the technical scheme, it can be debugged in the target of server side and dispose debug point information in resource file, thus After terminal gets target debugging resource file, so that it may be determined according to debug point information therein to application debugging result Processing mode, wherein the processing mode to application debugging result includes but is not limited to show debugging location parameter state in terminal Information will be stored in terminal using debugging result, will be sent to server process using debugging result.Pass through debug point information Setting facilitates the processing to application debugging result, facilitates exploitation debugging process.
In the above-mentioned technical solutions, it is preferable that the debugging resource file is based on dynamic language and/or static resource is raw At, wherein the dynamic language includes JavaScript, HTML5, CSS or XML, and the static resource includes picture.
In the technical scheme, dynamic language includes JavaScript, HTML5, CSS or XML, and static resource includes but not It is limited to picture, in addition, dynamic language can need other debugging resource files in addition to this according to.
In the above-mentioned technical solutions, it is preferable that the terminal has multiple operating systems, in the multiple operating system Each operating system corresponds to the debugging resource file grouping in the Universal debugging application program.
In the technical scheme, for multisystem terminal, each operating system has in Universal debugging application program One corresponding debugging resource file grouping, when debugging to objects such as application programs, can first determine belonging to the object Operating system, recall the operating system corresponding debugging resource file grouping and debugged, to meet different operation system The different demands of system have adapted to actual needs.
In the above-mentioned technical solutions, it is preferable that further include: the newest debugging resource file version downloaded from server is believed Corresponding debugging resource file is ceased to save to the storage catalogue of terminal, under storage catalogue call debugging resource file into Row application debugging.
In the technical scheme, the debugging resource file of latest edition can also be stored under the storage catalogue of terminal, So that terminal calls the debugging resource file when independently being debugged.In addition, when saving the debugging resource file of latest edition, Former debugging resource file, which can be covered, can not also cover original to save memory space, and in the case where memory space allows Resource file is debugged, the two is saved parallel, to transfer the relative recording of former debugging resource file in debugging process.
Fig. 2 shows the flow charts according to an embodiment of the invention using debugging apparatus.
As shown in Fig. 2, application debugging apparatus 200 according to an embodiment of the invention, comprising: acquiring unit 202, root Debug command is applied according to what is received, the newest debugging version for the server being connected with terminal is obtained by Universal debugging application program This information;Judging unit 204 judges the stored debugging of the terminal according to the newest debugging version information of the server Whether the debugging version information of resource file is consistent with the newest debugging version information;Debugging unit 206 is tied according to judgement Fruit is carried out in the terminal using debugging.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, wherein common application journey Sequence is integrated with the local function of third party's function and the terminal, and the target that terminal obtains debugs resource file, can be from The connected server of terminal obtains, and is also possible to obtain under the storage catalogue of terminal itself, in this way, getting target debugging After resource file, resource file is debugged by the Universal debugging application call target installed in terminal, and utilize terminal The environment of itself can directly carry out exploitation debugging, debugging enironment or simulator without pacifying integrated complex, so that debugging Process is easier, saves debugging cost, reduces debugging difficulty, while improving debugging efficiency, realizes terminal oneself Main long-range exploitation debugging.
In the above-mentioned technical solutions, it is preferable that debugging unit is specifically used for: when the judging result, which is, is, determining institute Stating the stored debugging resource file of terminal is latest edition, sets the target for the stored debugging resource file Resource file is debugged, and when the judging result is no, downloads the newest debugging resource file version from the server-side The corresponding debugging resource file of this information debugs resource file as the target.
In the technical scheme, newest tune can be obtained from the server being connected with terminal by Universal debugging application program Resource file version information is tried, to judge whether the debugging resource file of terminal storage is latest edition, is if it is directly made With the debugging resource file in terminal, if it is not, then the debugging resource file from server downloading latest edition is needed, thus Guarantee the accuracy and validity of debugging, while also achieving the autonomous long-range exploitation debugging of terminal, saves debugging cost, drop Low debugging difficulty, while improving debugging efficiency.
In the above-mentioned technical solutions, it is preferable that the general purpose application program is integrated with third party's function and the terminal Local function, and there is debugging function interface;And the debugging unit 206 includes: interface call unit 2062, by described The debugging function interface of the Universal debugging application program needed for target debugs resource file calls third party's function or described The local function of terminal is carried out using debugging.
In the technical scheme, due to directly being debugged in terminal, it can directly utilize existing in terminal As exploitation debugging enironment, Universal debugging application program has dedicated debugging function interface, takes for ground function or third party's function For the scheme of original debugging enironment in server installation integrated complex or simulator.It is available by the technical solution The functional interface of terminal calls directly the contents such as local function or the third party's function of terminal and carries out as exploitation environment using tune Examination, this greatly reduces debugging costs and debugging difficulty, to ensure that the accuracy of debugging.
In the above-mentioned technical solutions, it is preferable that the local function of the terminal includes: short message, phone, address list, take pictures, Have and the local in picture library, recording, video, positioning, compass, bluetooth, accelerometer and the Universal debugging application program The relevant access right statement of function and the statement of functional interface call method;Third party's function includes: that third party logs in, divides Enjoy, pay, have the function of in two-dimensional code scanning, map and the Universal debugging application program it is relevant to the third party Access right statement and the statement of functional interface call method.
In the technical scheme, the local function of terminal includes but is not limited at least one of or combination: short message, electricity Words address list, are taken pictures, picture library, recording, video, positioning, compass, bluetooth, accelerometer, and equally, third party's function includes but unlimited In at least one of or combination: third party logs in, shares, paying, two-dimensional code scanning, map.Wherein, Universal debugging application journey It is provided in sequence and access right statement and functional interface call method sound is all had to the local function of third party's function and terminal It is bright, in this way, can be stated effectively to call general tune with the statement of functional interface call method according to access right when being debugged Application program is tried, debugging is smoothly completed.
In the above-mentioned technical solutions, it is preferable that the debugging unit 206 includes: debug point setting unit 2064, and setting is adjusted Pilot information;Debug point processing unit 2066 is carried out by the debug point information being arranged using debugging, wherein described The processing mode of debug point information includes: to show debug location parameter status information, will deposit using debugging result in the terminal Storage is sent to the server in the terminal or by the application debugging result.
In the technical scheme, it can be debugged in the target of server side and dispose debug point information in resource file, thus After terminal gets target debugging resource file, so that it may be determined according to debug point information therein to application debugging result Processing mode, wherein the processing mode to application debugging result includes but is not limited to show debugging location parameter state in terminal Information will be stored in terminal using debugging result, will be sent to server process using debugging result.Pass through debug point information Setting facilitates the processing to application debugging result, facilitates exploitation debugging process.
In the above-mentioned technical solutions, it is preferable that the debugging resource file is based on dynamic language and/or static resource is raw At, wherein the dynamic language includes JavaScript, HTML5, CSS or XML, and the static resource includes picture.
In the technical scheme, dynamic language includes JavaScript, HTML5, CSS or XML, and static resource includes but not It is limited to picture, in addition, dynamic language can need other debugging resource files in addition to this according to.
In the above-mentioned technical solutions, it is preferable that the terminal has multiple operating systems, in the multiple operating system Each operating system corresponds to the debugging resource file grouping in the Universal debugging application program.
In the technical scheme, for multisystem terminal, each operating system has in Universal debugging application program One corresponding debugging resource file grouping, when debugging to objects such as application programs, can first determine belonging to the object Operating system, recall the operating system corresponding debugging resource file grouping and debugged, to meet different operation system The different demands of system have adapted to actual needs.
In the above-mentioned technical solutions, it is preferable that further include: storage unit 208 provides the newest debugging downloaded from server The corresponding debugging resource file of source file version information is saved to the storage catalogue of terminal, is adjusted for calling under storage catalogue Examination resource file is carried out using debugging.
In the technical scheme, the debugging resource file of latest edition can also be stored under the storage catalogue of terminal, So that terminal calls the debugging resource file when independently being debugged.In addition, when saving the debugging resource file of latest edition, Former debugging resource file, which can be covered, can not also cover original to save memory space, and in the case where memory space allows Resource file is debugged, the two is saved parallel, to transfer the relative recording of former debugging resource file in debugging process.
Fig. 3 shows the block diagram of terminal according to an embodiment of the invention.
As shown in figure 3, terminal 300 according to an embodiment of the invention, including Fig. 2 shows apply debugging apparatus 200, therefore, terminal 300 has technical effect identical with application debugging apparatus 200, and details are not described herein.
Fig. 4 shows the flow chart of downloading debugging resource file according to an embodiment of the invention.
As shown in figure 4, the process of downloading debugging resource file according to an embodiment of the invention includes:
Step 402, debugging resource file is disposed in server-side.
Step 404, mobile device installation and debugging test program.
Step 406, the debugging resource file latest version information of mobile device access server-side.
Step 408, judge to debug whether resource file has new version, when the judgment result is yes, enter step 410, it is no Then terminate process.
Step 410, newest debugging resource file is downloaded.
Step 412, by the storage of newest debugging resource file into mobile device.
Fig. 5 shows the flow chart using adjustment method according to another embodiment of the invention.
As shown in figure 5, according to another embodiment of the invention include: using the process of adjustment method
Step 502, Universal debugging application program is run in the terminal.
Step 504, resource file is debugged in load in the terminal.
Step 506, judge whether that downloading saved new version, when the judgment result is yes, enter step 508, otherwise, into Enter step 510.Universal debugging application program loads newest debugging version information by this judgment step, to be adjusted Examination.
Step 508, judge that the debugging resource file whether there is, when the judgment result is yes, enter step 512, otherwise, Enter step 510.
Step 510, load is using resource file under catalogue.
Step 512, the debugging resource file under download path catalogue is loaded.
Step 514, save or show in the terminal Debugging message.
The step of describing application adjustment method of the invention combined with specific embodiments below.
Step 1: debug point information being set in the debugging resource file generated based on dynamic language, then will debug resource File is deployed in server-side, and updates debugging resource file version information.
Wherein, debugging resource file is generated based on dynamic language, including but not limited to such as JavaScript, HTML5, The dynamic languages such as CSS, XML, while further including the static resources such as picture.
Specifically, debug point information is arranged in the position for needing to debug in debugging resource file, and debug point information can It is arranged to different processing modes, one kind being arranged to application program and shows debugging location parameter status information in time;One is It is arranged to save Debugging message and is stored in client local at file;One kind is arranged to send Debugging message by network To server-side.
Step 2: mobile terminal installs Universal debugging application program, is integrated with all local functions of mobile device and common the Tripartite's function, and correlation function system access right is stated in the application, these functional interfaces are for based on dynamic language The debugging resource file of generation calls.
Wherein, Universal debugging application program has versatility, suitable for all debugging resources generated based on dynamic language File is not directed to specific mobile application.Universal debugging application program is integrated with all local functions of mobile device, including but Be not limited only to: short message phone, address list, is taken pictures, picture library, recording, video, positioning, compass, bluetooth, accelerometer etc., while Local function system access right is stated in, and externally states functional interface call method, debugs resource file Mobile device local function can be called directly by functional interface.Universal debugging application program is integrated with common third party's function Can, include but are not limited to: third party logs in, shares, paying, two-dimensional code scanning, map etc.;State phase in the application simultaneously Function system access right is closed, and externally states third party's functional interface call method, debugging resource file can pass through Functional interface calls directly third party's function.
Step 3: server-side access information being set in debugging test program, then by network access service end, is obtained Network-side debugs resource file latest version information.
Step 4: if server-side has new debugging resource file version, newest debugging resource text directly being downloaded by network Part is simultaneously stored in mobile device storage catalogue file.
Step 5: mobile client runs Universal debugging application program, carries out first to the debugging resource file that will be loaded Judgement is debugged test application load and is visited if there is the resource debugging file of latest edition under mobile device storage catalogue file Ask the newest debugging resource file under the storage catalogue, otherwise load is using the debugging resource file under catalogue.
Step 6: operating debugging test program according to debugging step, debugging test program debugs resource file in load operating When, according to the debug point information being arranged in resource file, corresponding processing is done to Debugging message.Such as with interface pop-up or information Prompting frame mode shows debugging location parameter status information in time, or Debugging message is stored in client sheet with file mode Ground, customer analysis document alignment problem;Or Debugging message is sent to server-side, server-side storage debugging letter by network Breath, timely analyzing and positioning problem.
Step 7: according to Debugging message, tracking modification resource file program, to realize mobile application debugging exploitation purpose.
In addition, the Different treatments of debug point information are respectively as following three specific real according to above-mentioned steps 1 It applies shown in example.
Specific embodiment one:
Step 1: debug point is set in debugging resource file, debug point parameter status information is shown in the form of pop-up, it will Debugging resource file is deployed in server-side, and updates debugging resource file version information.
Step 2: mobile terminal installs Universal debugging application program.
Step 3: debugging test program obtains network-side debugging resource file latest edition letter by network access service end Breath.
Step 4: newest debugging resource file being downloaded by network and is stored in mobile device storage catalogue file.
Step 5: running Universal debugging application program, the newest debugging resource file under load store catalogue.
Step 6: operating debugging test program according to debugging step, load operating debugs resource file, with interface pop-up side Formula shows debugging location parameter status information in time.
Step 7: according to Debugging message, tracking modification resource file program, to realize mobile application debugging exploitation purpose.
Specific embodiment two:
Step 1: debug point being set in debugging resource file, debug point parameter status information is saved with file mode.
Step 2: mobile terminal installs Universal debugging application program.
Step 3: debugging test program is by network access service end, temporarily without newest debugging resource file.
Step 4: operation Universal debugging application program, load is using the debugging resource file under catalogue.
Step 5: operating debugging test program according to debugging step, load operating debugs resource file, by debugging position ginseng Number state information is stored in client local with file mode.
Step 6: Study document, positioning test problem, tracking modification resource file program, to realize that mobile application is debugged Develop purpose.
Specific embodiment three:
Step 1: debug point is set in debugging resource file, debug point information is sent to server-side by network, it will Debugging resource file is deployed in server-side, and updates debugging resource file version information.
Step 2: mobile terminal installs Universal debugging application program.
Step 3: debugging test program obtains network-side debugging resource file latest edition letter by network access service end Breath.
Step 4: newest debugging resource file being downloaded by network and is stored in mobile device storage catalogue file.
Step 5: running Universal debugging application program, the newest debugging resource file under load store catalogue.
Step 6: operating debugging test program according to debugging step, load operating debugs resource file, Debugging message is led to It crosses network and is sent to server-side, server-side stores Debugging message, timely analyzing and positioning problem.
Step 7: according to Debugging message, tracking modification resource file program, to realize mobile application debugging exploitation purpose.
Furthermore application adjustment method of the invention also corresponds to a kind of mobile application debugging apparatus, which includes following Unit:
Request unit, for obtaining the HTTP request of debugging test program, wherein the HTTP request is that debugging is surveyed The newest debugging resource file version information that examination PROGRAMMED REQUESTS obtains;Server end version judging unit, for judging server-side Whether newest debugging resource file version is had;Transmission unit, for judging that server-side has newest debugging resource file version This when, by the downloading storage of latest edition resource file into mobile device;Terminal versions judging unit, for judging mobile device Whether the resource debugging file of new version is had under certain storage catalogue file, the resource text under application load access storage catalogue if having Part, otherwise load is using resource file under catalogue;Storage unit is used in debugging process, according to what is be arranged in resource file Debug point saves debugging log information.
In the description of this specification, the description of term " one embodiment ", " another embodiment " etc. means to combine and be somebody's turn to do The particular features, structures, materials, or characteristics of embodiment or example description be contained at least one embodiment for inventing of the present invention or In example.In the present specification, schematic expression of the above terms are not necessarily referring to identical embodiment or example.And And the particular features, structures, materials, or characteristics of description can be in any one or more of the embodiments or examples with suitable Mode combines.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, according to the technical solution of the present invention, passes through terminal The Universal debugging application call of the middle installation target debugs resource file, and can be direct using the environment of terminal itself Exploitation debugging is carried out, the debugging enironment or simulator without pacifying integrated complex save tune so that debugging process is easier Cost is tried, reduces debugging difficulty, while improving debugging efficiency, realizes the autonomous long-range exploitation debugging of terminal.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of apply adjustment method characterized by comprising
Debug command is applied according to what is received, the newest of the server being connected with terminal is obtained by Universal debugging application program Debug version information;
According to the newest debugging version information of the server, the debugging version of the stored debugging resource file of the terminal is judged Whether this information is consistent with the newest debugging version information;
According to judging result, carried out in the terminal using debugging;
The Universal debugging application program is integrated with the local function of third party's function and the terminal, and connects with debugging function Mouthful;And
It is described according to judging result, carried out in the terminal using debugging, comprising:
The debugging function interface of the Universal debugging application program needed for debugging resource file by target calls third party's function Energy or the local function of the terminal are carried out using debugging.
2. according to claim 1 apply adjustment method, which is characterized in that it is described according to judging result, in the terminal In carry out using debugging, specifically include:
When the judging result, which is, is, determine that the stored debugging resource file of the terminal is latest edition, by described in The debugging resource file of storage is set as the target debugging resource file;
When the judging result is no, the corresponding tune of the newest debugging resource file version information is downloaded from the server-side Resource file is tried as the target and debugs resource file.
3. it is according to claim 1 apply adjustment method, which is characterized in that the local function of the terminal include: short message, Phone address list, is taken pictures, picture library, recording, video, positioning, compass, bluetooth, accelerometer and the Universal debugging application journey There is access right relevant to local function statement and the statement of functional interface call method in sequence;
Third party's function include: third party log in, share, paying, two-dimensional code scanning, map and the Universal debugging Have the function of access right statement relevant to the third party and the statement of functional interface call method in application program.
4. according to claim 1 or 2 apply adjustment method, which is characterized in that it is described according to judging result, at the end It is carried out in end using debugging, comprising:
Debug point information is set;
It is carried out by the debug point information being arranged using debugging, wherein the processing mode of the debug point information includes: Debugging location parameter status information is shown in the terminal, using debugging result will be stored in the terminal or by the application tune Test result is sent to the server.
5. according to claim 2 apply adjustment method, which is characterized in that the debugging resource file is based on dynamic language And/or static resource generates, wherein the dynamic language includes JavaScript, HTML5, CSS or XML, the static resource Including picture.
6. according to claim 1 or 2 apply adjustment method, which is characterized in that the terminal has multiple operating systems, Each operating system in the multiple operating system corresponds to a debugging resource text in the Universal debugging application program Part grouping.
7. a kind of apply debugging apparatus characterized by comprising
Acquiring unit applies debug command according to what is received, obtains the clothes being connected with terminal by Universal debugging application program The newest debugging version information of business device;
Judging unit judges the stored debugging resource text of the terminal according to the newest debugging version information of the server Whether the debugging version information of part is consistent with the newest debugging version information;
Debugging unit is carried out in the terminal according to judging result using debugging;
The Universal debugging application program is integrated with the local function of third party's function and the terminal, and connects with debugging function Mouthful;And
The debugging unit includes:
Interface call unit, the debugging function interface of the Universal debugging application program needed for debugging resource file by target The local function of third party's function or the terminal is called to carry out using debugging.
8. according to claim 7 apply debugging apparatus, which is characterized in that the debugging unit is specifically used for:
When the judging result, which is, is, determine that the stored debugging resource file of the terminal is latest edition, by described in The debugging resource file of storage is set as target debugging resource file, and when the judging result is no, from described Server-side downloads the corresponding debugging resource file of the newest debugging resource file version information as the target and debugs resource File.
9. it is according to claim 7 apply debugging apparatus, which is characterized in that the local function of the terminal include: short message, Phone address list, is taken pictures, picture library, recording, video, positioning, compass, bluetooth, accelerometer and the Universal debugging application journey There is access right relevant to local function statement and the statement of functional interface call method in sequence;
Third party's function include: third party log in, share, paying, two-dimensional code scanning, map and the Universal debugging Have the function of access right statement relevant to the third party and the statement of functional interface call method in application program.
10. according to claim 7 or 8 apply debugging apparatus, which is characterized in that the debugging unit includes:
Debug point information is arranged in debug point setting unit;
Debug point processing unit is carried out by the debug point information being arranged using debugging, wherein the debug point information Processing mode include: to show debugging location parameter status information in the terminal, the end will be stored in using debugging result The application debugging result is sent to the server by end.
11. according to claim 8 apply debugging apparatus, which is characterized in that the debugging resource file is based on dynamic language Speech and/or static resource generate, wherein the dynamic language includes JavaScript, HTML5, CSS or XML, the static money Source includes picture.
12. according to claim 7 or 8 apply debugging apparatus, which is characterized in that the terminal is with multiple operations system It unites, each operating system in the multiple operating system corresponds to a debugging resource in the Universal debugging application program File grouping.
13. a kind of terminal, which is characterized in that including applying debugging apparatus as described in any one of claim 7 to 12.
CN201510992775.6A 2015-12-25 2015-12-25 Using adjustment method, using debugging apparatus and terminal Active CN105653448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510992775.6A CN105653448B (en) 2015-12-25 2015-12-25 Using adjustment method, using debugging apparatus and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510992775.6A CN105653448B (en) 2015-12-25 2015-12-25 Using adjustment method, using debugging apparatus and terminal

Publications (2)

Publication Number Publication Date
CN105653448A CN105653448A (en) 2016-06-08
CN105653448B true CN105653448B (en) 2019-04-30

Family

ID=56476836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510992775.6A Active CN105653448B (en) 2015-12-25 2015-12-25 Using adjustment method, using debugging apparatus and terminal

Country Status (1)

Country Link
CN (1) CN105653448B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126420B (en) * 2016-06-21 2018-12-18 北京小米移动软件有限公司 Application program adjustment method and device
CN106547700B (en) * 2016-12-08 2019-08-06 广东小天才科技有限公司 A kind of method and device of program debugging
CN107918587B (en) * 2017-11-15 2021-07-13 北京中电普华信息技术有限公司 Debugging method and system for application program
CN110098980B (en) * 2019-04-18 2022-06-14 深圳壹账通智能科技有限公司 Network debugging method and device, computer equipment and storage medium
CN111049912A (en) * 2019-12-17 2020-04-21 用友网络科技股份有限公司 Debugging method, test development device, and computer-readable storage medium
CN112486836B (en) * 2020-12-09 2024-04-09 北京展心展力信息科技有限公司 Method, device, electronic equipment and medium for debugging release package
CN113032248A (en) * 2021-03-05 2021-06-25 粒界(上海)信息科技有限公司 Application debugging method and device of android system, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902618A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Method and device for developing and debugging application programs of mobile equipment
CN104735112A (en) * 2013-12-23 2015-06-24 阿里巴巴集团控股有限公司 Resource file sending method and resource file caching method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168994A1 (en) * 2005-11-03 2007-07-19 International Business Machines Corporation Debugging a computer program in a distributed debugger
US9053607B2 (en) * 2013-01-30 2015-06-09 Wms Gaming, Inc. Emulator for production software outcome validation
CN103268288A (en) * 2013-06-18 2013-08-28 北京云测信息技术有限公司 Remote real machine debugging method and system of mobile terminal application software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902618A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Method and device for developing and debugging application programs of mobile equipment
CN104735112A (en) * 2013-12-23 2015-06-24 阿里巴巴集团控股有限公司 Resource file sending method and resource file caching method and device

Also Published As

Publication number Publication date
CN105653448A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105653448B (en) Using adjustment method, using debugging apparatus and terminal
CN105389222B (en) A kind of methods, devices and systems of dynamic call native interface
CN103150513B (en) The method of the implantation information in interception application program and device
US9563544B2 (en) Framework for automated testing of mobile apps
CN104660620B (en) Two dimensional code processing method, client, electronic equipment, server end and server
CN112000348A (en) Control method and device for service gray release and computer equipment
CN104750487B (en) A kind of development approach and starting method of mobile terminal APP
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
CN108958927A (en) Dispositions method, device, computer equipment and the storage medium of container application
US20160173651A1 (en) Conditional Logic for Delivering Computer-Executable Program Instructions and Content
CN106302445B (en) Method and apparatus for handling request
US20230308504A9 (en) Method and system of application development for multiple device client platforms
CN108491236A (en) A kind of plug-in loading method, device and computer readable storage medium
CN109783388A (en) UI automated testing method, device and electronic equipment
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
US10606586B2 (en) Application architecture generation
CN105450461A (en) Shunting method and network equipment
CN108614767A (en) A kind of remote debugging method and device
CN108255708B (en) Method, device, storage medium and equipment for accessing production file in test environment
CN109815105A (en) Applied program testing method and device based on Btrace
CN110968331A (en) Method and device for running application program
CN113704110A (en) Automatic testing method and device for user interface
US20170161171A1 (en) Tenant Code Debugging in Multi-Tenant Systems
CN111881394A (en) Request processing method and system for application intermediate layer
CN103561082B (en) Compressing request processing method and server

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