Application debugging method and device

By intercepting and modifying the initial configuration information of the main application in the micro front-end architecture and generating target configuration information, the problem of low application debugging efficiency in the micro front-end architecture is solved, and a simpler and more efficient application debugging method is achieved.

CN118916285APending Publication Date: 2024-11-08DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411036005.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In micro front-end architecture, it is difficult for the existing technology to debug applications efficiently, and the interaction between debugging tools and applications is complex, resulting in low debugging efficiency.

Method used

Before the main application obtains initial configuration information from the server, intercepts and modifys the information, generates the target configuration information, and sends it to the main application, so that it can render page based on the target configuration information, thereby achieving efficient debugging of the application. The specific method includes using CDP technology to intercept and modify the initial configuration information in the page file, replace the initial configuration information to generate a new page file, and send it to the main application for rendering.

Benefits of technology

By directly modifying the initial configuration information before page rendering, the debugging process is simplified, debugging efficiency is improved, and 100% of projects that support multiple access environments without configuration access does not affect user access and debugging effects of other developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916285A_ABST
    Figure CN118916285A_ABST
Patent Text Reader

Abstract

The invention discloses an application debugging method, which comprises the following steps of: intercepting initial configuration information before a main application performs page rendering based on the initial configuration information acquired from a server side by the main application; and modifying the initial configuration information based on debugging information to obtain target configuration information. And further, sending the target configuration information to the main application, so that the main application performs page rendering based on the target configuration information. Therefore, in the application, application debugging is not carried out in an event communication mode after the main application carries out page rendering based on the initial configuration information, but the initial configuration information is directly modified based on the debugging information before the main application carries out page rendering based on the initial configuration information acquired from the server; by adopting the scheme, the application debugging mode is simpler and more efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an application debugging method and device. Background Art

[0002] With the development of computer technology, more and more applications have emerged. Early applications were mostly monolithic applications, that is, all modules were run in a large application. As user needs continued to develop, the shortcomings of monolithic applications gradually emerged. For example, the modules were severely coupled and it was increasingly difficult to organize R&D code.

[0003] With the evolution of computer technology, micro-frontend architecture similar to microservices has emerged. Micro-frontend architecture can split a large monolithic application into different sub-applications according to business divisions for organization. Through the unified organization and compatibility of micro-frontend architecture, the technology selection within the sub-application scope is independent, and independent release, development and debugging are supported.

[0004] How to debug sub-applications efficiently is a problem that has yet to be solved. Summary of the invention

[0005] In order to solve or at least partially solve the above technical problems, the present application provides an application debugging method and device.

[0006] In a first aspect, the present application provides an application debugging method, the method comprising:

[0007] Before the main application renders a page based on the initial configuration information obtained from the server, intercept the initial configuration information;

[0008] Modify the initial configuration information based on the debugging information to obtain target configuration information;

[0009] The target configuration information is sent to the main application, so that the main application performs page rendering based on the target configuration information.

[0010] Optionally, intercepting the initial configuration information includes:

[0011] The CDP technology is used to intercept a first page file used by the main application for page rendering, where the first page file includes the initial configuration information.

[0012] Optionally, the method further includes:

[0013] Replacing the initial configuration information in the first page with the target configuration information to obtain a second page file;

[0014] The sending the target configuration information to the main application so that the main application performs page rendering based on the target configuration information includes:

[0015] The second page file is sent to the main application, so that the main application performs page rendering based on the second page file.

[0016] Optionally, the initial configuration information includes configuration information of the sub-application to be debugged, the debugging information is information related to the sub-application to be debugged, and the modifying the initial configuration information based on the debugging information to obtain the target configuration information includes:

[0017] The configuration information of the sub-application to be debugged is modified based on the debugging information to obtain the target configuration information.

[0018] Optionally, the debugging information includes:

[0019] Accessing the address of the sub-application to be debugged, and / or obtaining the address of the compiled file of the sub-application to be debugged.

[0020] Optionally, the initial configuration information includes:

[0021] User-defined configuration information and / or service-preset configuration information.

[0022] Optionally, the method further includes:

[0023] According to the initial configuration information, the sub-applications included in the main application are analyzed.

