Application program debugging method and system, electronic equipment and storage medium

By dynamically adding floating window plug-ins and information collection service components, the application performance monitoring data is collected and displayed in real time, and the application debugging flexibility and inefficiency in the existing technology is solved, and a more efficient and convenient debugging process is achieved.

CN119862109APending Publication Date: 2025-04-22XIAOAN KEJI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411839470.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In the prior art, application debugging is relatively flexible and efficient, and requires relying on compilation and debugging tools in integrated development environments, resulting in cumbersome and inefficient debugging process.

Method used

By obtaining the running status of the target switch control in the application to be debugged, dynamically add floating window plug-in and information collection service components when it is turned on, collect performance monitoring data in real time, and display data when the user triggers the floating window plug-in, real-time performance monitoring data monitoring is achieved.

Benefits of technology

It significantly improves the convenience, responsiveness and flexibility of application debugging, reduces debugging time, and avoids the steps of recompilation, packaging and release.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119862109A_ABST
    Figure CN119862109A_ABST
Patent Text Reader

Abstract

The invention provides an application program debugging method and system, electronic equipment and a storage medium. The method comprises the steps of obtaining a running state of a target switch control in a to-be-debugged application program; under the condition that the running state of the target switch control is determined to be an open state, dynamically adding a floating window plug-in in a display component of the to-be-debugged application program, and starting an information acquisition service component in the to-be-debugged application program to acquire a performance monitoring data list of the to-be-debugged application program; and displaying a performance monitoring data list acquired by the information acquisition service component on an information display interface of the floating window plug-in under the condition that a triggering operation on the floating window plug-in is received. According to the method and the device, performance monitoring data monitoring is automatically and dynamically performed in real time through the floating window plug-in and the information acquisition service component, so that debugging and performance monitoring of the application program are performed in real time, the convenience, the response speed and the flexibility of the debugging process are remarkably improved, and the debugging time is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an application debugging method, system, electronic equipment and storage medium. Background Art

[0002] In the process of software development, application debugging is a crucial activity, which involves the identification, diagnosis and repair of errors and abnormal behaviors during software operation to ensure that the software program can run as expected and meet user needs, and to ensure the performance of the application. Therefore, how to debug applications effectively and conveniently is an important topic that needs to be studied in the industry.

[0003] Currently, for published applications, they usually need to rely on the compilation and debugging tools in the integrated development environment (IDE) to debug in order to view data and troubleshoot problems. However, this method often requires developers to recompile, package and publish the corresponding installation and debugging packages in the application development environment according to different debugging requirements, which limits the flexibility and efficiency of debugging to a certain extent. Summary of the invention

[0004] The present invention provides an application debugging method, system, electronic device and storage medium, which are used to solve the defects of poor flexibility and efficiency of application debugging in the prior art, and improve the flexibility and efficiency of application debugging.

[0005] The present invention provides an application debugging method, comprising: Get the running status of the target switch control in the application to be debugged; When it is determined that the running state of the target switch control is the on state, dynamically adding a floating window plug-in to the display component of the application to be debugged, and starting the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged; When a trigger operation on the floating window plug-in is received, the performance monitoring data list collected by the information collection service component is displayed on the information display interface of the floating window plug-in.

[0006] According to the present invention, there is provided an application debugging method, the method further comprising: When it is determined that the operating state of the target switch control is the closed state, acquiring the operating state of the information collection service component; When it is determined that the running state of the information collection service component is in the on state, the information collection service component is closed.

[0007] According to the present invention, there is provided an application debugging method, the method further comprising: When it is determined that the information collection service component is closed successfully, or the running state of the information collection service component is closed, determining whether the floating window plug-in is added to the display component; When it is determined that the floating window plug-in is added to the display component, the floating window plug-in is removed from the display component.

[0008] According to the present invention, there is provided an application debugging method, wherein the information display interface of the floating window plug-in displays the performance monitoring data list collected by the information collection service component, including: According to the data type of each performance monitoring data in the performance monitoring data list, determining the display position corresponding to each performance monitoring data in the information display interface; According to the display position, each performance monitoring data is displayed on the information display interface.

[0009] According to the present invention, there is provided an application debugging method, wherein according to the data type of each performance monitoring data in the performance monitoring data list, determining the display position corresponding to each performance monitoring data in the information display interface comprises: In the case where the information display interface includes multiple display pages, determining, according to the data type of each performance monitoring data, a display page corresponding to each performance monitoring data among the multiple display pages; The position of the display page corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

