CN110908899A - Application program debugging method, mobile terminal and computer readable storage medium - Google Patents

Application program debugging method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN110908899A
CN110908899A CN201911090127.6A CN201911090127A CN110908899A CN 110908899 A CN110908899 A CN 110908899A CN 201911090127 A CN201911090127 A CN 201911090127A CN 110908899 A CN110908899 A CN 110908899A
Authority
CN
China
Prior art keywords
debugging
application program
control
target
selection operation
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.)
Pending
Application number
CN201911090127.6A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911090127.6A priority Critical patent/CN110908899A/en
Publication of CN110908899A publication Critical patent/CN110908899A/en
Pending legal-status Critical Current

Links

Images

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

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 embodiment of the invention provides a debugging method of an application program, a mobile terminal and a computer readable storage medium, wherein the debugging method of the application program is applied to the mobile terminal, the mobile terminal is embedded with a debugging program for debugging the application program, and the method comprises the following steps: receiving a debugging instruction input by a user under the condition that the application program is in a running state; responding to the debugging instruction, and running the debugging program; receiving debugging object selection operation input by a user; determining a target debugging object selected by the debugging object selection operation; and outputting debugging parameters of the target debugging object. The application program debugging method, the mobile terminal and the computer readable storage medium provided by the embodiment of the invention are beneficial to debugging personnel to solve the problems existing in the application program in time.

Description

