Thermal heavy load debugging method and device

By establishing a connection link between the host device and the terminal device, real-time monitoring and updating of business files solves the problem of cumbersome development and debugging processes and achieves fast and efficient debugging effects.

CN118708474APending Publication Date: 2024-09-27HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726680.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The development and debugging process in the existing technology is cumbersome, resulting in low efficiency and inability to achieve quick response and efficient debugging.

Method used

By establishing a connection link between the host device and the terminal device, the service unit monitors changes in the business files to be debugged and sends the file address to the target application in real time to achieve rapid file updating and debugging.

Benefits of technology

It improves the efficiency of development and debugging, avoids the time-consuming overall update and redeployment in traditional methods, and achieves a fast and efficient debugging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708474A
    Figure CN118708474A
Patent Text Reader

Abstract

The embodiment of the invention provides a hot heavy load debugging method and device, and the method comprises the steps that a service unit monitors a first service file of a to-be-debugged service, and the first service file is stored in host equipment; and under the condition that the first service file changes, the service unit sends the first file address of the target service file to the target application through the connection link, and the target service file is the changed service file in the multiple first service files. In response to an access request of the target application, the service unit provides a target service file for the target application, and the target service file is used for updating the to-be-debugged service by the target application. According to the technical scheme, the target application can be developed and debugged quickly and efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to computer technology, and more particularly to a hot reload debugging method and device. Background Art

[0002] Debugging is an important stage in the project development life cycle. The purpose of development and debugging is to ensure that the application can run normally and meet the expected requirements.

[0003] At present, in the related technology, when developing and debugging, the developer usually submits the debugged code to the code management warehouse, and the code management warehouse triggers the packaging and deployment process to submit the debugged code to the cloud server, and then the cloud server packages and deploys the code. After that, the application will detect the existence of a new version of the data package, and then perform the operations of data package download, version update, version verification, file deployment, and restarting the application in sequence. Only then can the result of this debugging be determined according to the running status of the application.

[0004] Therefore, the debugging process introduced above has the problem of cumbersome procedures, which leads to low efficiency of development and debugging. Summary of the invention

[0005] The embodiments of the present application provide a hot reload debugging method and device to overcome the problem of low efficiency in development and debugging.

[0006] In a first aspect, an embodiment of the present application provides a hot reload debugging method, which is applied to a host device, wherein a connection link is established between a service unit in the host device and a target application running in a terminal device, and the host device is used to perform business development for the target application, including:

[0007] The service unit monitors a first service file of the service to be debugged, where the first service file is stored in the host device;

[0008] In the case where the first business file changes, the service unit sends a first file address of a target business file to the target application through the connection link, where the target business file is a business file that has changed among the first business files;

[0009] In response to the access request of the target application, the service unit provides the target application with the target service file, where the target service file is used by the target application to update the service to be debugged.

[0010] In a possible design, the service unit monitors the first service file of the service to be debugged, including:

[0011] The service unit monitors whether file information of the first service file changes, where the file information includes at least one of the following: file size, file attribute, file modification time, and file name.

[0012] In a possible design, when the first service file changes, the service unit sends the first file address of the target service file to the target application through the connection link, including:

[0013] The service unit screens out a changed target business file from the first business file;

[0014] The service unit determines a first file address of the target service file;

[0015] The service unit sends first address information to the target application through the connection link.

[0016] In one possible design, the first business file is stored in a first folder in the host device;

[0017] The service unit screens out the changed target business file from the first business file, including:

[0018] For any first business file, the service unit acquires first file information of the first business file in the first folder, and acquires second file information of the first business file in a second folder in the service unit;

[0019] If the first file information and the second file information are different, determining that the first business file is a target business file, and copying the target business file from the first folder to the second folder;

[0020] The service unit determines the first file address of the target service file, including:

[0021] The service unit determines the address of the second folder as the first file address.

[0022] In one possible design, the method further includes:

[0023] The service unit receives feedback information sent by the target application, where the feedback information includes at least one of the following: link connection status and data log.

[0024] The feedback information is displayed through the front-end interface of the service unit.

[0025] In one possible design, the method further includes:

[0026] In response to a service creation instruction, starting the service unit, wherein the service creation instruction includes a service identifier and connection information of at least one service to be debugged;

[0027] The service unit establishes the connection link with the target application in response to a connection request sent by the target application, wherein the connection request includes the connection information;

[0028] The service unit monitors a first service file of the service to be debugged, including:

[0029] The service unit determines a first service file of the service to be debugged according to the service identifier, and monitors the first service file.

[0030] In a second aspect, an embodiment of the present application provides a hot reload debugging method, which is applied to a terminal device, wherein a target application is running in the terminal device, a connection link is established between the target application and a service unit in the host device, and the host device is used to perform business development for the target application, including:

[0031] Receiving a first file address sent by the service unit through the connection link, where the first file address is a file address of a target service file, and the target service file is a service file that has been changed in a plurality of first service files of the service to be debugged;

[0032] In response to the first file address, sending an access request to the service unit, wherein the access request is used to obtain the target file;

[0033] The service to be debugged is updated according to the target file.

[0034] In one possible design, the method further includes:

[0035] Feedback information is sent to the service unit, where the feedback information includes at least one of the following: link connection status and data log.

[0036] In a third aspect, an embodiment of the present application provides a hot reload debugging device, comprising:

[0037] A file monitoring module, applied to monitor a first business file of the business to be debugged, wherein the first business file is stored in the host device;

[0038] A file request module, configured to send a first file address of a target business file to the target application through the connection link when the first business file changes, wherein the target business file is a business file that has changed among the plurality of the first business files;

[0039] The connection module is used to provide the target service file to the target application in response to an access request of the target application, wherein the target service file is used by the target application to update the service to be debugged.

[0040] In a possible design, the file monitoring module is specifically used for:

[0041] Monitor whether file information of the first business file changes, where the file information includes at least one of the following: file size, file attribute, file modification time, and file name.

[0042] In a possible design, the file request module is specifically used to:

[0043] In the first business file, select the target business file that has changed;

[0044] Determine a first file address of the target business file;