[0010] According to the present invention, there is provided an application debugging method, wherein according to the data type of each performance monitoring data in the performance monitoring data list, determining the display position corresponding to each performance monitoring data in the information display interface comprises: In a case where the information display interface includes a display page, and the display page includes a plurality of display fields, determining a display field corresponding to each performance monitoring data in the plurality of display fields according to a data type of each performance monitoring data; The position of the display column corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

[0011] According to the present invention, a method for debugging an application is provided, wherein the performance monitoring data list includes multiple items of log information, network request monitoring information, console information, and model information.

[0012] The present invention also provides an application debugging system, comprising: An acquisition unit, used for acquiring the running status of a target switch control in the application to be debugged; A first control unit is used to dynamically add a floating window plug-in to the display component of the application to be debugged, and start the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged when determining that the running state of the target switch control is the on state; The second control unit is used to display the performance monitoring data list collected by the information collection service component on the information display interface of the floating window plug-in when a trigger operation on the floating window plug-in is received.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned application debugging methods is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the application debugging method described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned application debugging methods.

[0016] The application debugging method, system, electronic device and storage medium provided by the present invention obtain the running status of the target switch control in the application to be debugged, and when it is determined that the target switch control is in the turned-on state, dynamically add a floating window plug-in to the display component of the application, and start the information collection service to collect performance monitoring data, and when the user triggers the floating window plug-in, display the collected performance monitoring data, so that developers and users can automatically, dynamically and in real time monitor the performance monitoring data through the floating window plug-in and the information collection service component without relying on IDE compilation and debugging tools and without the need to recompile, package and publish installation and debugging packages, so as to debug and monitor the performance of the application in real time, thereby significantly improving the convenience, response speed and flexibility of the debugging process and saving debugging time. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1This is one of the flow charts of the application debugging method provided by the present invention.

[0019] Figure 2 This is the second flow chart of the application debugging method provided by the present invention.

[0020] Figure 3 It is a structural diagram of the application debugging system provided by the present invention.

[0021] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] Whether you are a professional developer or a non-developer, if you want to quickly troubleshoot and locate application exceptions, you need to obtain application performance monitoring data in real time to debug the application.

[0024] Currently, for published applications, they usually need to rely on compilation and debugging tools in the integrated development environment to debug in order to view performance monitoring data and troubleshoot problems. However, this method often requires developers to recompile, package, and publish corresponding installation and debugging packages in the application development environment according to different debugging requirements, which limits the flexibility and efficiency of debugging to a certain extent.

[0025] In order to solve such problems and improve the flexibility and efficiency of application debugging, the present embodiment provides an application debugging method, which displays the performance monitoring data in the application in real time through an application floating window plug-in for intelligent start-stop dynamic debugging, so as to realize dynamic debugging of the application. There is no need to use a mobile phone to connect to a computer development tool, which can effectively help the problem raiser to quickly locate the problem and solve the problem without repackaging, thereby improving the efficiency of problem solving and thus improving the flexibility and efficiency of application debugging.

[0026] It should be noted that the execution subject of the method can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, etc., and the non-mobile electronic device can be a server, a network attached storage, a personal computer, etc., which is not specifically limited in this application.

[0027] Figure 1 This is one of the flow charts of the application debugging method provided by the present invention; Figure 2 This is the second flow chart of the application debugging method provided by the present invention.

[0028] like Figure 1 As shown, the method includes step 110 , step 120 and step 130 .

[0029] Step 110: Obtain the running status of the target switch control in the application to be debugged.

[0030] The target switch control here can be formed by adding it in the application to be debugged through Android integrated development tools, such as AS tools. After adding this target switch control, the function of the target switch control can be realized in the application to be debugged. For the specific implementation logic, please refer to the implementation logic of the developer mode. The target switch control is a control for controlling whether to add a floating window plug-in to the display component of the application to be debugged according to the running state, that is, whether to display the performance monitoring data list.

[0031] Here, the application to be debugged is an application that needs to be debugged to find and fix problems, optimize performance, or perform functional verification.

[0032] like Figure 2 As shown, when the application is started, the running state of the target switch control in the application to be debugged can be monitored in real time, so as to perform different control operations and debugging operations on the application according to the running state of the target switch control.

