Application development debugging method and system

Through a combined system of cloud development platform, communication server and headless browser, the problem of insufficient adaptability and flexibility in traditional application development and debugging methods is solved, and an efficient full-link automated debugging process is realized, which improves development efficiency and adaptability.

CN120448246APending Publication Date: 2025-08-08AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510647725.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

Traditional application development and debugging methods are unable to detect and solve problems in a timely manner due to limited computing resources of mobile devices and poor debugging adaptability and flexibility.

Method used

It adopts a combined system of cloud development platform, communication server and headless browser, and realizes asynchronous data transmission and automated testing by generating and transmitting application compression packages, providing a full-link automated debugging process.

Benefits of technology

It improves the adaptability and flexibility of application development and debugging, can promptly discover and solve problems, improves development efficiency, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120448246A_ABST
    Figure CN120448246A_ABST
Patent Text Reader

Abstract

The invention discloses an application development debugging system and method. The system comprises a cloud development platform, a communication server, a headless browser and a client, wherein the cloud development platform is used for generating a first application compressed package corresponding to a target application; the client side is used for running the first application compressed package, generating first running data and sending the first running data to the headless browser; the headless browser is used for obtaining first debugging information corresponding to the first operation data based on the received first operation data, and sending the first debugging information to the cloud development platform through the communication server; and the cloud development platform is used for receiving the first debugging information, generating second debugging information and generating a second application package corresponding to the target application based on the second debugging information. According to the method, efficient development and debugging of the application can be achieved, the adaptability and flexibility of application development and debugging are improved, problems can be found and solved in time in the development process, and the efficiency of application development and debugging is improved.
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 development and debugging method and system. Background Art

[0002] In the process of application development, application debugging is a key technical means to improve application quality, which can enable developers to find and solve problems in time during the development process. How to achieve application development debugging is of great research significance.

[0003] Currently, traditional application development and debugging methods often rely on large model technologies to directly optimize and debug applications on mobile devices. However, due to the limited computing resources of mobile devices, these traditional methods lack adaptability and flexibility, making it difficult to identify and resolve problems during the development process, resulting in low application development and debugging efficiency. Summary of the Invention

[0004] The present invention provides an application development and debugging system and method to achieve efficient development and debugging of applications, improve the adaptability and flexibility of application development and debugging, and can promptly discover and solve problems during the development process, thereby improving the efficiency of application development and debugging.

[0005] According to one aspect of the present invention, an application development and debugging system is provided, which includes: a cloud development platform, a communication server, a headless browser and a client; wherein,

[0006] The cloud development platform is used to generate a first application compressed package corresponding to the target application, and send the first application compressed package to the client through the communication server;

[0007] The client is configured to run the first application compressed package, generate first running data corresponding to the first application compressed package, and send the first running data to the headless browser via the communication server;

[0008] The headless browser is configured to obtain first debugging information corresponding to the first operating data based on the received first operating data, and send the first debugging information to the cloud development platform through the communication server;

[0009] The cloud development platform is used to receive the first debugging information, obtain a modification instruction for the first debugging information, generate second debugging information, and generate a second application compression package corresponding to the target application based on the second debugging information.

[0010] According to another aspect of the present invention, there is provided an application development and debugging method, the method comprising:

[0011] Generate a first application compressed package corresponding to the target application through the cloud development platform, and send the first application compressed package to the client through the communication server;

[0012] Running the first application compressed package through the client to generate first running data corresponding to the first application compressed package, and sending the first running data to the headless browser through the communication server;

[0013] Obtaining, by the headless browser, first debugging information corresponding to the first operating data based on the received first operating data, and sending the first debugging information to the cloud development platform through the communication server;

[0014] The first debugging information is received through the cloud development platform, and a modification instruction for the first debugging information is obtained to generate second debugging information. Based on the second debugging information, a second application compression package corresponding to the target application is generated.