[0045] The first address information is sent to the target application through the connection link.

[0046] In one possible design, the first business file is stored in a first folder in the host device;

[0047] The file request module is specifically used for:

[0048] For any first business file, first file information of the first business file is acquired in the first folder, and second file information of the first business file is acquired in the second folder in the service unit;

[0049] If the first file information and the second file information are different, determining that the first business file is a target business file, and copying the target business file from the first folder to the second folder;

[0050] The file request module is specifically used for:

[0051] Determine the address of the second folder as the first file address.

[0052] In a possible design, the connection module is further used for:

[0053] Feedback information sent by the target application is received, where the feedback information includes at least one of the following: link connection status and data log.

[0054] The feedback information is displayed through the front-end interface of the service unit.

[0055] In one possible design, the apparatus further includes: a processing module;

[0056] The processing module is used to start the service unit in response to a service creation instruction, wherein the service creation instruction includes a service identifier and connection information of at least one service to be debugged;

[0057] The connection module is specifically used for:

[0058] In response to a connection request sent by the target application, establishing the connection link with the target application, wherein the connection request includes the connection information;

[0059] The file monitoring module is specifically used for:

[0060] According to the service identifier, a first service file of the service to be debugged is determined, and the first service file is monitored.

[0061] In a fourth aspect, an embodiment of the present application provides a hot reload debugging device, including:

[0062] A connection module, configured to receive a first file address sent by the service unit through the connection link, wherein the first file address is a file address of a target service file, and the target service file is a service file that has been changed in a plurality of first service files of the service to be debugged;

[0063] The file download module is further used to send an access request to the service unit in response to the first file address, wherein the access request is used to obtain the target file;

[0064] The processing module is further used to update the service to be debugged according to the target file.

[0065] In a possible design, the connection module is further used for:

[0066] Feedback information is sent to the service unit, where the feedback information includes at least one of the following: link connection status and data log.

[0067] In a fifth aspect, an embodiment of the present application provides an electronic device, including:

[0068] Memory, used to store programs;

[0069] A processor is used to execute the program stored in the memory. When the program is executed, the processor is used to execute the methods described in the first aspect and the second aspect above.

[0070] In a sixth aspect, an embodiment of the present application provides a hot reload debugging system, including: a host device and a terminal device;

[0071] A connection link is established between the service unit in the host device and the target application running in the terminal device, and the host device is used to perform service development for the target application;

[0072] Wherein, the host device is used to execute the method as described in the first aspect; and the terminal device is used to execute the method as described in the second aspect.

[0073] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the methods described in the first and second aspects above.

[0074] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the methods described in the first and second aspects above.

[0075] The embodiment of the present application provides a hot reload debugging method and device, the method comprising: a service unit monitors a first business file of a business to be debugged, and the first business file is stored in a host device. In the case where the first business file changes, the service unit sends the first file address of the target business file to the target application through a connection link, and the target business file is a business file that has changed among multiple first business files. In response to an access request of the target application, the service unit provides the target business file to the target application, and the target business file is used by the target application to update the business to be debugged. By establishing a connection link that can perform real-time communication between the service unit and the target application, when the service unit monitors changes in the business file, the service unit informs the target application of the file address of the changed target business file through the connection link, so that the target application can quickly and efficiently obtain the target business file through the connection link, thereby realizing that the development and debugging performed by the developer can be quickly responded to in the target application, so as to quickly and efficiently realize the development and debugging of the target application. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0077] Figure 1 A schematic diagram of implementing hot update service debugging provided in an embodiment of the present application;

[0078] Figure 2 A system schematic diagram of a hot reload debugging system provided in an embodiment of the present application;

[0079] Figure 3 A flowchart of a hot reload debugging method provided in an embodiment of the present application;

[0080] Figure 4 The process of the hot reload debugging method provided in the embodiment of the present application Figure 2 ;

[0081] Figure 5 A schematic diagram of the structure of the service unit provided in the embodiment of the present application;

[0082] Figure 6 A schematic diagram of implementing the copying of target business files provided in an embodiment of the present application;

[0083] Figure 7 A schematic diagram of the structure of the target application provided in the embodiment of the present application;

[0084] Figure 8 A schematic diagram of the structure of the hot reload debugging device provided in the embodiment of the present application Figure 1 ;

[0085] Fig. 9 A schematic diagram of the structure of the hot reload debugging device provided in the embodiment of the present application Figure 2 ;

[0086] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0087] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, 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 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.

[0088] In order to better understand the technical solution of the present application, the relevant concepts involved in the present application are first explained below.

[0089] 1. Real machine

[0090] A real device is a device that has an independent operating system and independent operating space, and can be installed by users on software, games, navigation, and other third-party service providers. The device can also access the wireless network through the mobile communication network. For example, common physical mobile phones, smart phones, or car terminals can be understood as real devices introduced here.

[0091] 2. Development and debugging

[0092] Debugging is an important stage in the project development life cycle. During this stage, the developed application will be deployed to the target environment and debugged to ensure that the application can run normally and meet the expected requirements.

[0093] Currently, there are two main methods for developing and debugging applications for mobile devices:

[0094] The first is simulator development and debugging, that is, using the simulator and debugger integrated in the Integrated Development Environment (IDE) to develop and debug the application, where the application is deployed and run on the simulator.

[0095] The second is real-device development and debugging, which involves deploying the application to a terminal device and then debugging it on the terminal device.

[0096] 3. uni-app

[0097] uni-app is a framework for developing front-end applications using Vue.js. It allows developers to write a set of codes and then use compilation tools to simultaneously generate applications that can run on multiple platforms. These multiple platforms may include iOS, Android, Web (responsive), various applets, and quick apps.

[0098] 4. Hot Reload

[0099] Hot reload is a programming technique that allows developers to update runtime code in real time without restarting the application. This feature is reflected in different types of development environments, including but not limited to front-end development (such as Vuex and Flutter), cross-platform development, and native development. In the traditional development process, when developers make minor adjustments to the interface or partial modifications to the code, they usually need to recompile and run the entire application to see the changes. However, the emergence of hot reload technology has greatly improved development efficiency, allowing developers to immediately observe the effects of code changes without stopping operation. In summary, hot reload is an important development aid that simplifies the process of code testing and debugging, allowing developers to respond to changes in requirements more quickly.