[0033] The operating state of the target switch control here is used to characterize whether the target switch control is turned on or off, which can be controlled by the user in real time through user input, or controlled by other controllers or devices under certain conditions, such as timing control to turn on the target switch control. The so-called user input can be information input through command line interface input, graphical interface input, touch input, drop-down selection input, voice input, gesture input, visual input, brain-computer input, etc., and this embodiment does not specifically limit this.

[0034] Step 120, when it is determined that the running state of the target switch control is the on state, dynamically add a floating window plug-in to the display component of the application to be debugged, and start the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged.

[0035] like Figure 2As shown, after obtaining the running state of the target switch control, it can be determined whether the running state of the target switch control is in the on state. If it is in the on state, it indicates that the debugging mode needs to be turned on for the application to be debugged. At this time, a floating window plug-in needs to be dynamically added to the display component of the application to be debugged; the floating window plug-in here is an interface that can interact with the user, which allows the user to quickly access debugging information. The floating window plug-in can be implemented by the window management service component of the application to be debugged, and the window management service component allows the floating window plug-in to be displayed on other views of the application to be debugged.

[0036] In addition, the information collection service component in the application to be debugged is started, so that the information collection service component is responsible for collecting performance monitoring data of the application to be debugged, thereby obtaining a performance monitoring data list of the application to be debugged.

[0037] The performance monitoring data list here is a key data set used to record and evaluate the performance of the application to be debugged, which includes a variety of performance monitoring data.

[0038] Exemplarily, in some embodiments, the performance monitoring data list includes multiple items of log information, network request monitoring information, console information, and model information.

[0039] The log information may be real-time Logcat log information obtained by filtering the current process of the application to be debugged, including various log messages generated by the current process of the application during its operation. These messages are classified according to different priorities, such as Verbose, Debug, Info, Warn, Error, and Fatal.

[0040] Network request monitoring information is detailed data about the communication between an application and a server or other services, including the Uniform Resource Locator (URL) of the request, the request method, request parameters, and response data.

[0041] Console information is the log output of the console, including errors, warnings, informational messages, etc.

[0042] The device model information refers to the attribute information of the device corresponding to the application to be debugged, such as brand, model, operating system version, screen resolution, etc.

[0043] Step 130: When a trigger operation on the floating window plug-in is received, the performance monitoring data list collected by the information collection service component is displayed on the information display interface of the floating window plug-in.

[0044] like Figure 2 As shown, after dynamically adding a floating window plug-in to the display component, it is possible to monitor in real time whether the user's trigger operation on the floating window plug-in is received. If received, the information display interface is opened in the floating window plug-in. After confirming that the information display interface is opened, the performance monitoring data list collected by the information collection service component is displayed in real time on the information display interface, so that the user can troubleshoot abnormal problems based on the performance monitoring data in the performance monitoring data list, locate abnormal problems, and thereby achieve fast and flexible debugging of the application to be debugged.

[0045] The triggering operation here may be a user clicking or selecting the floating window plug-in.

[0046] The display may be to directly display the performance monitoring data in the performance monitoring data list on the same page or to display the performance monitoring data in different pages or columns according to different types, which is not specifically limited in this embodiment.

[0047] It should be noted that once the trigger operation of the floating window plug-in is turned on, the performance monitoring data list displayed in the information display interface of the floating window plug-in will also be updated in real time according to the real-time data collected by the information collection service component, or the data of different time periods will be updated in real time according to the user's viewing needs.

[0048] The method provided in this embodiment obtains the running status of the target switch control in the application to be debugged, and when it is determined that the target switch control is in the turned-on state, dynamically adds a floating window plug-in to the display component of the application, starts an information collection service to collect performance monitoring data, and displays the collected performance monitoring data when the user triggers the floating window plug-in, so that developers and users can automatically, dynamically and in real time monitor the performance monitoring data through the floating window plug-in and the information collection service component without relying on IDE compilation and debugging tools and without the need to recompile, package and publish installation and debugging packages, so as to debug and monitor the performance of the application in real time, which significantly improves the convenience, response speed and flexibility of the debugging process and saves debugging time.

[0049] In some embodiments, the method further comprises: When it is determined that the operating state of the target switch control is the closed state, acquiring the operating state of the information collection service component; When it is determined that the running state of the information collection service component is in the on state, the information collection service component is closed.