Application program debugging method, mobile terminal and computer readable storage medium
Technical Field
The invention relates to the field of application program development, in particular to a debugging method of an application program, a mobile terminal and a computer readable storage medium.
Background
With the technical development of mobile terminals such as mobile phones and tablets, more and more applications are used for the mobile terminals. After a new application is developed, it is often necessary to run the application on the mobile terminal to see if the application can run properly on the mobile terminal. If the application program cannot normally run on the mobile terminal, the application program needs to be debugged, at present, the application program is debugged usually by a computer with a development environment, otherwise, the application program cannot be debugged. However, some defects of the application program only exist under specific working conditions (such as a specific network environment), and if the application program is debugged through a computer, the defects may not be reproduced, which is not beneficial for a debugger to solve the problems existing in the application program in time.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method for debugging an application program, a mobile terminal, and a computer-readable storage medium, so as to facilitate a tester to solve problems existing in the application program in time. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a method for debugging an application program, where the method is applied to a mobile terminal, and a debugging program for debugging the application program is embedded in the mobile terminal, and the method includes:
receiving a debugging instruction input by a user under the condition that the application program is in a running state;
responding to the debugging instruction, and running the debugging program;
receiving debugging object selection operation input by a user;
determining a target debugging object selected by the debugging object selection operation;
and outputting debugging parameters of the target debugging object.
In a second aspect of the present invention, there is also provided a mobile terminal, in which a debugging program for debugging an application program is embedded, the mobile terminal including:
the first receiving module is used for receiving a debugging instruction input by a user under the condition that the application program is in a running state;
the running module is used for responding to the debugging instruction and running the debugging program;
the second receiving module is used for receiving debugging object selection operation input by a user;
a determining module, configured to determine a target debug object selected by the debug object selection operation;
and the output module is used for outputting the debugging parameters of the target debugging object.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the debugging method of any one of the above-mentioned application programs.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for debugging an application program as described in any one of the above.
The embodiment of the invention provides a debugging method of an application program, a mobile terminal and a computer readable storage medium, wherein the mobile terminal is embedded with a debugging program for debugging the application program, when the application program running on the mobile terminal needs to be debugged, the mobile terminal responds to the debugging instruction to run the debugging program after the debugging instruction is input on the mobile terminal, entering into debugging mode, selecting debugged object to output the debugging parameters of the object, debugging personnel debugging the application program according to the output debugging parameters, the debugging of the application program can be directly realized in the running process of the application program, the debugging of the application program can be completed through the mobile terminal running the application program, and other debugging equipment is not needed, so that debugging personnel can solve the problems existing in the application program in time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart illustrating a method for debugging an application according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for debugging an application according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for debugging an application according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for debugging an application according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a debugging method for an application program, which is applied to a mobile terminal, where the mobile terminal is embedded with a debugging program for debugging the application program, and the method includes:
step 101: receiving a debugging instruction input by a user under the condition that the application program is in a running state;
the debugging program may be a Software Development Kit (SDK), and the debugging program may be embedded with the application program to be debugged or embedded with the mobile terminal installed with the application program to be debugged. The application being in the running state may be that the application is running, and the mobile terminal is currently displaying the interface of the application, the interface may include a plurality of controls, when the user finds that the currently running interface of the application program has defects, such as abnormal display scale, no response to a click event, etc., the debugging instruction can be input in the current running interface of the application program to enter a debugging mode for debugging the application program, wherein, the debugging instruction may be a plurality of times of continuously clicking a certain position of the application program, or clicking a certain debugging control pre-configured on the application program, or other preset touch operations, without limitation, after the mobile terminal receives the debugging instruction of the user, namely, entering a debugging mode, wherein the current interface of the mobile terminal can be moved back and forth without change after receiving the debugging instruction. The application program debugging method provided by the embodiment of the invention is described in detail below by taking as an example that a debugger finds that the display ratio of one control in a current running interface is obviously larger than the ratio set during development and needs to debug the control in the process of using the application program, and the mobile terminal can be a mobile device such as a mobile phone and a tablet personal computer.
Step 102: responding to the debugging instruction, and running the debugging program;
after receiving the debugging instruction, the mobile terminal responds to the debugging instruction, runs the debugging program, and after the debugging program is run, the debugging program can display a debugging entry, such as a resolution debugging entry, a control debugging entry, a frame rate debugging entry, a network interface debugging entry and the like, for a debugged object in the application program on the current interface, which is not limited. The debugging entry can be displayed on the current interface of the application program in the form of a control, the name of the debugged object can be displayed on the control, and the debugging parameters of the debugged object can be checked by subsequent debugging personnel by setting the debugging entry of the debugged object and clicking the debugging entry.
Step 103: receiving debugging object selection operation input by a user;
the debugging object can be a control of the current interface, a resolution and a frame rate of the current interface, an interface parameter of an application program, and the like. The debugging object selection operation may be a click event of a debugging person on a debugging entry of the debugged object.
Step 104: determining a target debugging object selected by the debugging object selection operation;
when the mobile terminal receives a debugging object selection operation input by a debugging person, a debugging object control required to be debugged by the debugging person can be determined, and meanwhile, the mobile terminal can respond to the debugging object selection operation and call debugging parameters of the debugged object, such as the resolution and the frame rate of a current interface, port information of a network interface, attributes of the control, methods or events and the like. In addition, the display parameters of the current page, such as the resolution, the frame rate, and the like, may also be automatically displayed in a preset area of the current interface after receiving a user debugging instruction, where the preset area may be a floating window displayed after receiving the user debugging instruction, and the display parameters of the current page, such as the resolution, the frame rate, and the like, are displayed on the floating window.
Step 105: and outputting debugging parameters of the target debugging object.
After the mobile terminal calls the debugging parameters of the debugged object through the steps, the debugging parameters of the debugged object can be displayed in a floating window mode, a debugging worker can judge whether the debugged object has a fault by checking the debugging parameters of the debugged object to be debugged, if the debugged object has the fault, the reason of the fault can be further checked, for example, the debugging worker can check information such as the resolution, the frame rate and the like of the current interface to judge whether the current interface has the fault; for another example, a debugger may check the attribute parameters of a control on the current interface to determine whether the display of the control is normal, and if the display scale of the control is found to be abnormal, the debugger may modify the attribute parameters of the control to adjust the display scale of the control, thereby completing the debugging process.
According to the application program debugging method provided by the technical scheme, when a debugging person finds that a certain object in a current display interface has a problem in the application program using process, the debugging person can enter a debugging mode by inputting a debugging instruction and then directly select the object with the problem to check the debugging parameters of the object, so that the debugging person can conveniently and directly position the object with the defect and only check the debugging parameters of the object, the debugging pertinence is improved, the debugging person can conveniently and independently finish the debugging work of the application program on a mobile terminal, a computer with a development environment is not needed, and the debugging person can conveniently and timely solve the problem in the application program.
Optionally, after the outputting the debugging parameters of the target debugging object, the method further includes:
receiving the editing operation of the user on the debugging parameters;
and updating the debugging parameters of the target debugging object according to the editing operation.
When the debugging personnel check the debugging parameters and find that the debugging parameters have errors, the debugging parameters can be modified through editing operation, wherein the editing operation can be that the debugging personnel click the parameters with problems and key in correct parameters so as to update the debugging parameters with the errors. After the debugging parameters are updated, the mobile terminal can respond to the updated debugging parameters to update the target debugging object on line, so that a user can conveniently and visually check the debugging result. Optionally, if the debugging parameter has a subordinate list, when a debugger clicks the debugging parameter, the debugger may enter the debugged subordinate list to view the detailed content. If the debugging parameters do not have a subordinate list and are basic types or character strings, an editing entry can be set for the debugging parameters, and debugging personnel can modify the debugging parameters through the editing entry.
Optionally, referring to fig. 2, in order to further explain the method for debugging an application program according to the embodiment of the present invention, the method for debugging an application program according to the embodiment of the present invention is explained below by taking debugging a control on a current page of the application program as an example, where the method for debugging an application program is an application program debugging method, and a mobile terminal is embedded with a debugging program for debugging an application program, and the method includes:
step 201: receiving a debugging instruction input by a user under the condition that the application program is in a running state;
the specific implementation process of this step is the same as that of step 101, and is not described herein again to avoid repetition.
Step 202: responding to the debugging instruction, and running the debugging program;
the specific implementation process of this step is the same as that of step 202, and is not described herein again to avoid repetition.
Step 203: receiving a control selection operation input by a user;
the control selection operation may be a click event of a debugger on the control to be debugged, and when the mobile terminal receives the selection operation input by the debugger, the target control to be debugged by the debugger can be determined.
Step 204: determining a target control selected by the control selection operation;
the specific implementation process of this step is the same as that of step 104, and is not described herein again to avoid repetition.
Step 205: and outputting debugging parameters of the target control, wherein the debugging parameters comprise at least one of attributes, methods and events of the target control.
After receiving a selection operation of a target control by a debugger, the mobile terminal can call the debugging parameter of the target control through a reflection mechanism, wherein in the field of computers, reflection refers to the capability that a computer program can access, detect and modify the state or behavior of the computer program during running (Runtime). And reflecting the fields and the method of the related objects of the access interface during the operation through a reflection mechanism to obtain and display the corresponding state, so that the debugging parameters of the target control can be obtained through the reflection mechanism. The debugging parameter may be at least one of an attribute, a method, and an event of the target control, and a debugging person may selectively check the debugging parameter to determine the cause of the defect.
According to the application program debugging method provided by the technical scheme, when a debugger finds that a certain control in a current display interface has a problem in the application program using process, the debugger can directly select to debug the control and directly call the attribute, method and event information of the control, so that the debugger can conveniently and directly position the defective control and only check the debugging parameter of the control, the debugging pertinence is improved, the debugger can conveniently and independently complete the debugging work of the application program on a mobile terminal, a computer with a development environment is not needed, and the debugger can conveniently and timely solve the problem in the application program.
Optionally, after the outputting the debugging parameters of the target control, the method further includes:
receiving the editing operation of the user on the debugging parameters;
and updating the debugging parameters of the target control according to the editing operation.
When the debugging personnel check the debugging parameters and find that the debugging parameters have errors, the debugging parameters can be modified through editing operation, wherein the editing operation can be that the debugging personnel click the parameters with problems and key in correct parameters so as to update the debugging parameters with the errors. After the debugging parameters are updated, the mobile terminal can respond to the updated debugging parameters to update the target control on line, so that a user can conveniently and visually check the debugging result. Optionally, if the debugging parameter has a subordinate list, when a debugger clicks the debugging parameter, the debugger may enter the debugged subordinate list to view the detailed content. If the debugging parameters do not have a subordinate list and are basic types or character strings, an editing entry can be set for the debugging parameters, and debugging personnel can modify the debugging parameters through the editing entry.
Optionally, before the determining the target debug object selected by the debug object selection operation, the method further includes:
and acquiring all controls of the current running interface of the application program, and generating a control set.
All the controls of the current running interface can be acquired in a traversal mode, specifically, information such as attributes, modes and events of all the controls of the current running interface can be acquired, and all the acquired controls are stored in a centralized manner to generate a control set.
Optionally, the determining the target debug object selected by the debug object selection operation includes:
acquiring position coordinates corresponding to each control in the control set;
and determining the target control selected by the control selection operation from the control set according to the position coordinate of the selection operation on the current running interface.
The specific position information displayed in the current running interface by the control is stored in the attribute of each control, so that the position coordinate of each control in the control set can be obtained by searching the attribute of each control in the control set, and the position coordinate of the selection operation on the current running interface is compared with the position coordinate of the space in the current running interface, so that the target control selected by the selection operation can be determined.
Optionally, after receiving the debugging instruction input by the user, the method further includes:
displaying a perspective floating window on a current running interface of the application program;
the obtaining of the position coordinate of the selection operation on the current running interface includes:
and acquiring the position coordinates of the selection operation on the perspective floating window.
The perspective floating window may be a transparent or semi-transparent floating window, and the perspective floating window may cover the entire interface of the current running interface, or may cover only an area including all controls of the current running interface, which is not limited to this. By displaying the perspective floating window, the user can see the current running interface and can also receive the selection operation of the user. The position of the selection operation on the current running interface can be determined by judging the position of the selection operation on the perspective floating window, so that the target control selected by the user can be conveniently determined subsequently.
Optionally, the obtaining all the controls of the current running interface of the application program and generating a control set includes:
traversing the control tree of the current running interface by using a recursive traversal algorithm to obtain debugging parameters of all controls of the current running interface;
and storing the acquired debugging parameters of all the controls to generate the control set.
The debugging method comprises the steps that a control tree composed of all controls in a current running interface exists in each running interface of an application program, the control tree is traversed from a root node of the control tree of the current running interface through a recursive traversal algorithm, debugging parameters of all the controls of the current running interface can be obtained, and the obtained debugging parameters of all the controls are stored in a centralized mode to generate a control set.
Optionally, the outputting the debugging parameters of the target control includes:
and displaying the attribute of the target control, the debugging inlet of the method of the target control and the debugging inlet of the event of the target control.
The attribute displaying the target control can be that a frame of the target control is drawn on a perspective floating window, basic information such as a length value, a width value, a color and a margin of the target control is displayed, the attribute information of the target control can be displayed in a numerical value or character form, and when the attribute information is of a basic type or a character string, an editing entry of the attribute information can be set so as to facilitate debugging personnel to debug the target control. The method and the event of the target control can be displayed in a multi-level list form, an editing entry for viewing the multi-level list is arranged on the upper layer of the perspective floating window in a floating window form, and a debugging person can debug the method and the event of the target control by clicking the editing entry.
Referring to fig. 3, a method for debugging an application according to an embodiment of the present invention includes the following steps:
step 301: receiving a debugging instruction input by a user under the condition that the application program is in a running state;
step 302: responding to the debugging instruction, and operating a debugging program to display a perspective floating window;
step 303: traversing a control tree of a current running interface by using a recursive traversal algorithm to generate a control set, wherein the control set comprises debugging parameters of all controls of the current running interface, and the debugging parameters comprise at least one of attributes, methods and events of the target control;
step 304: receiving a control selection operation input by a user;
step 305: acquiring the position coordinates of the selection operation on the perspective floating window;
step 306: determining a target control selected by the control selection operation from the control set according to the position coordinate of the selection operation on the perspective floating window;
step 307: debugging parameters of the target control are called in the control set through a reflection mechanism;
step 308: displaying the debugging parameters on a current operation interface;
step 309: receiving the editing operation of the user on the debugging parameters;
step 310: and updating the debugging parameters of the target control according to the editing operation.
The specific implementation process and functions of the above steps in this embodiment are the same as those in the above embodiment, and are not described herein again to avoid repetition.
In the embodiment of the invention, the mobile terminal is embedded with a debugging program for debugging the application program, when the application program running on the mobile terminal needs to be debugged, the mobile terminal can enter a debugging mode by inputting a debugging instruction, the debugged control can be selected after the mobile terminal enters the debugging mode, the debugging parameter of the debugged control can be output, debugging personnel can debug the application program according to the output debugging parameter, the debugging of the application program can be directly realized in the running process of the application program, the debugging of the application program can be completed by the mobile terminal running the application program without other debugging equipment, and the debugging personnel can be facilitated to solve the problems existing in the application program in time.
Referring to fig. 4, a method for debugging an application according to another embodiment of the present invention includes the following steps:
step 401: receiving a debugging instruction input by a user under the condition that the application program is in a running state;
step 402: responding to the debugging instruction, and operating a debugging program to display a perspective floating window;
step 403: receiving a control selection operation input by a user;
step 404: acquiring the position coordinates of the selection operation on the perspective floating window;
step 405: determining a target control selected by the control selection operation from the control set according to the position coordinate of the selection operation on the perspective floating window;
step 406: traversing debugging parameters of the target control through a traversal algorithm, wherein the debugging parameters comprise at least one of attributes, methods and events of the target control;
step 407: displaying the debugging parameters on a current operation interface;
step 408: receiving the editing operation of the user on the debugging parameters;
step 409: and updating the debugging parameters of the target control according to the editing operation.
The specific implementation process and functions of the above steps in this embodiment are the same as those in the above embodiment, and are not described herein again to avoid repetition.
In the embodiment of the invention, the mobile terminal is embedded with a debugging program for debugging the application program, when a debugger finds that the application program has defects in the process of using the application program, the debugging mode can be entered by inputting a debugging instruction on the mobile terminal, at least one of the attribute, the method and the event of the debugged control can be output by selecting the control to be debugged after the debugging mode is entered, the debugger realizes debugging the application program according to the output debugging parameters, the debugging of the application program can be directly realized in the running process of the application program, the debugging of the application program can be completed by the mobile terminal running the application program without other debugging equipment, and the debugging personnel can solve the problems existing in the application program in time.
Referring to fig. 5, an embodiment of the present invention further provides a mobile terminal 500, where a debugging program for debugging an application program is embedded in the mobile terminal 500, and the mobile terminal 500 includes:
a first receiving module 501, configured to receive a debugging instruction input by a user when an application program is in a running state;
an operation module 502, configured to respond to the debugging instruction and operate the debugging program;
a second receiving module 503, configured to receive a debugging object selection operation input by a user;
a determining module 504, configured to determine a target debug object selected by the debug object selection operation;
an output module 505, configured to output the debugging parameters of the target debugging object selected by the debugging object selection operation.
In the embodiment of the present invention, the mobile terminal 500 is embedded with a debugging program for debugging an application program, when a debugger finds that the application program has a defect during the process of using the application program, the mobile terminal 500 enters a debugging mode by inputting a debugging instruction, after the debugging mode is entered, a debugging object to be debugged is selected, so as to output debugging parameters of the debugged debugging object, the debugger realizes debugging the application program according to the outputted debugging parameters, the debugging of the application program can be directly realized during the running process of the application program, the debugging of the application program can be completed by the mobile terminal 500 running the application program, and other debugging devices are not needed, which is beneficial for the debugger to solve the problems existing in the application program in time.
The embodiment of the present invention further provides a mobile terminal, as shown in fig. 6, which includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the following steps when executing the program stored in the memory 603:
receiving a debugging instruction input by a user under the condition that the application program is in a running state;
receiving a control selection operation input by a user;
and outputting debugging parameters of the target control selected by the control selection operation, wherein the debugging parameters comprise at least one of attributes, methods and events of the target control.
Optionally, after the outputting of the debugging parameters of the target control selected by the control selection operation, the method further includes:
receiving the editing operation of the user on the debugging parameters;
and updating the debugging parameters of the target control according to the editing operation.
Optionally, before the outputting the debugging parameters of the target control selected by the control selection operation, the method further includes:
and acquiring all controls of the current running interface of the application program, and generating a control set.
Optionally, the method further comprises:
acquiring position coordinates corresponding to each control in the control set;
and determining the target control selected by the control selection operation from the control set according to the position coordinate of the selection operation on the current running interface.
Optionally, after the receiving the debugging instruction input by the user, the method further includes:
displaying a perspective floating window on a current running interface of the application program;
the obtaining of the position coordinate of the selection operation on the current running interface includes:
and acquiring the position coordinates of the selection operation on the perspective floating window.
Optionally, the obtaining all the controls of the current running interface of the application program and generating a control set includes:
traversing the control tree of the current running interface by using a recursive traversal algorithm to obtain debugging parameters of all controls of the current running interface;
and storing the acquired debugging parameters of all the controls to generate the control set.
Optionally, the outputting the debugging parameters of the target control selected by the control selection operation includes:
and displaying the attribute of the target control, the debugging inlet of the method of the target control and the debugging inlet of the event of the target control.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the debugging method of the application program in any one of the above embodiments.
In yet another embodiment, the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for debugging an application program according to any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A debugging method of an application program is applied to a mobile terminal, and is characterized in that the mobile terminal is embedded with a debugging program for debugging the application program, and the method comprises the following steps:
receiving a debugging instruction input by a user under the condition that the application program is in a running state;
responding to the debugging instruction, and running the debugging program;
receiving debugging object selection operation input by a user;
determining a target debugging object selected by the debugging object selection operation;
and outputting debugging parameters of the target debugging object.
2. The method of claim 1, wherein after the outputting the debugging parameters of the target debugging object, the method further comprises:
receiving the editing operation of the user on the debugging parameters;
and updating the debugging parameters of the target debugging object according to the editing operation.
3. The method of claim 1, wherein the receiving of the user-entered debug object selection operation comprises:
receiving a control selection operation input by a user;
the determining the target debug object selected by the debug object selection operation comprises:
determining a target control selected by the control selection operation;
the outputting the debugging parameters of the target debugging object comprises:
and outputting debugging parameters of the target control, wherein the debugging parameters comprise at least one of attributes, methods and events of the target control.
4. The method of claim 3, wherein prior to the determining the target debug object selected by the debug object selection operation, the method further comprises:
acquiring all controls of a current running interface of an application program, and generating a control set;
the determining the target debug object selected by the debug object selection operation comprises:
acquiring position coordinates corresponding to each control in the control set;
and determining the target control selected by the control selection operation from the control set according to the position coordinate of the selection operation on the current running interface.
5. The method of claim 4, wherein after the receiving the user-entered debugging instructions, the method further comprises:
displaying a perspective floating window on a current running interface of the application program;
the obtaining of the position coordinate of the selection operation on the current running interface includes:
and acquiring the position coordinates of the selection operation on the perspective floating window.
6. The method of claim 4, wherein the obtaining all controls of a currently running interface of the application and generating the control set comprises:
traversing the control tree of the current running interface by using a recursive traversal algorithm to obtain debugging parameters of all controls of the current running interface;
and storing the acquired debugging parameters of all the controls to generate the control set.
7. The method of claim 4, wherein outputting the debugging parameters of the target control comprises:
and displaying the attribute of the target control, the debugging inlet of the method of the target control and the debugging inlet of the event of the target control.
8. A mobile terminal, wherein a debugging program for debugging an application program is embedded in the mobile terminal, the mobile terminal comprising:
the first receiving module is used for receiving a debugging instruction input by a user under the condition that the application program is in a running state;
the running module is used for responding to the debugging instruction and running the debugging program;
the second receiving module is used for receiving debugging object selection operation input by a user;
a determining module, configured to determine a target debug object selected by the debug object selection operation;
and the output module is used for outputting the debugging parameters of the target debugging object.
9. A mobile terminal is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911090127.6A 2019-11-08 2019-11-08 Application program debugging method, mobile terminal and computer readable storage medium Pending CN110908899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911090127.6A CN110908899A (en) 2019-11-08 2019-11-08 Application program debugging method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911090127.6A CN110908899A (en) 2019-11-08 2019-11-08 Application program debugging method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110908899A true CN110908899A (en) 2020-03-24