[0100] Based on the above introduction, the relevant technologies involved in this application are further introduced in detail below.

[0101] With the development of front-end cross-platform frameworks and the improvement of knowledge communities, the development method centered on front-end technology has become more and more mainstream on the mobile side. In addition, relying on the improvement of the mini-program ecosystem, the cross-platform front-end framework uni-app is also being used by more and more developers.

[0102] Generally, an application often includes multiple services. For example, for a music player type application, user login can be understood as a service, content search can be understood as a service, and audio playback can be understood as a service. In other words, each function in the application can be understood as a service.

[0103] When a developer develops a service for an application, for example, the developer may develop the service through the uni-APP described above, wherein the service developed based on the uni-APP framework may be understood as a uni service.

[0104] In the scenario of developing uni business for an application, it is usually necessary to debug the uni business to ensure the normal operation of the application. Currently, most developers debug the business through hot updates. For example, you can refer to Figure 1 Understand how hot updates are implemented. Figure 1 A schematic diagram of the implementation of hot update service debugging provided in an embodiment of the present application.

[0105] like Figure 1 As shown, in this implementation, developers can perform code development and code debugging in the development environment (IDE) in sequence, wherein code development is the work of writing code, and code debugging is the work of modifying code.

[0106] After that, the developer can submit the debugged code to the code management repository, which triggers the packaging and deployment process. This process can be understood from the following two aspects:

[0107] First, from the perspective of device implementation, code packaging and deployment requires a series of operational processes to be executed.

[0108] Secondly, from the perspective of code development management, since the code needs to be packaged and deployed to the cloud server later, in order to avoid affecting the data stored on the cloud server, the developer also has a series of approval processes for code packaging and deployment. Usually, only after the company's internal approval process is completed can the code repository actually submit the debugged code to the cloud server.

[0109] After that, the cloud server receives the code submitted by the code repository, and packages and deploys the code. The packaging of the code can be understood as processing the code file into a data package that can be run in the application (or can be understood as the installation package of the application), and the deployment of the code can be understood as deploying the packaged data package in the terminal device that carries the application.

[0110] Reference Figure 1 , the application (i.e., APP) can monitor whether there is a new version of the application, wherein the application can, for example, perform version monitoring at regular intervals. If it is determined that there is a new version, the application can download the relevant files of the new version from the cloud service, where the relevant files can be, for example, the data packages introduced above.

[0111] After that, the application is updated according to the relevant files of the new version. This process can be compared to the scenario of software update in the app store. And if the version verification of the application is passed, the new version of the application is deployed in the terminal device. After that, the application can be restarted and the relevant services in the restarted application are tested to see if they meet the business expectations. If they meet, the development and debugging are completed. If not, it is necessary to continue the debugging process described above until the relevant services in the application meet the business expectations.

[0112] Referring to the process described above, it can be understood that this hot update implementation method needs to rely on the cloud server for code packaging and deployment. Because the cloud server involves a lot of data, there will inevitably be a series of approval processes to ensure the data security of the cloud server. This process is relatively time-consuming.

[0113] In addition, the hot update implementation introduced above requires the application to update and redeploy the application itself according to the relevant files of the new version, and then restart the application to determine whether the debugged business meets expectations, so a large number of operations need to be performed in the application. Generally speaking, it takes an average of 15 to 20 minutes to execute the hot update process introduced currently, which is a relatively time-consuming process.

[0114] Based on the above introduction, it can be determined that although this hot update method can achieve the purpose of debugging, it has the problem of low debugging efficiency.

[0115] In another implementation, you can also perform business debugging based on the real machine debugging method provided by uni-app. This method can implement hot reload debugging. However, because uni-app needs to provide a debugging method that is common to all developers, it will inevitably have the following limitations:

[0116] 1. Only the official fixed APP can be used for hot reload debugging.

[0117] The official fixed APP is just a general framework. In fact, most of the services developed by developers for the application cannot be implemented on the fixed APP, so it is impossible to debug the corresponding services.

[0118] 2. You can only use the official fixed development tools (specifically HBuilder) for hot reload debugging.

[0119] 3. Only one uni service can be debugged at a time.

[0120] 4. The uni business being debugged cannot interact with other uni businesses and communicate with other uni businesses, nor can it interact with other businesses implemented by non-uni-app technology stacks and jump to other pages.

[0121] Among them, other non-uni-app technology stacks may include, for example, objective-c, java, react-native, and flutter, etc.

[0122] 5. Parameters cannot be passed when the business is started.

[0123] This is because in the debugging method provided by the official, developers are required to submit debugging-related data to the official according to fixed requirements, and then the official will respond to the developer's debugging through a fixed APP. However, for each application, its parameters are relatively private and usually cannot be provided to the official. The parameters may include user data, startup parameters, encryption parameters, etc.

[0124] For example, for the login service introduced above, if you want to debug the login service, then the APP needs to determine whether the login service can run normally based on user data such as login account and login password, but the developer cannot provide private user data such as login account and login password to the official. For this kind of service that relies on parameters for debugging, if it is limited by the limitation of parameter transmission described here, it is impossible to debug this part of the service.

[0125] Based on the above introduction, it can be understood that because the debugging method provided by the official is for all developers, it can only provide a unified debugging standard through the above restrictions, so the above restrictions cannot be lifted.

[0126] In response to the technical problems introduced above, this application proposes the following technical concept: hot reload debugging of the real machine can be implemented according to the host device where the developer develops the business and the terminal device where the application runs. Specifically, a local server can be created in the host device, and then a connection link between the local server and the application can be established. Then, when the local server monitors the business file changes, it can inform the application to obtain the business file, which can effectively improve the efficiency of business debugging. At the same time, because the debugging process introduced above is to exchange files between the host device for business development and the terminal device running the application, it is possible to debug the application actually developed, so there is no need to be subject to the various restrictions introduced above, so as to further achieve the corresponding technical effects.