[0050] like Figure 2As shown, if it is determined that the running state of the target switch control is closed, it indicates that the debugging mode needs to be turned off for the application to be debugged. At this time, the running state of the information collection service component can be obtained in real time to determine whether the running state of the information collection service component is on. If the running state of the information collection service component is on, the information collection service is stopped by closing the information collection service component to release system resources and avoid unnecessary memory occupation and memory consumption, thereby improving the performance and stability of the application.

[0051] The method provided in this embodiment releases system resources by closing the information collection service component when the debugging mode is closed, thereby improving the performance and stability of the application.

[0052] In some embodiments, the method further comprises: When it is determined that the information collection service component is closed successfully, or the running state of the information collection service component is closed, determining whether the floating window plug-in is added to the display component; When it is determined that the floating window plug-in is added to the display component, the floating window plug-in is removed from the display component.

[0053] like Figure 2 As shown, if it is determined that the running state of the target switch control is the closed state, it indicates that the debugging mode needs to be turned off for the debugging application. At this time, the running state of the information collection service component can be obtained in real time to determine whether the running state of the information collection service component is the open state. If the running state of the information collection service component is the closed state or has been successfully closed from the open state, it is further determined whether a floating window plug-in is added to the display component.

[0054] If a floating window plug-in is added, it is removed from the display component to avoid interference to the user, keep the display component tidy, improve user experience, and reduce the application's occupation of system resources, thereby improving the performance and stability of the application.

[0055] The method provided in this embodiment improves the user experience and the performance stability of the application by removing the floating window plug-in in the display component after turning off the debugging mode.

[0056] In some embodiments, step 130 specifically includes: According to the data type of each performance monitoring data in the performance monitoring data list, determining the display position corresponding to each performance monitoring data in the information display interface; According to the display position, each performance monitoring data is displayed on the information display interface.

[0057] The data types of the performance monitoring data here can be divided into log information, network request monitoring information, console information, and model information, etc.; wherein, data of different data types are pre-configured with different display locations, such as the display location corresponding to the log information is the log information display area, the display location corresponding to the network request monitoring information is the network request monitoring information display area, the display location corresponding to the console information is the console information display area, and the display location corresponding to the model information is the model information display area, so that different types of data are clearly and orderly distinguished and organized on the information display interface, so as to improve the readability of the data, thereby improving the efficiency and experience of users in obtaining and analyzing performance monitoring data during the debugging process. The display area here can be a display column or a display interface, etc., which is not specifically limited in this embodiment.

[0058] Optionally, based on the data type of each performance monitoring data, location information associated with the data type can be obtained in the information display interface to determine the display position corresponding to each performance monitoring data, and then each performance monitoring data can be displayed in the information display interface according to the corresponding display position.

[0059] The method provided in this embodiment determines the display position according to the data type of the performance monitoring data and displays it in an orderly manner on the information display interface, thereby improving the readability of the data and the user's efficiency experience in obtaining and analyzing the performance monitoring data.

[0060] In some embodiments, determining, in the information display interface, a display position corresponding to each performance monitoring data in the performance monitoring data list according to the data type of each performance monitoring data includes: In the case where the information display interface includes multiple display pages, determining, according to the data type of each performance monitoring data, a display page corresponding to each performance monitoring data among the multiple display pages; The position of the display page corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

[0061] The number of display pages in the information display interface is set accordingly according to the number of performance monitoring data, that is, each page is used to display a specific type of performance monitoring data.

[0062] Optionally, when the information display interface is configured with multiple display pages based on the association of performance monitoring data, the display page associated with the data type can be associated and mapped among the multiple display pages according to the data type of each performance monitoring data to obtain the display page corresponding to each performance monitoring data, so that different performance monitoring data are configured to different display pages for display, such as, log information is assigned to a page for displaying logs, network request monitoring information is assigned to a page for displaying network activities, console information is assigned to a page for displaying console information, and model information is assigned to a page for displaying model information.

[0063] Once the display page corresponding to each performance monitoring data is determined, the location of the corresponding display page (or the identifier of the page) is recorded to accurately display the collected performance monitoring data on the corresponding page.

[0064] It should be noted that users can also switch between these pages through the navigation controls on the information display interface to view and analyze different types of data.