[0024] In a second aspect, the present application provides an application debugging device, the device comprising:

[0025] An interception unit, used for intercepting the initial configuration information before the main application renders the page based on the initial configuration information obtained from the server;

[0026] A modification unit, configured to modify the initial configuration information based on the debugging information to obtain target configuration information;

[0027] A sending unit is used to send the target configuration information to the main application, so that the main application performs page rendering based on the target configuration information.

[0028] Optionally, the interception unit is used to:

[0029] The CDP technology is used to intercept a first page file used by the main application for page rendering, where the first page file includes the initial configuration information.

[0030] Optionally, the device further comprises:

[0031] A replacement unit, configured to replace the initial configuration information in the first page with the target configuration information to obtain a second page file;

[0032] The sending unit is used for:

[0033] The second page file is sent to the main application, so that the main application performs page rendering based on the second page file.

[0034] Optionally, the initial configuration information includes configuration information of the sub-application to be debugged, the debugging information is information related to the sub-application to be debugged, and the modifying unit is used to:

[0035] The configuration information of the sub-application to be debugged is modified based on the debugging information to obtain the target configuration information.

[0036] Optionally, the debugging information includes:

[0037] Accessing the address of the sub-application to be debugged, and / or obtaining the address of the compiled file of the sub-application to be debugged.

[0038] Optionally, the initial configuration information includes:

[0039] User-defined configuration information and / or service-preset configuration information.

[0040] Optionally, the device further comprises:

[0041] An analyzing unit is used to analyze the sub-applications included in the main application according to the initial configuration information.

[0042] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory;

[0043] The processor is used to execute instructions stored in the memory so that the electronic device executes the method described in any one of the first aspects above.

[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute any of the methods described in the first aspect above.

[0045] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.

[0046] Compared with the prior art, the embodiments of the present application have the following advantages:

[0047] The present application provides an application debugging method, the method comprising: before the main application renders the page based on the initial configuration information obtained by itself from the server, intercepting the initial configuration information. Modifying the initial configuration information based on the debugging information to obtain the target configuration information. Further, sending the target configuration information to the main application so that the main application renders the page based on the target configuration information. It can be seen that in the present application, the application debugging is not performed by means of event communication after the main application renders the page based on the initial configuration information, but the initial configuration information is modified directly based on the debugging information before the main application renders the page based on the initial configuration information obtained by itself from the server. With this solution, the way of debugging the application is simpler and more efficient. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0049] Figure 1 A flowchart of an application debugging method provided in an embodiment of the present application;

[0050] Figure 2 A flowchart of an application debugging method provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of a page file provided in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of another page file provided in an embodiment of the present application;

[0053] Figure 5 A schematic diagram of the structure of an application debugging device provided in an embodiment of the present application;

[0054] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] The inventor of the present application has found through research that for an application developed using a micro-frontend architecture, the application may include a main application and several sub-applications. Currently, when debugging the application, the main application may obtain the configuration information of the application from the server and render the page based on the configuration information. After the page rendering is completed, the debugging tool may debug the application (e.g., a sub-application of the application) by means of event communication.

[0057] However, in this way, the interaction between the debugging tool and the application is relatively complicated, resulting in low efficiency in debugging the application.

[0058] The application mentioned here may be an application running on a browser, and may also be called a web application.

[0059] In order to solve the above problems, the present application provides an application debugging method and device, which can efficiently debug the application.

[0060] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.

[0061] Exemplary Methods

[0062] See also Figure 1 , which is a flow chart of an application debugging method provided in an embodiment of the present application. The application debugging method provided in an embodiment of the present application can debug a web application. The method can be applied to a debugging tool deployed on a browser, for example.

[0063] In this embodiment, the method may include, for example, the following steps: S101 - S103 .

[0064] S101: Before the main application performs page rendering based on the initial configuration information obtained from the server, the initial configuration information is intercepted.

[0065] In an embodiment of the present application, the initial configuration information may include configuration information of the main application and configuration information of at least one sub-application. The initial configuration information may be used to indicate the sub-applications specifically loaded in the page and the display style and content of each sub-application.