[0127] The following is a detailed description of the hot reload debugging method provided by the present application in conjunction with specific embodiments. Figure 2 The hot reload debugging system of this application is described. Figure 2 A system schematic diagram of a hot reload debugging system provided in an embodiment of the present application.

[0128] like Figure 2 As shown, the system includes a host device 10 and a terminal device 20.

[0129] A service unit 101 is created in the host device, where the service unit 101 can also be understood as a local server created in the host device. Also, the host device stores service files of multiple services of the target application.

[0130] For example, Figure 2 In the example of , it is shown that the host device stores multiple business files of business 1, specifically including business file 1a, business file 1b, business file 1c, etc. And it is also shown that the host device stores multiple business files of business 2, specifically including business file 2a, business file 2b, business file 2c, etc.

[0131] Which business files of the services are specifically stored in the host device and what each business file of the service specifically contains depends on the actual development of the target business, and this embodiment does not impose any restrictions on this.

[0132] The terminal device 20 is used to run the target application 201 developed based on the host device. The target application introduced in this embodiment can be an application program for realizing any function, and this embodiment does not limit this.

[0133] Reference Figure 2It can also be understood that a connection link can be established between the service unit 101 and the target application 201 to achieve corresponding data transmission. In one implementation, the connection mechanism of the connection link between the service unit 101 and the target application 201 can be, for example, a socket connection, wherein the socket connection mechanism can achieve real-time communication between the service unit and the target application, thereby effectively improving the efficiency of development and debugging. Or in the actual implementation process, the connection link can also be connected by other means, which is not limited in this embodiment.

[0134] The following introduces the operations on both the host device and the terminal device in the hot reload debugging method provided by this application.

[0135] First combine Figure 3 Explain the relevant implementation on the host device side. Figure 3 A flowchart of the hot reload debugging method provided in an embodiment of the present application.

[0136] like Figure 3 As shown, the method includes:

[0137] S301: A service unit monitors a first service file of a service to be debugged, where the first service file is stored in a host device.

[0138] Based on the above introduction, it can be determined that the target application may include multiple services, and the developer can configure at least one of the multiple services as a service to be debugged according to actual service debugging requirements. That is, in this embodiment, the number of services to be debugged can be one or more.

[0139] Afterwards, the service unit can perform subsequent debugging processing in parallel for each service to be debugged, thereby debugging multiple services at the same time, avoiding the above limitation of only being able to debug one service at a time, and effectively improving the efficiency of service debugging.

[0140] It can be understood that the processing process of each service to be debugged is similar, so the following is a description of any service to be debugged.

[0141] The business file of the service to be debugged is stored in the host device. In this embodiment, the business file of the service to be debugged is called the first business file. Because each service usually has more business files, the number of first business files in this embodiment can be multiple. In a possible implementation, the first business file can be, for example, a code file of the service to be debugged, or a configuration file, etc. This embodiment does not limit this. Any file used to implement the development of the service to be debugged can be understood as the first business file in this embodiment.

[0142] It can be understood that the process of development and debugging is that the developer modifies the business file, and then the target application responds to the file modification and adjusts the related business, and then determines whether the application can run the adjusted business normally and whether the adjusted business achieves the expected function. If the above conditions are met, then it can be determined that the debugging is over. If not, the above debugging process needs to be repeated until the business meets the above conditions.

[0143] Therefore, the service unit in this embodiment may monitor the first service file of the service to be debugged. Specifically, the service unit monitors whether the first service file of the service to be debugged changes.

[0144] S302: When a first business file changes, the service unit sends a first file address of a target business file to a target application through a connection link, where the target business file is a business file that has changed among the multiple first business files.

[0145] For example, if the first business file is a code file, when the developer modifies the code line in the code file, the first business file itself will change, so the service unit can monitor the change of the first business file. Alternatively, if the first business file is a configuration file, when the developer modifies the configuration information therein, the first business file will also change, and the service unit can also monitor the strokes of the first business file.

[0146] When the first business file changes, it means that the developer has made some adjustments to the debugged business during the debugging process. In order to make the target application in the terminal device respond to these adjustments as soon as possible so that the developer can quickly determine the debugging effect, the service unit can send the first file address of the target business file to the target application through the connection link. The target business file is a business file that has changed among the multiple first business files.

[0147] It is understandable that the service unit will monitor multiple first business files of the debugged business, but only some of the multiple first business files may have changed. If all the first business files are provided to the target application, the target application will perform some unnecessary processing, resulting in reduced debugging efficiency.

[0148] Therefore, the service unit in this embodiment determines the specific business file that has been changed among multiple first business files, then determines the first file address of the target business file, and sends the first file address to the target application.

[0149] S303 . In response to an access request of the target application, provide a target service file to the target application, where the target service file is used by the target application to update the service to be debugged.

[0150] After receiving the first file address, the target application can determine that the business files of certain current businesses have changed, and can send an access request to the service unit through the connection link, where the access request is used to request access to the first file address in the host device, thereby obtaining the changed target business file.

[0151] After that, the service unit can respond to the access request of the target application and provide the target business file to the target application through the connection link so that the target application can obtain the target business file. After that, the target application can update the debugging business accordingly according to the target business file, thereby achieving the technical effect that after the developer adjusts the business file, the target application quickly responds to the adjustment.

[0152] In one implementation, the target application can, for example, replace the original business file corresponding to the target business file with the changed target business file in the business folder of the business to be debugged. For example, if the target business file is file 1a, the changed file 1a can replace the original file 1a stored in the business folder.

[0153] After the changed business file is loaded into the corresponding folder, the target application can, for example, refresh the business to be debugged, so that the business to be debugged is also updated accordingly, so as to achieve the purpose of "what you see is what you get" and effectively improve the development and debugging efficiency.

[0154] In this embodiment, the target business files that have been changed are provided to the target application so that the target application can only replace or update the changed business files accordingly. Refreshing the business can then update the debugged business in the target application, thereby avoiding the time-consuming need to update and redeploy the entire target application.

[0155] At the same time, because the process described above occurs between the developer's host device and the terminal device used for development and debugging, there is no need to consider redundant processes. The host device and the terminal device can quickly exchange data based on the connection link, thereby achieving rapid response of development and debugging, and effectively improving the efficiency of development and debugging.