[0065] The method provided in this embodiment finds the most suitable display page for different types of performance monitoring data in an information display interface containing multiple display pages, thereby improving the pertinence and readability of data display, allowing users to obtain required information more conveniently and quickly, thereby improving user experience and debugging efficiency.

[0066] In some embodiments, determining, in the information display interface, a display position corresponding to each performance monitoring data in the performance monitoring data list according to the data type of each performance monitoring data includes: In a case where the information display interface includes a display page, and the display page includes a plurality of display fields, determining a display field corresponding to each performance monitoring data in the plurality of display fields according to a data type of each performance monitoring data; The position of the display column corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

[0067] The number of display fields in the information display interface is set accordingly according to the number of performance monitoring data, that is, each display field is used to display a specific type of performance monitoring data.

[0068] Optionally, when the information display interface is configured with multiple display fields based on the association of performance monitoring data, the display fields associated with the data types can be associated and mapped among the multiple display fields according to the data type of each performance monitoring data to obtain the display fields corresponding to each performance monitoring data, so that different performance monitoring data are configured to different display fields for display, such as, log information is assigned to the field for displaying logs for display, network request monitoring information is assigned to the field for displaying network activities for display, and console information is assigned to the field for displaying console information for display, and model information is assigned to the field for displaying model information for display.

[0069] Once the display column corresponding to each performance monitoring data is determined, the position of the corresponding display column (or the identifier of the column) is recorded to accurately display the collected performance monitoring data in the corresponding column.

[0070] The method provided in this embodiment finds the most suitable display column for the performance monitoring data in an information display interface containing multiple display columns according to the different types of the performance monitoring data, thereby improving the pertinence and readability of the data display, allowing users to obtain the required information more conveniently and quickly, thereby improving the user experience and debugging efficiency.

[0071] The application debugging system provided by the present invention is described below. The application debugging system described below and the application debugging method described above can be referenced to each other.

[0072] Figure 3 Schematic diagram of the application debugging system provided by the present invention; Figure 3 As shown, the system includes: an acquisition unit 310 , a first control unit 320 and a second control unit 330 .

[0073] The acquisition unit 310 is used to acquire the running status of the target switch control in the application to be debugged; The first control unit 320 is used to dynamically add a floating window plug-in to the display component of the application to be debugged, and start the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged when determining that the running state of the target switch control is the on state; The second control unit 330 is configured to display the performance monitoring data list collected by the information collection service component on the information display interface of the floating window plug-in when a trigger operation on the floating window plug-in is received.

[0074] The system provided in this embodiment obtains the running status of the target switch control in the application to be debugged, and when it is determined that the target switch control is in the turned-on state, dynamically adds a floating window plug-in to the display component of the application, starts an information collection service to collect performance monitoring data, and displays the collected performance monitoring data when the user triggers the floating window plug-in, so that developers and users can automatically, dynamically and in real time monitor the performance monitoring data through the floating window plug-in and the information collection service component without relying on IDE compilation and debugging tools and without the need to recompile, package and publish installation and debugging packages, so as to debug and monitor the performance of the application in real time, thereby significantly improving the convenience, response speed and flexibility of the debugging process and saving debugging time.

[0075] In some embodiments, the system further comprises a third control unit, specifically configured to: When it is determined that the operating state of the target switch control is the closed state, acquiring the operating state of the information collection service component; When it is determined that the running state of the information collection service component is in the on state, the information collection service component is closed.

[0076] In some embodiments, the third control unit is further configured to: When it is determined that the information collection service component is closed successfully, or the running state of the information collection service component is closed, determining whether the floating window plug-in is added to the display component; When it is determined that the floating window plug-in is added to the display component, the floating window plug-in is removed from the display component.

[0077] In some embodiments, the second control unit is specifically configured to: According to the data type of each performance monitoring data in the performance monitoring data list, determining the display position corresponding to each performance monitoring data in the information display interface; According to the display position, each performance monitoring data is displayed on the information display interface.

[0078] In some embodiments, the second control unit is further configured to: In the case where the information display interface includes multiple display pages, determining, according to the data type of each performance monitoring data, a display page corresponding to each performance monitoring data among the multiple display pages; The position of the display page corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

[0079] In some embodiments, the second control unit is further configured to: In a case where the information display interface includes a display page, and the display page includes a plurality of display fields, determining a display field corresponding to each performance monitoring data in the plurality of display fields according to a data type of each performance monitoring data; The position of the display column corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