[0015] An application development and debugging system according to an embodiment of the present invention includes a cloud development platform, a communication server, a headless browser, and a client. The cloud development platform generates a first application package corresponding to a target application and sends the package to the client via the communication server. This eliminates the need for developers to configure the application environment locally, improving development efficiency and reducing development costs. The client runs the first application package, generates first operating data corresponding to the package, and sends the first operating data to the headless browser via the communication server. This allows the application to obtain operating data in a real application environment, providing a data foundation for subsequent debugging. The headless browser obtains first debugging information corresponding to the received first operating data based on the first operating data and sends the first debugging information to the cloud development platform via the communication server. This enables automated testing of the application and improves testing efficiency. The cloud development platform receives the first debugging information, obtains modification instructions for the first debugging information, generates second debugging information, and, based on the second debugging information, generates a second application package corresponding to the target application. This automates the entire debugging process, from problem discovery to repair, improving debugging efficiency. Through efficient data flow between the cloud development platform, communication server, headless browser and client, efficient development and debugging of applications can be achieved, the adaptability and flexibility of application development and debugging can be improved, problems can be discovered and solved in a timely manner during the development process, and the efficiency of application development and debugging can be improved.

[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 This is a structural diagram of an application development and debugging system provided by the first embodiment of the present invention;

[0019] Figure 2 This is a flowchart of an application development and debugging method provided by Example 2 of the present invention. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only 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 making creative efforts should fall within the scope of protection of the present invention.

[0021] It should be noted that the terms "first," "second," "target," and the like in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this way are interchangeable where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.

[0022] Example 1

[0023] Figure 1 This is a structural block diagram of an application development and debugging system provided by an embodiment of the present invention. Figure 1As shown, the application development and debugging system includes: a cloud development platform 101, a communication server 102, a client 103 and a headless browser 104; wherein,

[0024] The cloud development platform 101 is used to generate a first application compression package corresponding to the target application, and send the first application compression package to the client 103 through the communication server 102;

[0025] The client 103 is configured to run the first application compressed package, generate first running data corresponding to the first application compressed package, and send the first running data to the headless browser 104 via the communication server 102;

[0026] The headless browser 104 is configured to obtain first debugging information corresponding to the first operating data based on the received first operating data, and send the first debugging information to the cloud development platform 101 through the communication server 102;

[0027] The cloud development platform 101 is configured to receive the first debugging information, obtain a modification instruction for the first debugging information, generate second debugging information, and generate a second application compression package corresponding to the target application based on the second debugging information.

[0028] In this embodiment, the cloud development platform 101 is used to automatically generate a first application compressed package corresponding to the target application based on the code corresponding to the target application and using a build tool. The first application compressed package can be sent to the client via the communication server in an asynchronous manner, eliminating the need for developers to locally configure the application environment, improving development efficiency and reducing development costs. By transmitting data asynchronously, the communication server and the cloud development platform can continue to process other tasks, improving the system's concurrent processing capabilities. Among them, the cloud development platform can refer to an integrated development environment running on a cloud server. It is not only cloud-based but also can create cloud applications. It allows developers to write, compile, and deploy code anywhere and on any device. The target application can refer to the application that the developer plans to develop and debug, which can be any type of application, such as a web application, mobile application, etc. The first application compressed package can refer to an executable format file (such as a web application package) automatically generated by the cloud development platform based on the source code, resource files, and dependent libraries of the target application. The communication server can refer to an intermediate layer service responsible for transmitting data between the cloud development platform, the client, and the headless browser. For example, the communication server can be a server that uses the WebSocket protocol to achieve efficient two-way communication. The client can refer to the device or environment (such as a mobile phone, PC, or simulator) used to run the target application. It should be noted that the client can also establish a connection with the cloud development platform by scanning a code. The cloud development platform can use data services to store the code scanning request and the corresponding connection information, and use the unique identifier matching mechanism to implement the process of the client scanning the code to connect to the cloud platform development tool in the cloud, thereby realizing local development functions. After generating the first application compression package, a caching strategy can also be adopted to cache resources locally on the server or cloud development platform to reduce unnecessary network transmission.

[0029] The client 103 is used to load the first application compressed package in an isolated environment, run the target application, generate first operating data corresponding to the first application compressed package, and send the first operating data to the headless browser through the communication server. This can expose problems in a scenario close to the user's actual situation and ensure the comprehensiveness of the operating data acquisition. The first operating data can refer to dynamic data generated when the client runs the first application compressed package. A headless browser can refer to a browser engine without a graphical user interface. It should be noted that a separate data channel server can also be built, the client connects to the data channel server, and publishes a message. The client notifies the communication server of the js script or model (i.e., the target application) originally executed on the client through the data channel server, requesting the communication server to perform the corresponding model training or reasoning task (i.e., run the target application). The communication server connects to the same data channel server, subscribes to the corresponding topic, and calls the headless browser when it receives an execution request. The connection between the client and the data channel server can remain open for a long time to quickly transmit data when needed. At the same time, a message broker can also be used in the cloud to listen to messages sent by the client. Once a training or reasoning request is received, the corresponding machine learning model operation is executed.

[0030] The headless browser 104 is used to simulate the operation of the target application based on the first operation data received, obtain the first debugging information corresponding to the first operation data, and send the first debugging information to the cloud development platform 101 through the communication server 102, which can quickly identify the root cause of the problem, shorten the debugging time, and improve efficiency. Among them, the first debugging information can refer to the debugging feedback generated by the headless browser based on the first operation data. For example, the first debugging information can be the operation log and the corresponding source code information. It should be noted that the communication browser can communicate directly with the headless browser through the browser communication protocol and obtain debugging information using the interface. At the same time, the communication server sends the obtained log and part of the source code information (i.e., debugging information) to the debugger front-end page developed by the cloud platform through the WebSocket channel for display, which is convenient for developers to debug and analyze.

[0031] The cloud development platform 101 is configured to receive the first debugging information, allowing the developer to view the debugging information on the cloud development platform, directly jump to the corresponding code file for modification through interface interaction (e.g., clicking on the error line), obtain modification instructions for the first debugging information, generate second debugging information, and generate a second application compressed package corresponding to the target application based on the second debugging information, thereby achieving efficient debugging of the application. The second debugging information may refer to debugging information generated by the cloud development platform after modifying the first debugging information. The second application compressed package may refer to a compressed package obtained by modifying the first application compressed package based on the second debugging information.

[0032] Optionally, the communication server 102 is generated based on a full-duplex communication protocol, and performs asynchronous data transmission based on a fragmented transmission mechanism and a breakpoint resume transmission mechanism.

[0033] Among them, the full-duplex communication protocol may refer to a protocol in which both communicating parties (such as the cloud development platform and the client, the client and the headless browser) can send and receive data at the same time without having to wait for the other party to complete sending before receiving. Through the full-duplex communication protocol, real-time two-way communication between the cloud development platform, the client and the headless browser can be supported, thereby significantly improving communication efficiency. The fragmented transmission mechanism may refer to a technology that divides a large file or data packet into multiple smaller fragments (fragments) for transmission, and then reassembles these fragments into complete data at the receiving end. Through fragmented transmission, network congestion caused by transmitting large files at one time can be avoided. The breakpoint resume mechanism may refer to allowing transmission to continue from the breakpoint position that has been transmitted after the transmission is interrupted without having to start over. Through the breakpoint resume mechanism, repeated transmission of the successfully transmitted part can be avoided, saving time and bandwidth.

[0034] Optionally, the client 103 includes: a data import module and a data acquisition module, wherein the data import module is used to decompress the first application compression package and adapt the operating environment of the decompressed target application based on the device type corresponding to the client; the data acquisition module is used to collect data from the target application running in the client and obtain the first operating data of the target application during operation.

[0035] The device type may refer to the specific hardware or software environment that the client relies on when running the target application.

[0036] Specifically, the data import module can automatically detect the format of the first application compression package, and call the decompression tool to decompress the first application compression package. It can also verify the integrity of the decompressed file to ensure that there are no transmission errors. Furthermore, the data import module identifies the client device type (such as Android mobile phone, iOS tablet, Windows PC), and adapts the operating environment of the target application obtained by decompression according to the device type corresponding to the client. For example, the application configuration (such as API address, log level) can be modified to adapt to the device characteristics, thereby ensuring that the application runs stably on different devices, reducing manual configuration costs, and improving deployment efficiency. The data acquisition module collects logs of the target application running in the client, obtains the target application's operation logs and corresponding source code information, and obtains the first operation data of the target application in operation. It can fully record application behavior and facilitate subsequent problem reproduction and root cause analysis.

[0037] Optionally, the data import module is specifically used to: based on the device type corresponding to the client, adapt the decompressed target application to the device screen resolution, operating system compatibility and hardware features to complete the installation of the target application.

[0038] Specifically, the format of the first application compression package (such as APK, IPA, ZIP) is automatically detected, and the system decompression tool is called to decompress it, and the integrity of the decompressed file is verified to ensure that there are no transmission errors. According to the device screen resolution, the application interface layout is dynamically adjusted (such as using a percentage layout) to adapt the decompressed target application to the device screen resolution; the operating system version is detected to ensure that the application only calls the API supported by the current system to adapt the decompressed target application to the operating system compatibility; the sensor types supported by the client device (such as GPS, accelerometer) are detected, and related functions are enabled or disabled to adapt the hardware features of the decompressed target application. Through the data import module, the client's adaptability to different applications can be ensured, the stable operation of the application can be guaranteed, the manual configuration cost can be reduced, the rapid deployment and testing of new versions of applications can be supported, and development efficiency can be improved.

[0039] Optionally, the data acquisition module is specifically used to obtain operation log information corresponding to the target application running in the client.

[0040] The operation log information may refer to the data stream automatically generated by the application during operation, which records key events and status, and may reflect the application's behavior trajectory, performance, and abnormal conditions.

[0041] Specifically, log recording points can be inserted into the key code paths of the target application to record information such as event types (such as user clicks, API calls, page jumps), timestamps, context data (such as user ID, session ID), etc. When recording logs, the code that calls the log and its location information (such as class name, method name, file name, line number), that is, the source code information, are automatically captured. The log and the corresponding source code information are used as the running log information corresponding to the target application running in the client. Through the source code information in the log (such as class name, method name, line number), developers can jump directly to the problem code location, reducing manual troubleshooting time and improving debugging efficiency.

[0042] Optionally, the headless browser includes: a running test module and a debugging information generation module, wherein the running test module is used to load the first running data, and simulate the operation information corresponding to the visitor of the target application to test the first running data, and generate an abnormal test log; the debugging information generation module is used to determine the source code information corresponding to the abnormal test log based on the abnormal test log and the first running data, and use the abnormal test log and its corresponding source code information as the first debugging information.

[0043] Among them, the exception test log can refer to the key data generated by the running test module of the headless browser during the automated testing process to record test exceptions. It reflects the unexpected behavior of the application under simulated user operations and is an important basis for locating problems, analyzing causes and optimizing applications.

[0044] Specifically, the operation test module simulates real user operations of the target application by loading the first operation data sent by the client, performs automated testing, and generates an exception test log, achieving accurate reproduction of the user operating environment, greatly improving the flexibility and adaptability of application development and debugging. The debugging information generation module locates the root cause of the problem based on the exception test log and the first operation data, and generates first debugging information containing source code information. By associating the exception test log with the source code, the location of the problematic code can be quickly identified, reducing troubleshooting time.

[0045] Optionally, the operation test module is specifically used to: load the first operation data to simulate the operation of the target application, and simulate the operation information corresponding to the visitor of the target application to test the target application, detect the crash exception, performance exception and behavior feedback exception of the target application, and generate an exception test log.

[0046] A crash exception refers to an application suddenly terminating, becoming unresponsive, or entering an unrecoverable state during operation. This is typically caused by code defects or improper resource management. A performance exception refers to an application experiencing slow response, excessive resource consumption, or failure to meet performance requirements. This directly impacts user experience and system stability. A behavioral feedback exception refers to an application failing to behave as expected, resulting in user operation failures or incorrect data display. This is typically caused by logic errors or misunderstandings of requirements.

[0047] Specifically, the test scenarios (such as user login, product search, payment process) and corresponding test cases are extracted from the first running data received from the client, and the test scenarios are mapped to test scripts executable by the headless browser. The operating environment of the headless browser is configured according to the device type (such as Chrome browser, iOS device) and operating system (such as Windows 10) in the first running data. The target application is started through the headless browser, and the user operation is simulated through the application programming interface (API) of the headless browser. Multiple headless browser instances can be started in parallel to simulate a large number of virtual users (such as 1,000 concurrent sessions). Test tasks are distributed through load balancing strategies to evaluate the performance of the application under high load. The crash anomalies, performance anomalies and behavior feedback anomalies of the target application are detected, and an abnormal test log is generated. Through the real rendering engine of the headless browser, the user operating environment can be accurately reproduced, repetitive test tasks can be automatically executed, labor costs can be reduced, and code defects can be quickly located.

[0048] Optionally, the cloud development platform includes: a front-end display module and a compressed package optimization module, wherein the front-end display module is used to visually display the first debugging information so as to make modifications based on the first debugging information; the compressed package optimization module is used to receive modification instructions for the first debugging information, generate second debugging information, and update and optimize the first application compressed package based on the second debugging information to generate a second application compressed package.

[0049] Specifically, the front-end display module visualizes the first debugging information on the front end, making it convenient for developers to modify the source code location in the log according to the first debugging information. Developers can view the test results immediately, shortening the cycle from problem discovery to repair. The compressed package optimization module receives the modification instruction for the first debugging information, and modifies the abnormal source code in the first debugging information according to the modification instruction to generate the second debugging information. Based on the second debugging information, the abnormal code in the first application compressed package is modified to generate the second application compressed package, realizing full automation from problem discovery to repair package generation, shortening the debugging cycle.

[0050] Optionally, the cloud development platform further includes: an abnormality diagnosis module, wherein the abnormality diagnosis module is used to analyze the first debugging information based on an abnormality diagnosis model, generate an abnormality diagnosis result corresponding to the first debugging information, and modify the first debugging information according to the first debugging information and the abnormality diagnosis result.

[0051] The anomaly diagnosis model may refer to a pre-trained deep learning model for application anomaly diagnosis. The anomaly diagnosis result may refer to the conclusive information generated by the anomaly diagnosis module after in-depth analysis of the first debugging information. This information is intended to explain the cause and impact of the anomaly and provide remediation suggestions. It is a key basis for developers to understand and fix the problem.

[0052] Specifically, the first debugging information is input into a pre-trained abnormality diagnosis model to analyze the first debugging information and obtain an abnormality diagnosis result corresponding to the first debugging information, which helps developers to modify the first debugging information according to the first debugging information and the abnormality diagnosis result, thereby improving application debugging efficiency.

[0053] An application development and debugging system according to an embodiment of the present invention includes a cloud development platform, a communication server, a headless browser, and a client. The cloud development platform generates a first application package corresponding to a target application and sends the package to the client via the communication server. This eliminates the need for developers to configure the application environment locally, improving development efficiency and reducing development costs. The client runs the first application package, generates first operating data corresponding to the package, and sends the first operating data to the headless browser via the communication server. This allows the application to obtain operating data in a real application environment, providing a data foundation for subsequent debugging. The headless browser obtains first debugging information corresponding to the received first operating data based on the first operating data and sends the first debugging information to the cloud development platform via the communication server. This enables automated testing of the application and improves testing efficiency. The cloud development platform receives the first debugging information, obtains modification instructions for the first debugging information, generates second debugging information, and, based on the second debugging information, generates a second application package corresponding to the target application. This automates the entire debugging process, from problem discovery to repair, improving debugging efficiency. Through efficient data flow between the cloud development platform, communication server, headless browser and client, efficient development and debugging of applications can be achieved, the adaptability and flexibility of application development and debugging can be improved, problems can be discovered and solved in a timely manner during the development process, and the efficiency of application development and debugging can be improved.

[0054] Example 2

[0055] This embodiment provides an application development and debugging method based on the application development and debugging system provided in the above embodiment. Figure 2 A flowchart of an application development and debugging method provided by an embodiment of the present invention is shown as follows: Figure 2 As shown, the method includes the following steps:

[0056] S210: Generate a first application compression package corresponding to the target application through the cloud development platform, and send the first application compression package to the client through the communication server.

[0057] Specifically, the cloud development platform automatically generates a first application compression package corresponding to the target application based on the target application's code and by invoking a build tool. This package can then be asynchronously sent to the client via the communication server, eliminating the need for developers to configure their application environment locally. This improves development efficiency and reduces development costs. Asynchronous data transmission allows the communication server and cloud development platform to continue processing other tasks, improving the system's concurrent processing capabilities.

[0058] S220. Run the first application compressed package through the client, generate first running data corresponding to the first application compressed package, and send the first running data to the headless browser through the communication server.

[0059] Specifically, through the client, the first application compression package is loaded in an isolated environment, and the target application is run to generate first running data corresponding to the first application compression package, and the first running data is sent to the headless browser through the communication server, so as to expose problems in a scenario close to the actual user and ensure the comprehensiveness of the acquisition of running data.

[0060] S230. Obtain, through the headless browser, first debugging information corresponding to the first operating data based on the received first operating data, and send the first debugging information to the cloud development platform through the communication server.

[0061] Specifically, through a headless browser, based on the first running data received, the target application operation is simulated, the first debugging information corresponding to the first running data is obtained, and the first debugging information is sent to the cloud development platform through the communication server, so as to quickly identify the root cause of the problem, shorten the debugging time, and improve efficiency.

[0062] S240: Receive the first debugging information through the cloud development platform, obtain a modification instruction for the first debugging information, generate second debugging information, and generate a second application compression package corresponding to the target application based on the second debugging information.

[0063] Specifically, the first debugging information is received through the cloud development platform, so that the developer can view the debugging information on the cloud development platform, directly jump to the corresponding code file for modification through interface interaction (such as clicking on the error line), and obtain the modification instruction of the first debugging information, generate the second debugging information, and based on the second debugging information, generate the second application compression package corresponding to the target application, thereby realizing efficient debugging of the application.

[0064] In the application development and debugging method provided in an embodiment of the present invention, the cloud development platform is used to generate a first application compression package corresponding to the target application, and send the first application compression package to the client through the communication server, thereby eliminating the need for developers to locally configure the application environment, improving development efficiency, and reducing development costs. The client is used to run the first application compression package, generate first operating data corresponding to the first application compression package, and send the first operating data to the headless browser through the communication server, so as to obtain the operating data of the application in the real application environment and provide a data basis for subsequent debugging. The headless browser is used to obtain first debugging information corresponding to the first operating data based on the received first operating data, and send the first debugging information to the cloud development platform through the communication server, so as to realize automated testing of the application and improve testing efficiency. The cloud development platform is used to receive the first debugging information, obtain modification instructions for the first debugging information, generate second debugging information, and generate a second application compression package corresponding to the target application based on the second debugging information, thereby realizing full-link automation from problem discovery to repair during the debugging process and improving debugging efficiency. Through efficient data flow between the cloud development platform, communication server, headless browser and client, efficient development and debugging of applications can be achieved, the adaptability and flexibility of application development and debugging can be improved, problems can be discovered and solved in a timely manner during the development process, and the efficiency of application development and debugging can be improved.

[0065] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. An application development and debugging system, characterized in that: include: Cloud development platform, communication server, headless browser and client; among them, The cloud development platform is used to generate a first application compressed package corresponding to the target application, and send the first application compressed package to the client through the communication server; The client is configured to run the first application compressed package, generate first running data corresponding to the first application compressed package, and send the first running data to the headless browser via the communication server; The headless browser is configured to obtain first debugging information corresponding to the first operating data based on the received first operating data, and send the first debugging information to the cloud development platform through the communication server; The cloud development platform is used to receive the first debugging information, obtain a modification instruction for the first debugging information, generate second debugging information, and generate a second application compression package corresponding to the target application based on the second debugging information.

2. The system according to claim 1, wherein: The communication server is generated based on a full-duplex communication protocol and performs asynchronous data transmission based on a fragment transmission mechanism and a breakpoint resume transmission mechanism.

3. The system according to claim 1, wherein: The client includes: a data import module and a data acquisition module, wherein: The data import module is configured to decompress the first application compressed package and perform runtime environment adaptation on the decompressed target application based on the device type corresponding to the client; The data collection module is used to collect data from the target application running in the client, and obtain first running data of the target application during running.

4. The system according to claim 3, characterized in that The data import module is specifically used to: based on the device type corresponding to the client, adapt the decompressed target application to the device screen resolution, operating system compatibility and hardware characteristics to complete the installation of the target application.

5. The system according to claim 3, wherein: The data acquisition module is specifically used to obtain the operation log information corresponding to the target application running in the client.

6. The system according to claim 1, wherein: The headless browser includes: a running test module and a debugging information generation module, wherein: The operation test module is used to load the first operation data, simulate the operation information corresponding to the visitor of the target application to test the first operation data, and generate an abnormal test log; The debugging information generating module is configured to determine source code information corresponding to the abnormal test log based on the abnormal test log and the first operation data, and use the abnormal test log and the corresponding source code information as first debugging information.

7. The system according to claim 6, characterized in that The operation test module is specifically used to: load the first operation data to simulate the operation of the target application, simulate the operation information corresponding to the visitor of the target application to test the target application, detect the crash exception, performance exception and behavior feedback exception of the target application, and generate an exception test log.

8. The system according to claim 1, wherein: The cloud development platform includes: a front-end display module and a compression package optimization module, wherein: The front-end display module is used to visually display the first debugging information so as to modify it according to the first debugging information; The compressed package optimization module is configured to receive a modification instruction for the first debugging information, generate second debugging information, and update and optimize the first application compressed package based on the second debugging information to generate a second application compressed package.

9. The system according to claim 8, characterized in that The cloud development platform further includes an abnormality diagnosis module, wherein: The abnormality diagnosis module is used to analyze the first debugging information based on the abnormality diagnosis model, generate an abnormality diagnosis result corresponding to the first debugging information, and modify the first debugging information according to the first debugging information and the abnormality diagnosis result.

10. An application development and debugging method, characterized in that: include: Generate a first application compressed package corresponding to the target application through the cloud development platform, and send the first application compressed package to the client through the communication server; Running the first application compressed package through the client to generate first running data corresponding to the first application compressed package, and sending the first running data to the headless browser through the communication server; Obtaining, by the headless browser, first debugging information corresponding to the first operating data based on the received first operating data, and sending the first debugging information to the cloud development platform through the communication server; The first debugging information is received through the cloud development platform, and a modification instruction for the first debugging information is obtained to generate second debugging information. Based on the second debugging information, a second application compression package corresponding to the target application is generated.