[0156] The hot reload debugging method provided by the embodiment of the present application includes: a service unit monitors a first business file of a business to be debugged, and the first business file is stored in a host device. In the case where the first business file changes, the service unit sends the first file address of the target business file to the target application through a connection link, and the target business file is a business file that has changed in multiple first business files. In response to an access request of the target application, the service unit provides the target business file to the target application, and the target business file is used by the target application to update the business to be debugged. By establishing a connection link that can be used for real-time communication between the service unit and the target application, when the service unit monitors that the business file has changed, the service unit informs the target application of the file address of the changed target business file through the connection link, so that the target application can quickly and efficiently obtain the target business file through the connection link, so that the development and debugging performed by the developer can be quickly responded to in the target application, so as to quickly and efficiently realize the development and debugging of the target application.

[0157] At the same time, the technical solution provided in this embodiment occurs as a whole between the developer's own host device and the terminal device as a real machine, so the number of services to be debugged can be set to multiple according to actual needs. The technical solution introduced above can be executed in parallel for each service to be debugged, thereby avoiding the limitation of not being able to debug multiple services at the same time and effectively improving the efficiency of development and debugging.

[0158] Based on the above introduction, the following Figures 4 to 6 The implementation of the hot reload debugging method on the host device side is further introduced in detail.

[0159] Figure 4 The process of the hot reload debugging method provided in the embodiment of the present application Figure 2 , Figure 5 A schematic diagram of the structure of the service unit provided in the embodiment of the present application, Figure 6 A schematic diagram of implementing the copying of target business files provided in an embodiment of the present application.

[0160] like Figure 4 As shown, the method includes:

[0161] S401: A service unit monitors whether file information of a first business file changes.

[0162] In this embodiment, the first service file of the service to be debugged may be stored in a first folder in the host device, where the first folder may be understood as a local folder of the host device.

[0163] Based on the above introduction, it can be determined that business files of multiple services will be stored in the host device. In one implementation, the host device can store multiple business files of each business in a business folder. In this embodiment, the folder corresponding to the business to be debugged is called the first folder.

[0164] Therefore, the service unit can monitor the first folder to determine whether the first business file in the first folder has changed. It is understandable that if any business file in the first folder has changed, the service unit will conclude that the first business file has changed.

[0165] Reference Figure 5 In one implementation, a file monitoring service may be provided in the service unit, for example, wherein the file monitoring service is used to monitor the first folder to determine whether the first business file has changed.

[0166] When the file monitoring service detects the first folder, it specifically monitors the file information of the business files in the first folder. The file information includes at least one of the following: file size, file attributes, file modification time, and file name. It can be understood that the information related to the business file itself can be used as the file information in this embodiment.

[0167] For any first business file, when the file monitoring service detects that the file information of the first business file has changed, the file monitoring service can determine that the first business file has changed. It is understandable that, compared to monitoring whether the code line in the business file has changed, monitoring whether the file information of the business file itself has changed is easier to implement, which can effectively save the system overhead of the host device. At the same time, when the code line in the business file changes, the file information is bound to change, so the reliability and stability of monitoring the changes in the business file can also be guaranteed.

[0168] In one implementation, for example, a file monitoring service can be created for a service to be debugged, and each file monitoring service is used to monitor the service files of the corresponding service to be debugged. When multiple file monitoring services coexist, the technical effect of debugging multiple services to be debugged in parallel can be achieved.

[0169] S402: When the first business file changes, the service unit selects a target business file that has changed from the first business file.

[0170] When the service unit determines that there is a change in the first business file in the first folder, it can further specifically select the target business file that has been determined to have changed from the multiple first business files included in the first folder.

[0171] In one implementation, the file monitoring service described above monitors the file information of the first business file to determine whether the first business file has changed. Therefore, the first business file with changed file information can be directly determined as the target business file by the file monitoring service.

[0172] In another implementation, referring to Figure 5 A differencing algorithm is still provided in the service unit. Therefore, after the file monitoring service draws a conclusion that the first business file has changed, the differencing algorithm can be used to screen out the target business file that has changed in the first business file.

[0173] The distinguishing algorithm may be, for example:

[0174] For any first service file, the service unit obtains first file information of the first service file in the first folder, and obtains second file information of the first service file in the second folder.

[0175] The second folder is a folder for storing changed target business files, which can be set in the service unit, for example. It is understandable that during the debugging process, developers may repeatedly debug the same business file. In this case, if the first business file has been debugged, the second folder will store the first business file stored in the last debugging.

[0176] Therefore, the service unit can obtain the first file information of the first business file in the first folder, and can also obtain the second file information of the first business file in the second folder. If the current first business file is debugged for the first time, the first business file is not stored in the second folder, and it can be understood that the obtained second file information is empty.

[0177] Afterwards, the service can compare the first file information with the second file information. If the first file information and the second file information are the same, it can be determined that the current first business file has not changed. If the first file information and the second file information are different, it can be determined that the current first business file is the target business file that has changed.

[0178] In one implementation, the above-mentioned distinguishing algorithm can be executed for each first business file in the first folder, thereby screening out the target business file from the multiple first business files. It is understandable that, although the file monitoring service has monitored the file information to determine that the first business file has changed, it is difficult to ensure that no abnormal situation will occur during the service operation. Therefore, in this embodiment, the distinguishing algorithm is set to screen again in the first business file to determine the target business file, thereby ensuring the accuracy and stability of the screened target business file.

[0179] After screening out the target service file, the service unit may copy the target service file from the first folder to the second folder.

[0180] For example, you can refer to Figure 6 To understand the above example, Figure 6 As shown, it is assumed that a plurality of first business files are stored in the first business file, namely, business file 1a, business file 1b, business file 1c, etc. And it is assumed that based on the above-described processing process, business file 1b and business file 1c are determined as target business files, then business file 1b and business file 1c can be copied to the second folder.

[0181] Reference Figure 5 It can be determined that a file request service can also be provided in the service unit. In one implementation, for example, a file request service can be responsible for copying the target business file from the first folder to the second folder. The second folder can be understood as a static folder, for example. After the file request service copies the target business file to the second folder, it can generate a static resource file that can be downloaded through the network. The static resource file specifically includes each target business file.