[0080] In some embodiments, the performance monitoring data list includes multiple items of log information, network request monitoring information, console information, and model information.

[0081] The system provided by the present invention is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for the specific processes and detailed contents, which will not be repeated here.

[0082] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the application debugging method, which includes: obtaining the running state of the target switch control in the application to be debugged; in the case where it is determined that the running state of the target switch control is in the on state, dynamically adding a floating window plug-in to the display component of the application to be debugged, and starting the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged; in the case where a trigger operation on the floating window plug-in is received, displaying the performance monitoring data list collected by the information collection service component on the information display interface of the floating window plug-in.

[0083] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0084] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the application debugging method provided by the above methods, which method includes: obtaining the running state of a target switch control in the application to be debugged; when it is determined that the running state of the target switch control is on, dynamically adding a floating window plug-in to the display component of the application to be debugged, and starting the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged; when a trigger operation on the floating window plug-in is received, displaying the performance monitoring data list collected by the information collection service component on the information display interface of the floating window plug-in.

[0085] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the application debugging method provided by the above-mentioned methods, the method comprising: obtaining the running state of a target switch control in the application to be debugged; when it is determined that the running state of the target switch control is on, dynamically adding a floating window plug-in to the display component of the application to be debugged, and enabling the information collection service component in the application to be debugged to collect a performance monitoring data list of the application to be debugged; when a trigger operation for the floating window plug-in is received, displaying the performance monitoring data list collected by the information collection service component on the information display interface of the floating window plug-in.

[0086] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0087] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for debugging an application, characterized in that: include: Get the running status of the target switch control in the application to be debugged; When it is determined that the running state of the target switch control is the on state, dynamically adding a floating window plug-in to the display component of the application to be debugged, and starting the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged; When a trigger operation on the floating window plug-in is received, the performance monitoring data list collected by the information collection service component is displayed on the information display interface of the floating window plug-in.

2. The application debugging method according to claim 1, characterized in that: The method further comprises: When it is determined that the operating state of the target switch control is the closed state, acquiring the operating state of the information collection service component; When it is determined that the running state of the information collection service component is in the on state, the information collection service component is closed.

3. The application debugging method according to claim 2, characterized in that: The method further comprises: When it is determined that the information collection service component is closed successfully, or the running state of the information collection service component is closed, determining whether the floating window plug-in is added to the display component; When it is determined that the floating window plug-in is added to the display component, the floating window plug-in is removed from the display component.

4. The application debugging method according to any one of claims 1 to 3, characterized in that: The information display interface of the floating window plug-in displays the performance monitoring data list collected by the information collection service component, including: According to the data type of each performance monitoring data in the performance monitoring data list, determining the display position corresponding to each performance monitoring data in the information display interface; According to the display position, each performance monitoring data is displayed on the information display interface.

5. The application debugging method according to claim 4, characterized in that: Determining, in the information display interface, a display position corresponding to each performance monitoring data according to the data type of each performance monitoring data in the performance monitoring data list, includes: In the case where the information display interface includes multiple display pages, determining, according to the data type of each performance monitoring data, a display page corresponding to each performance monitoring data among the multiple display pages; The position of the display page corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

6. The application debugging method according to claim 4, characterized in that: Determining, in the information display interface, a display position corresponding to each performance monitoring data according to the data type of each performance monitoring data in the performance monitoring data list, includes: In a case where the information display interface includes a display page, and the display page includes a plurality of display fields, determining a display field corresponding to each performance monitoring data in the plurality of display fields according to a data type of each performance monitoring data; The position of the display column corresponding to each performance monitoring data is determined as the display position corresponding to each performance monitoring data.

7. The application debugging method according to any one of claims 1 to 3, characterized in that: The performance monitoring data list includes multiple items of log information, network request monitoring information, console information and model information.

8. An application debugging system, characterized in that: include: An acquisition unit, used for acquiring the running status of a target switch control in the application to be debugged; A first control unit is used to dynamically add a floating window plug-in to the display component of the application to be debugged, and start the information collection service component in the application to be debugged to collect the performance monitoring data list of the application to be debugged when determining that the running state of the target switch control is the on state; The second control unit is configured to display the performance monitoring data list collected by the information collection service component on the information display interface of the floating window plug-in when a trigger operation on the floating window plug-in is received.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the application debugging method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the application debugging method according to any one of claims 1 to 7 is implemented.