[0066] The embodiments of the present application do not specifically limit the content included in the initial configuration information, and the initial configuration information may include user-defined configuration information and may also include service-preset configuration information. Among them, the user-defined configuration information refers to the configuration information that the user (such as R&D personnel) independently sets according to their own needs. Service-preset configuration information refers to configuration information that is related to the specific business involved in the application and cannot be customized by the user. The embodiments of the present application do not specifically limit the specific content of the user-defined configuration information and the service-preset configuration information.

[0067] In one example, during a specific implementation of S101, when the server sends the initial configuration information to the main application, the initial configuration information may be intercepted.

[0068] In another example, it is considered that after the main application obtains the initial configuration information from the server and before rendering the page based on the initial configuration information, it will generate a first page file including the initial configuration information. Therefore, when S101 is implemented specifically, it can intercept the first page file used by the main application for page rendering. As a specific example, the CDP (English: Chrome Debugger Protocol) technology can be used to intercept the aforementioned first page file. For example, the browser plug-in technology can be first used to identify the first page file, and further, the CDP technology can be used to intercept the first page file, and further, the browser plug-in technology can be used to parse and obtain the initial configuration information included in the first page file. Among them:

[0069] CDP technology is a debugging technology for Chromium series browsers. CDP technology can be used to intercept, modify, and process browser and user behaviors. The behaviors that CDP technology supports include but are not limited to: user keyboard input operations, page access behaviors, network requests, client cache, etc. As CDP technology is a mature technology, it will not be described in detail here.

[0070] The browser plug-in technology mentioned above includes but is not limited to Chrome Extension plug-in technology and other plug-in technologies that can identify page files.

[0071] In addition, in addition to the initial configuration information, the first page file may also include other contents, such as page style information and page dynamic scripts, which will not be described in detail here.

[0072] S102: Modify the initial configuration information based on the debugging information to obtain target configuration information.

[0073] After intercepting the initial configuration information, the initial configuration information may be modified based on the debugging information to obtain target configuration information including the debugging information.

[0074] In one example, the debugging information may be information related to the sub-application to be debugged. For example, the debugging information may be an address for accessing the sub-application to be debugged. In another example, the debugging information may be an address for obtaining a compiled file of the sub-application to be debugged, wherein the compiled file is a file obtained by editing the software code describing the sub-application to be debugged, and the compiled file determines the function of the sub-application to be debugged.

[0075] Of course, the debugging information may also be information related to the main application, which is not specifically limited in the embodiments of the present application.

[0076] As mentioned above, the initial configuration information includes the configuration information of the main application and the configuration information of at least one sub-application. The at least one sub-application may include the sub-application to be debugged, and therefore, the aforementioned initial configuration information includes the configuration information of the sub-application to be debugged. In this scenario, if the aforementioned debugging information is information related to the sub-application to be debugged, then S102, in a specific implementation, may modify the configuration information of the sub-application to be debugged based on the debugging information to obtain the target configuration information. Specifically, the debugging information may be used to replace the corresponding information in the configuration information of the sub-application to be debugged, thereby obtaining the target configuration information. For example, when the debugging information is an address for accessing the sub-application to be debugged, the debugging information may be used to replace the address for accessing the sub-application to be debugged in the configuration information of the sub-application to be debugged, thereby obtaining the target configuration information.

[0077] S103: Send the target configuration information to the main application, so that the main application performs page rendering based on the target configuration information.

[0078] In one example, if the initial configuration information is intercepted when the server sends the initial configuration information to the main application, after obtaining the target configuration information, the target configuration information can be directly sent to the main application, so that the main application can generate a corresponding page file based on the target configuration information and perform page rendering.

[0079] In another example, if the first page file including the initial configuration information is intercepted in S101, then after obtaining the target configuration information, the target configuration information can be used to replace the initial configuration information in the first page, thereby obtaining a second page file, and further sending the second page to the main application so that the main application can render the page based on the second page file.

[0080] From the above description, it can be seen that using the solution provided in the embodiment of the present application, instead of debugging the application through event communication after the main application renders the page based on the initial configuration information, the initial configuration information is modified directly based on the debugging information before the main application renders the page based on the initial configuration information obtained from the server. By using this solution, the way of debugging the application is simpler and more efficient.