[0182] S403: The service unit determines a first file address of the target service file.

[0183] Afterwards, the service unit needs to determine the first file address of the target business file. It can be understood that, in fact, the target business file is contained in the first folder and the second folder, so there are two options, that is, to determine the file address of the first folder as the first file address, or to determine the file address of the second folder as the first file address.

[0184] For the first implementation, since the target application will access the first file address through the connection link to obtain the corresponding file, but the first folder is the original folder storing the business file of the business to be debugged, if the host device allows the target application to directly access the first folder to read the file, it is difficult to ensure the data security of the original business file in the first folder, for example, the reading of the target application may cause the business file to be damaged or modified, etc.

[0185] In addition, the first business files of the business to be debugged are stored in the first folder, that is, the target business files that have changed and the first business files that have not changed are all stored in the first folder. In order for the target application to determine which are the specific target business files, the service unit needs to send file indication information of the target business files to the target application, which will result in additional data interaction between the service unit and the terminal device.

[0186] Therefore, the second implementation can be adopted in the present application, and the file address of the second folder is directly determined as the first file address. On the one hand, because the target business file in the second folder is copied from the first folder, even if the target business file in the second folder is damaged or abnormal, the service unit can still copy the correct target business file from the first folder to the second folder, and ensure that the target business file can be provided to the target application normally, and the data security of the originally developed business file can also be guaranteed not to be affected.

[0187] Also, because in this embodiment, only the changed target business files are copied to the second folder, the target application can directly access the second folder to obtain the changed target business files without the need for additional data interaction for the target business files. And referring to the above introduction, it can also be determined that the second folder may store target business files copied from multiple debugging processes, but in this embodiment, a static resource file for download is generated for each debugging process. The service unit can, for example, send the overall file identifier of the static resource file to the target application so that the terminal device can clearly know which part of the data to obtain. Compared with sending the file indication information of each target business file, this implementation method can also save the amount of data interaction.

[0188] S404: The service unit sends first address information to the target application through the connection link.

[0189] Afterwards, the service unit may send the first address information to the target application through the connection link to inform the target application that the service file of the current service to be debugged has been updated.

[0190] In the embodiment of the present application, because the service unit specifically monitors the first local folder of the host device, and when it is determined that the business file has changed, it will notify the developer that the target application to be debugged has been updated, so this application does not need to consider what development environment the developer specifically uses. To explain in detail, we monitor the local folder and interact with the target application developed by the developer, which does not rely on the official framework, so there is no need to consider the development environment. For example, the businesses developed by HBuilder, VSCode, Sublime, and these WebStorm development environments can all be applied to the debugging method of this application, that is, the technical solution of this application does not need to rely on a specific development environment for business debugging.

[0191] Moreover, the present application can effectively implement the business debugging of the self-developed APP. Based on the self-developed APP, it can be guaranteed that any business can be effectively debugged. There is no situation where certain businesses cannot be implemented based on the fixed APP provided by the official, and there is no situation where certain businesses cannot be debugged because the debugging-related data cannot be provided to the official. Therefore, the technical solution of the present application can effectively ensure the comprehensiveness of business debugging.

[0192] Furthermore, also because the technical solution of the present application implements business debugging for self-developed APPs, how the target application itself should interact with data can be specifically configured by the target application according to actual needs. Then, the business to be debugged can exchange data and communicate data with other businesses, and the business to be debugged can also interact with data and jump pages with businesses implemented by other non-uni-app technology stacks.

[0193] When data is exchanged between two services, for example, a service jump method or a data sharing method may be adopted, and this embodiment does not limit this.

[0194] Based on the above embodiments, Figure 5 as well as Figure 7 Some other contents in the technical solution of this application and the related implementation on the terminal device side are introduced. Figure 7 A schematic diagram of the structure of the target application provided in the embodiment of the present application.

[0195] Reference Figure 5 It can be determined that a connection service is set in the service unit, and a reference Figure 7It is certain that a connection service is also provided in the target application. In one implementation, for example, the connection link described above can be established through the connection service in the service unit and the connection service in the target application, and the two services are also used to maintain the connection state of the connection link, thereby realizing subsequent data interaction between the service unit and the target application.

[0196] In one implementation, the target application may send a link connection status to the service unit based on the connection channel, wherein the link connection status may indicate a connection result, specifically including a connection success or a connection failure. The link connection status may also indicate connection parameters, such as the amount of data transmitted, link bandwidth, and link status information.

[0197] Furthermore, the target application may also send a data log to the service unit based on the connection channel, wherein the data log may include: information of the target business file acquired by the target application, relevant information of the business update performed by the target application based on the target business file, and the like.

[0198] Furthermore, the target application can also send interface data to the service unit based on the connection channel, etc. This embodiment does not limit the specific content of the interaction between the target application and the service unit based on the connection link. Figure 5 What is certain is that a front-end interface is also provided in the service unit, so the service unit can limit the front-end interface on the screen of the host device. The front-end interface includes the link connection status, data log, interface data and other contents introduced above, so that developers can intuitively determine the specific data interaction situation of business debugging, and then make corresponding operations, thereby improving the efficiency of business debugging.

[0199] It can be understood that all data interacted between the service unit and the target application based on the data link can be displayed in the front-end interface, and the front-end interface can also display other information according to actual needs, such as statistical information after statistics on relevant data of business debugging, time-consuming information of business debugging, etc. This embodiment does not limit the specific content displayed in the front-end interface.

[0200] Further, see Figure 5 What is certain is that a compression algorithm can also be set in the service unit, wherein the function of the compression algorithm is to compress the static resource files (or each target business file) for download, and then the terminal device obtains the compressed static resource files (or each target business file) through the connection link, thereby effectively reducing the amount of data transmission between the service unit and the target application.

[0201] And reference Figure 7It can be determined that a decompression algorithm is correspondingly provided in the terminal device, wherein the decompression algorithm is used to decompress the compressed static resource files (or each target service file) to obtain the updated target service file.