Family

ID=69816535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911090127.6A Pending CN110908899A (en) 2019-11-08 2019-11-08 Application program debugging method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110908899A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486836A (en) * 2020-12-09 2021-03-12 北京展心展力信息科技有限公司 Method and device for debugging distribution package, electronic equipment and medium
CN112631949A (en) * 2020-12-10 2021-04-09 浙江华创视讯科技有限公司 Debugging method and device, computer equipment and storage medium
CN113626309A (en) * 2021-07-06 2021-11-09 深圳点猫科技有限公司 Method and device for simulating operation of mobile terminal, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230954A1 (en) * 2003-05-16 2004-11-18 Cedric Dandoy User interface debugger
CN107678938A (en) * 2017-08-24 2018-02-09 阿里巴巴集团控股有限公司 The adjustment method and equipment of a kind of application program
CN108763085A (en) * 2018-05-31 2018-11-06 平安科技(深圳)有限公司 On-line debugging device, method and the computer readable storage medium of test cases
CN109840205A (en) * 2018-12-20 2019-06-04 平安科技(深圳)有限公司 Applied program testing method, device, readable storage medium storing program for executing and terminal device
CN110119352A (en) * 2019-04-18 2019-08-13 深圳壹账通智能科技有限公司 UI adjustment method, device, computer equipment and the storage medium of application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230954A1 (en) * 2003-05-16 2004-11-18 Cedric Dandoy User interface debugger
CN107678938A (en) * 2017-08-24 2018-02-09 阿里巴巴集团控股有限公司 The adjustment method and equipment of a kind of application program
CN108763085A (en) * 2018-05-31 2018-11-06 平安科技(深圳)有限公司 On-line debugging device, method and the computer readable storage medium of test cases
CN109840205A (en) * 2018-12-20 2019-06-04 平安科技(深圳)有限公司 Applied program testing method, device, readable storage medium storing program for executing and terminal device
CN110119352A (en) * 2019-04-18 2019-08-13 深圳壹账通智能科技有限公司 UI adjustment method, device, computer equipment and the storage medium of application program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486836A (en) * 2020-12-09 2021-03-12 北京展心展力信息科技有限公司 Method and device for debugging distribution package, electronic equipment and medium
CN112486836B (en) * 2020-12-09 2024-04-09 北京展心展力信息科技有限公司 Method, device, electronic equipment and medium for debugging release package
CN112631949A (en) * 2020-12-10 2021-04-09 浙江华创视讯科技有限公司 Debugging method and device, computer equipment and storage medium
CN113626309A (en) * 2021-07-06 2021-11-09 深圳点猫科技有限公司 Method and device for simulating operation of mobile terminal, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2019144680A1 (en) Automatic testing method and apparatus, storage medium and electronic device
CN105094783B (en) method and device for testing stability of android application
US9213625B1 (en) Method and apparatus for performing automated user-interface layout testing
CN110908899A (en) Application program debugging method, mobile terminal and computer readable storage medium
CN107967209B (en) Method for detecting error in front-end webpage code, detection equipment and server
CN112199093B (en) Resource checking method, device, equipment and computer readable storage medium
CN110879781B (en) Program debugging method, device, electronic equipment and computer readable storage medium
CN111897727A (en) Software testing method and device, computer equipment and storage medium
US20190303116A1 (en) Code Correction
JP2021108148A (en) Method for processing data, data processor, electronic apparatus, computer readable storage medium, and computer program
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN111858354A (en) Method and device for automatically generating test report, storage medium and electronic equipment
CN111309743A (en) Report pushing method and device
CN110032781B (en) Editing time sequence constraint method and device, computer equipment and storage medium
CN115455741A (en) Engineering mechanical equipment modeling method and device
CN115129575A (en) Code coverage result generation method and device
CN111221723A (en) Test record generation method and device, storage medium and electronic equipment
CN113392022B (en) Test requirement analysis method, device, computer readable medium and program product
CN112306723A (en) Operation information acquisition method and device applied to small program
US20240012648A1 (en) Conditional branch coverage calculation method, device, computer apparatus, storage medium
CN116931933B (en) Automatic judging method for application adaptive free scaling
CN112965910B (en) Automatic regression testing method and device, electronic equipment and storage medium
CN116414716A (en) Stability test method for application program, terminal equipment and storage medium
CN112527658A (en) Test case processing method and device for unit test
CN115982035A (en) Interface data simulation method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324