[0081] Moreover, this solution supports multiple access environments (such as test environment, production environment, verification environment), and can achieve 100% project 0 configuration access. Modifying configuration parameters does not affect user page access or the debugging effect of other developers.

[0082] In addition, since the main application renders the page based on the target configuration information, and the target configuration information includes debugging information, the debugger can verify the debugging result through the content displayed on the browser page.

[0083] In one example, after intercepting the initial configuration information, the sub-application included in the main application can also be analyzed based on the initial configuration information, for example, determining the version of the sub-application, or determining the traffic distribution pattern of accessing the sub-application, etc., so that the debugger can better understand the relevant information of the sub-application, so as to perform corresponding application optimization operations based on the relevant information of the sub-application.

[0084] The above is an introduction to the application debugging method provided in the embodiment of the present application. Figure 2 , introduces a possible implementation method of the embodiment of the present application. Figure 2 A flowchart of an application debugging method provided in an embodiment of the present application. Figure 2 As shown:

[0085] After the debugger triggers the page access operation in the browser, the debugging tool intercepts the first page file using CDP technology, and further parses the first page file to obtain initial configuration information. The debugger also obtains the debug information customized by the debugger, modifies the initial configuration information based on the debug information, obtains the target configuration information, and injects the target configuration information into the second page file. Furthermore, the main application renders the page based on the second page file.

[0086] Regarding the first page file and the second page file, the Figure 3 and Figure 4 To understand. Figure 3 A first page file and a second page file are shown, Figure 4 Another first page file and a second page file are shown.

[0087] like Figure 3As shown, Figure 3 The first page file shown includes initial configuration information, page style information and page dynamic scripts. The initial configuration information indicates that the address for obtaining the compiled file of sub-application a is a, the address for obtaining the compiled file of sub-application b is b, and the address for obtaining the compiled file of sub-application c is c.

[0088] The first page file is parsed using the browser plug-in technology to obtain initial configuration information, and further, debugging information is obtained, the debugging information indicating that the address for obtaining the compiled file of the sub-application c is c1.

[0089] The initial configuration information is modified using the debugging information to obtain the target configuration information, and the target configuration information is injected into the second page file. Figure 3 As shown, the second page file includes target configuration information, page style information and page dynamic script. The target configuration information indicates: the address for obtaining the compiled file of sub-application a is a, the address for obtaining the compiled file of sub-application b is b, and the address for obtaining the compiled file of sub-application c is c1.

[0090] like Figure 4 As shown, Figure 4 The first page file shown includes initial configuration information, page style information and page dynamic scripts. The initial configuration information indicates that the address for accessing sub-application d is d, the address for accessing sub-application e is e, and the address for accessing sub-application f is f.

[0091] The first page file is parsed using browser plug-in technology to obtain initial configuration information, and further, debugging information is obtained, the debugging information indicating that the address for accessing the sub-application d is d1.

[0092] The initial configuration information is modified using the debugging information to obtain the target configuration information, and the target configuration information is injected into the second page file. Figure 4 As shown, the second page file includes target configuration information, page style information and page dynamic script. The target configuration information indicates that the address for accessing sub-application d is d1, the address for accessing sub-application e is e, and the address for accessing sub-application f is f.

[0093] It should be noted that Figure 3 and Figure 4 This is only for the purpose of understanding the relevant contents of this solution and does not constitute a limitation on the embodiments of this application. Figure 3 and Figure 4 As shown, they are not listed here one by one.

[0094] Exemplary Devices

[0095] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.

[0096] See also Figure 5 , which is a structural diagram of an application debugging device provided in an embodiment of the present application. Figure 5 The device 500 shown can be used to execute the application debugging method provided by the above method embodiment.

[0097] The device 500 may specifically include, for example: an intercepting unit 501 , a modifying unit 502 , and a sending unit 503 .

[0098] The interception unit 501 is used to intercept the initial configuration information before the main application renders the page based on the initial configuration information obtained from the server;

[0099] A modifying unit 502, configured to modify the initial configuration information based on the debugging information to obtain target configuration information;

[0100] The sending unit 503 is configured to send the target configuration information to the main application, so that the main application performs page rendering based on the target configuration information.