[0202] In another implementation, the static resource file (or target business file) may be in the format of a wgt package, which is a unique compression package format. Therefore, when the static resource file is in the format of a wgt package, there is no need to use a compression algorithm for compression processing. To expand on this, if the static resource file (or target business file) is in a compressed format, the service unit does not need to perform compression processing.

[0203] And reference Figure 5 , an anti-shake algorithm can also be set in the service unit, where the anti-shake algorithm is used to limit the communication frequency between the service unit and the target application. Because some developers may habitually click the save button frequently during the modification of business files, each time the developer clicks the save button, the file information of the business file will change, thereby triggering the various processes introduced above, causing the service unit and the terminal device to communicate frequently, but in fact there is not much benefit for business debugging.

[0204] In order to solve the above problems, the communication frequency between the service unit and the target application can be limited in the present application. The anti-jitter algorithm is used to limit the number of communications within a preset time period to be less than a preset threshold. For example, the anti-jitter algorithm can limit the number of communications within 1 minute to no more than 100 times, thereby effectively reducing the communication frequency between the service unit and the application and avoiding resource consumption caused by too frequent communication.

[0205] Further, see Figure 7 The target application also includes an SDK (Software Development Kit), which can be, for example, a uni-app SDK, i.e., a basic package of uni services officially provided by uni. All apps that need to load uni services require this SDK. Because the technical solution of this application is free from the limitations of the official development tools, there is no version restriction on the SDK.

[0206] And reference Figure 7 The target application also includes a file download service, which accesses the second folder of the service unit based on the first file address to obtain the changed target business file. The specific implementation can refer to the introduction of the above embodiment and will not be repeated here.

[0207] Based on the contents of the above embodiments, the process of establishing a connection link is briefly introduced below:

[0208] In one implementation, when creating a service unit, a developer may generate a service creation instruction in a host device, wherein the service creation instruction includes a service identifier of at least one service to be debugged and connection information of the service unit.

[0209] The service unit needs to determine the first service file of the service to be debugged according to the service identifier, and then can monitor the first service file.

[0210] For example, the service identifier of the service to be debugged can be the address of the first folder of the service to be debugged. Based on this implementation method, the service unit can quickly and efficiently determine the first service file that needs to be detected. When the service unit is required to monitor multiple services to be debugged, the service creation instruction can include the addresses of multiple folders, and the addresses of multiple folders can be separated by ",". After the service unit is successfully created, the monitoring service for the first folder of each service to be debugged can be started simultaneously based on the addresses of multiple folders.

[0211] Alternatively, the service identifier of the service to be debugged may be other implementations as long as the indication of the service to be debugged can be implemented. Then, the service unit can determine the corresponding first folder according to the service identifier of the service to be debugged, thereby determining the first service file of the service to be debugged.

[0212] Furthermore, the connection information of the service unit may include the IP address of the host device and the port number allocated by the host device to the service unit, so as to realize the connection between the target application and the service unit.

[0213] And in the process of development and debugging, it is also necessary to start the target application so that the target application is in a running state, so that the hot reload operation described above can be performed. When starting the target application, it is necessary to carry the connection information of the service unit described above, so that the terminal device can establish a connection link with the service unit according to the connection information of the service unit.

[0214] For example, the connection information may be configured in advance in the terminal device, and then the terminal device sends a startup instruction to the target application, wherein the startup instruction includes the connection information. Alternatively, the terminal device may send the connection information to the target application after the target application is started.

[0215] In one implementation, the target application can initiate a connection request to the service unit based on the connection information. Because the connection request includes the IP address and the port number of the service unit, the connection request can be effectively sent to the service unit.

[0216] The service unit then establishes a connection link with the target application in response to the connection request sent by the target application.

[0217] In summary, the technical solution of the present application uses a service unit in the form of a local server created in the host device as a bridge channel between the debugging code and the application. After the APP and the service unit in the host device establish a socket, it is equivalent to the APP having the ability to communicate with the service unit in real time. At the same time, the service unit can pass the change information of the business code to the APP in real time for it to refresh the business. Therefore, it can effectively debug the uni business in the form of hot reload to achieve the purpose of "what you see is what you get". It only takes 3 to 5 seconds on average to complete a debugging, which greatly improves the efficiency of development and debugging. At the same time, it can avoid the respective limitations of the debugging methods provided by the official, and expand the scenarios of development and debugging.

[0218] Figure 8 A schematic diagram of the structure of the hot reload debugging device provided in the embodiment of the present application Figure 1 .like Figure 8 As shown, the device 80 includes: a file monitoring module 801, a file request module 802 and a connection module 803.

[0219] A file monitoring module 801 is used to monitor a first service file of a service to be debugged, where the first service file is stored in the host device;

[0220] A file request module 802 is used to send a first file address of a target business file to the target application through the connection link when the first business file changes, wherein the target business file is a business file that has changed among multiple first business files;

[0221] The connection module 803 is used to provide the target service file to the target application in response to the access request of the target application, and the target service file is used for the target application to update the service to be debugged.

[0222] In a possible design, the file monitoring module 801 is specifically used for:

[0223] Monitor whether file information of the first business file changes, where the file information includes at least one of the following: file size, file attribute, file modification time, and file name.

[0224] In a possible design, the file request module 802 is specifically used for:

[0225] In the first business file, select the target business file that has changed;

[0226] Determine a first file address of the target business file;

[0227] The first address information is sent to the target application through the connection link.

[0228] In one possible design, the first business file is stored in a first folder in the host device;

[0229] The file request module 802 is specifically used for:

[0230] For any first business file, first file information of the first business file is acquired in the first folder, and second file information of the first business file is acquired in the second folder in the service unit;

[0231] If the first file information and the second file information are different, determining that the first business file is a target business file, and copying the target business file from the first folder to the second folder;

[0232] The file request module 802 is specifically used for:

[0233] Determine the address of the second folder as the first file address.

[0234] In a possible design, the connection module 803 is further used for:

[0235] Feedback information sent by the target application is received, where the feedback information includes at least one of the following: link connection status and data log.

[0236] The feedback information is displayed through the front-end interface of the service unit.