[0101] Optionally, the interception unit 501 is used to:

[0102] The CDP technology is used to intercept a first page file used by the main application for page rendering, where the first page file includes the initial configuration information.

[0103] Optionally, the device further comprises:

[0104] A replacement unit, configured to replace the initial configuration information in the first page with the target configuration information to obtain a second page file;

[0105] The sending unit 503 is used to:

[0106] The second page file is sent to the main application, so that the main application performs page rendering based on the second page file.

[0107] Optionally, the initial configuration information includes configuration information of the sub-application to be debugged, and the debugging information is information related to the sub-application to be debugged. The modifying unit 502 is used to:

[0108] The configuration information of the sub-application to be debugged is modified based on the debugging information to obtain the target configuration information.

[0109] Optionally, the debugging information includes:

[0110] Accessing the address of the sub-application to be debugged, and / or obtaining the address of the compiled file of the sub-application to be debugged.

[0111] Optionally, the initial configuration information includes:

[0112] User-defined configuration information and / or service-preset configuration information.

[0113] Optionally, the device further comprises:

[0114] An analyzing unit is used to analyze the sub-applications included in the main application according to the initial configuration information.

[0115] Since the device 500 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 500 is based on the same concept as the above method embodiment. Therefore, for the specific implementation of each unit of the device 500, reference can be made to the description part of the above method embodiment, which will not be repeated here.

[0116] The embodiment of the present application also provides an electronic device, the electronic device comprising a processor and a memory;

[0117] The processor is used to execute instructions stored in the memory so that the electronic device executes the application debugging method described in any one of the above method embodiments.

[0118] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs (televisions), desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0119] like Figure 6As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0120] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0121] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0122] The electronic device provided in the embodiment of the present application and the method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0123] An embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any of the above embodiments is implemented.

[0124] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0125] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0126] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0127] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the method.

[0128] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0129] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0130] The units involved in the embodiments described in this application may be implemented by software or hardware. The name of a unit / module does not limit the unit itself in some cases. For example, a voice data acquisition module may also be described as a "data acquisition module".

[0131] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0132] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. An embodiment of the present application provides a computer program product that, when the computer program product is run on a computer, causes the computer to execute the application debugging method described in any one of the above method embodiments.

[0133] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0134] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0135] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. An application debugging method, characterized in that: The method comprises: Before the main application renders a page based on the initial configuration information obtained from the server, intercept the initial configuration information; Modify the initial configuration information based on the debugging information to obtain target configuration information; The target configuration information is sent to the main application, so that the main application performs page rendering based on the target configuration information.

2. The method according to claim 1, characterized in that The intercepting the initial configuration information comprises: The CDP technology is used to intercept a first page file used by the main application for page rendering, where the first page file includes the initial configuration information.

3. The method according to claim 2, characterized in that The method further comprises: Replacing the initial configuration information in the first page with the target configuration information to obtain a second page file; The sending the target configuration information to the main application so that the main application performs page rendering based on the target configuration information includes: The second page file is sent to the main application, so that the main application performs page rendering based on the second page file.

4. The method according to any one of claims 1 to 3, characterized in that: The initial configuration information includes configuration information of the sub-application to be debugged, the debugging information is information related to the sub-application to be debugged, and the initial configuration information is modified based on the debugging information to obtain target configuration information, including: The configuration information of the sub-application to be debugged is modified based on the debugging information to obtain the target configuration information.

5. The method according to any one of claims 1 to 3, characterized in that: The debugging information includes: Accessing the address of the sub-application to be debugged, and / or obtaining the address of the compiled file of the sub-application to be debugged.

6. The method according to claim 1, characterized in that The initial configuration information includes: User-defined configuration information and / or service-preset configuration information.

7. The method according to claim 1, characterized in that The method further comprises: According to the initial configuration information, the sub-applications included in the main application are analyzed.

8. An application debugging device, characterized in that: The device comprises: An interception unit, used for intercepting the initial configuration information before the main application renders the page based on the initial configuration information obtained from the server; A modification unit, configured to modify the initial configuration information based on the debugging information to obtain target configuration information; A sending unit is used to send the target configuration information to the main application, so that the main application performs page rendering based on the target configuration information.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 7.