[0237] In one possible design, the apparatus further includes: a processing module 804;

[0238] The processing module 804 is used to start the service unit in response to a service creation instruction, wherein the service creation instruction includes a service identifier and connection information of at least one service to be debugged;

[0239] The connection module 803 is specifically used for:

[0240] In response to a connection request sent by the target application, establishing the connection link with the target application, wherein the connection request includes the connection information;

[0241] The file monitoring module 801 is specifically used for:

[0242] According to the service identifier, a first service file of the service to be debugged is determined, and the first service file is monitored.

[0243] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0244] Fig. 9 A schematic diagram of the structure of the hot reload debugging device provided in the embodiment of the present application Figure 2 .like Fig. 9 As shown, the device 90 includes: a connection module 901 , a file download module 902 and a processing module 903 .

[0245] A connection module 901 is used to receive a first file address sent by the service unit through the connection link, where the first file address is a file address of a target business file, and the target business file is a business file that has been changed in multiple first business files of the business to be debugged;

[0246] The file download module 902 is further used to send an access request to the service unit in response to the first file address, wherein the access request is used to obtain the target file;

[0247] The processing module 903 is further configured to update the service to be debugged according to the target file.

[0248] In a possible design, the connection module 901 is further used for:

[0249] Feedback information is sent to the service unit, where the feedback information includes at least one of the following: link connection status and data log.

[0250] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0251] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the electronic device 100 of this embodiment includes: a processor 1001 and a memory 1002;

[0252] Memory 1002, used for storing computer-executable instructions;

[0253] The processor 1001 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the hot reload debugging method in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0254] Optionally, the memory 1002 may be independent or integrated with the processor 1001 .

[0255] When the memory 1002 is independently provided, the electronic device further includes a bus 1003 for connecting the memory 1002 and the processor 1001 .

[0256] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the hot reload debugging method performed by the electronic device as described above is implemented.

[0257] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0258] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0259] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application.

[0260] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0261] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0262] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0263] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0264] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

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

Claims

1. A hot reload debugging method, characterized in that: Applied to a host device, a connection link is established between a service unit in the host device and a target application running in a terminal device, and the host device is used to perform business development for the target application. The method includes: The service unit monitors a first service file of the service to be debugged, where the first service file is stored in the host device; In the case where the first business file changes, the service unit sends a first file address of a target business file to the target application through the connection link, where the target business file is a business file that has changed among the first business files; In response to the access request of the target application, the service unit provides the target application with the target service file, where the target service file is used by the target application to update the service to be debugged.

2. The method according to claim 1, characterized in that The service unit monitors a first service file of the service to be debugged, including: The service unit monitors whether file information of the first service file changes, where the file information includes at least one of the following: file size, file attribute, file modification time, and file name.

3. The method according to claim 1 or 2, characterized in that: In the case where the first service file changes, the service unit sends the first file address of the target service file to the target application through the connection link, including: The service unit screens out a changed target business file from the first business file; The service unit determines a first file address of the target service file; The service unit sends first address information to the target application through the connection link.

4. The method according to claim 3, characterized in that The first service file is stored in a first folder in the host device; The service unit screens out the changed target business file from the first business file, including: For any first business file, the service unit acquires first file information of the first business file in the first folder, and acquires second file information of the first business file in a second folder in the service unit; If the first file information and the second file information are different, determining that the first business file is a target business file, and copying the target business file from the first folder to the second folder; The service unit determines the first file address of the target service file, including: The service unit determines the address of the second folder as the first file address.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The service unit receives feedback information sent by the target application, wherein the feedback information includes at least one of the following: link connection status and data log; The feedback information is displayed through the front-end interface of the service unit.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: In response to a service creation instruction, starting the service unit, wherein the service creation instruction includes a service identifier and connection information of at least one service to be debugged; The service unit establishes the connection link with the target application in response to a connection request sent by the target application, wherein the connection request includes the connection information; The service unit monitors a first service file of the service to be debugged, including: The service unit determines a first service file of the service to be debugged according to the service identifier, and monitors the first service file.

7. A hot reload debugging method, characterized in that: Applied to a terminal device, a target application is running in the terminal device, a connection link is established between the target application and a service unit in a host device, and the host device is used to perform business development for the target application, the method comprising: Receiving a first file address sent by the service unit through the connection link, where the first file address is a file address of a target service file, and the target service file is a service file that has been changed in a plurality of first service files of the service to be debugged; In response to the first file address, sending an access request to the service unit, wherein the access request is used to obtain the target file; The service to be debugged is updated according to the target file.

8. The method according to claim 7, characterized in that The method further comprises: Feedback information is sent to the service unit, where the feedback information includes at least one of the following: link connection status and data log.

9. A thermal overload debugging device, characterized in that: include: A file monitoring module, applied to monitor a first business file of the business to be debugged, wherein the first business file is stored in a host device; A file request module, configured to send a first file address of a target business file to a target application through a connection link when the first business file changes, wherein the target business file is a business file that has changed among the plurality of the first business files; The connection module is used to provide the target service file to the target application in response to an access request of the target application, wherein the target service file is used by the target application to update the service to be debugged.

10. A thermal overload debugging device, characterized in that: include: A connection module, configured to receive a first file address sent by a service unit through the connection link, wherein the first file address is a file address of a target service file, and the target service file is a service file that has been changed in a plurality of first service files of the service to be debugged; The file download module is further used to send an access request to the service unit in response to the first file address, wherein the access request is used to obtain the target file; The processing module is further used to update the service to be debugged according to the target file.

11. An electronic device, characterized in that: include: Memory, used to store programs; A processor, configured to execute the program stored in the memory; when the program is executed, the processor is configured to execute the method according to any one of claims 1 to 8.

12. A hot reload debugging system, characterized in that: include: Host equipment and terminal equipment; A connection link is established between the service unit in the host device and the target application running in the terminal device, and the host device is used to perform service development for the target application; The host device is used to execute the method described in any one of claims 1 to 6; and the terminal device is used to execute the method described in any one of claims 7 to 8.

13. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, cause the computer to perform the method as claimed in any one of claims 1 to 8.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.