Online debugging method and device, electronic equipment and computer readable storage medium

By sending a request for breakpoint information to the service orchestration execution unit and receiving and displaying the context information at the breakpoint of the corresponding component, the problems of online debugging in the prior art caused by Java virtual machine pause and system response are solved, real-time debugging is achieved.

CN119938484AInactive Publication Date: 2025-05-06湖南亚信软件有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510440497.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-09
Publication Date
2025-05-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the online debugging method will cause the Java virtual machine to be suspended, the system will not be able to respond to other users' access, or it will be difficult to present a real-time debugging effect.

Method used

By sending a request for breakpoint information to the service orchestration execution unit, and receiving and displaying the context information at the breakpoint of the corresponding component, online debugging is realized without blocking the application.

Benefits of technology

It effectively solves the problem that the system cannot be accessed during online debugging, provides real-time debugging effects, and avoids system response problems caused by Java virtual machine pause.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938484A_ABST
    Figure CN119938484A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an online debugging method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of computers.The method comprises the steps that a first request is sent to a service orchestration execution unit, and the first request comprises breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in the corresponding component; the first request is used for requesting the service arrangement execution unit to perform online debugging on a corresponding component according to the breakpoint information; the service orchestration execution unit comprises the same component as the service orchestration unit; receiving a first response sent by the service orchestration execution unit, wherein the first response comprises context information at a breakpoint of the corresponding component; and sending the first response to the terminal, so that the first response is displayed on an interface of the terminal. According to the embodiment of the invention, the technical problem that a system stops running due to online debugging of service orchestration of a low-code platform in related technologies is solved.
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 online debugging method, device, electronic device and computer-readable storage medium. Background Art

[0002] At present, there are two main online debugging methods for the service orchestration of low-code platforms: one is remote debugging based on JDK; the other is to provide breakpoint debugging functions through the web interface. For the first debugging method, the Java virtual machine will be suspended during the debugging process, the system will no longer respond to other users' access, and the various components of the system will also be unavailable; for the second debugging method, the information at the breakpoint can be printed without blocking the application, and the code logic will continue to be executed after printing. Although it will not suspend the entire system, it is difficult to present a real-time debugging effect to the user. Summary of the invention

[0003] The embodiments of the present application provide an online debugging method, device, electronic device and computer-readable storage medium to solve the technical problem in the prior art that the online debugging process may cause the system to be inaccessible.

[0004] According to a first aspect of an embodiment of the present application, an online debugging method is provided, wherein the method serves a service orchestration unit, wherein the service orchestration unit comprises at least one component, and the method comprises: Sending a first request to a service orchestration execution unit, the first request including breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in a corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; the service orchestration execution unit includes the same component as the service orchestration unit; receiving a first response sent by the service orchestration execution unit, wherein the first response includes context information at a breakpoint of the corresponding component; The first response is sent to a terminal so that the first response is displayed on an interface of the terminal.

[0005] As an optional implementation manner, before sending the first request to the service orchestration execution unit, the method further includes: Receive a first message sent by the terminal, the first message including a service orchestration interface and service orchestration data; wherein the service orchestration interface is an interface for calling the at least one component; the service orchestration data includes component information of the at least one component, and the component information includes parameter setting information of each component; the first message is used to instruct the service orchestration unit to send the service orchestration interface and the service orchestration data to a storage server, so that the storage server saves the service orchestration interface and the service orchestration data in a database; The first message is sent to the storage server, and a second message sent by the storage server is received, where the second message is used to indicate that the storage server has stored the service orchestration interface and the service orchestration data.

[0006] As an optional implementation manner, the information of the breakpoint to be debugged in the corresponding component includes: Conditional expressions for breakpoints; When the value of the conditional expression is true, the service orchestration execution unit executes the breakpoint to be debugged; when the value of the conditional expression is false, the service orchestration execution unit does not execute the breakpoint to be debugged.

[0007] As an optional implementation manner, the context information at the breakpoint of the corresponding component includes: at least one of variable information and call stack information at the breakpoint; The variable information includes information of at least one of local variables, member variables, and static variables, and the call stack information includes information of function calls at breakpoints.

[0008] As an optional implementation manner, the sending the first response to the terminal further includes: receiving a second request sent by the terminal, the second request including updated breakpoint information of at least one component, the second request being used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the updated breakpoint information; wherein the updated breakpoint information includes at least one of a conditional expression for adding a breakpoint, canceling a breakpoint, and modifying a breakpoint in the at least one component; Send the second request to the service orchestration execution unit.

[0009] As an optional implementation manner, the receiving the second request sent by the terminal further includes: receiving a second response sent by the service orchestration execution unit, where the second response includes context information at a breakpoint of the at least one component, where the context information is obtained after the corresponding component is executed according to the updated breakpoint information; The second response is sent to the terminal so that the second response is displayed on an interface of the terminal.

[0010] According to a second aspect of an embodiment of the present application, an online debugging method is provided, the method being applied to a service orchestration execution unit, the service orchestration execution unit including the same components as the service orchestration unit, the method comprising: receiving a first request sent by the service orchestration unit, wherein the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in the corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; Obtaining a service orchestration interface from a storage server, where the service orchestration interface is an interface for calling the at least one component; Calling the service orchestration interface to perform online debugging on the corresponding component, obtaining context information at the breakpoint of the corresponding component, and using the context information as the first response; The first response is sent to the service orchestration unit.

[0011] As an optional implementation manner, the obtaining of the service orchestration interface of each of the at least one component from the storage server also includes: Sending a third request to the storage server, where the third request includes interface information of the service orchestration interface; the third request is used to request the storage server to return a corresponding service orchestration interface according to the interface information.

[0012] As an optional implementation manner, the third request is further used to request service orchestration data, the service orchestration data includes component information of the at least one component, and the component information includes parameter setting information of each component; The calling of the service orchestration interface to perform online debugging on the corresponding component to obtain context information at the breakpoint of the corresponding component also includes: receiving the service orchestration data returned by the storage server, setting parameters of the corresponding component according to the component information of the at least one component, and setting breakpoints for the corresponding components according to the breakpoint information of each component; The service orchestration interface is called to perform online debugging on the at least one component in a preset order to obtain context information at a corresponding component breakpoint.

[0013] As an optional implementation manner, the sending the first response to the service orchestration unit further includes: receiving a second request sent by the storage server orchestration unit, the second request including the updated breakpoint information of the at least one component, the second request being used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the updated breakpoint information; In response to the second request, online debugging is performed on the corresponding component according to the updated breakpoint information, context information at the breakpoint of at least one component is obtained, the context information is obtained after the corresponding component is executed according to the updated breakpoint information, and the context information at the breakpoint of the at least one component is used as a second response; The second response is sent to the service orchestration unit.

[0014] According to a third aspect of an embodiment of the present application, an online debugging device is provided, the online debugging device is applied to a service orchestration unit, the service orchestration unit includes at least one component, and the device includes: A first sending module is used to send a first request to a service orchestration execution unit, wherein the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in a corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; the service orchestration execution unit includes the same components as the service orchestration unit; A first receiving module, configured to receive a first response sent by the service orchestration execution unit, wherein the first response includes context information at a breakpoint of the corresponding component; The second sending module is used to send the first response to the terminal so that the first response is displayed on the interface of the terminal.

[0015] According to a fourth aspect of an embodiment of the present application, an online debugging device is provided, the online debugging device is applied to a service orchestration execution unit, the service orchestration execution unit includes the same components as the service orchestration unit, the device includes: A third receiving module is used to receive a first request sent by the service orchestration unit, wherein the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in the corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; A first processing module is configured to obtain a service orchestration interface of each of the at least one component from a storage server; call the service orchestration interface to perform online debugging on the corresponding component, obtain context information at a breakpoint of the corresponding component, and use the context information as a first response; The second sending module is configured to send the first response to the service orchestration unit.

[0016] According to a fifth aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in any one of the first aspect and the second aspect.

[0017] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the first aspect and the second aspect are implemented.

[0018] The beneficial effects of the technical solution provided by the embodiment of the present application are: The embodiment of the present application sends a first request to a service orchestration execution unit, requesting the service orchestration execution unit to perform online debugging of a corresponding component according to the breakpoint information of the component; the service orchestration execution unit sends a first response, wherein the first response includes context information at the breakpoint of the corresponding component; and finally sends the first response to a terminal, so that the first response is displayed on an interface of the terminal, effectively solving the technical problem in the prior art that online debugging of a software development kit based on the Java language will cause the Java virtual machine to suspend execution, the system cannot respond to access by other users, and various components of the system cannot be used. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0020] Figure 1 A schematic diagram of the framework structure of the online debugging method provided in the embodiment of the present application; Figure 2 A flowchart of an online debugging method applied to a service orchestration unit provided in an embodiment of the present application; Figure 3 A flowchart of an online debugging method applied to a service orchestration execution unit provided in an embodiment of the present application; Figure 4 A schematic diagram of a flow chart of online debugging of a component provided in an embodiment of the present application; Figure 5 An interactive schematic diagram of an online debugging method provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of an online debugging device applied to a service orchestration unit provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of an online debugging device applied to a service orchestration execution unit provided in an embodiment of the present application; Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0022] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".

[0023] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0024] In order to make the purpose, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0025] In recent years, with the development trend of Internet technology, more and more traditional industries have ushered in development transformation, embraced Internet technology, and then gained the blessing of Internet technology, bursting out stronger development momentum. Under this trend, the demand for IT talents has surged. At the same time, low-code platforms, which can significantly lower the technical threshold and meet the transformation requirements of traditional industries, have been greatly developed.

[0026] Currently, for the online debugging method of service orchestration of low-code platforms, a JDK-based remote debugging method can be used; however, during the debugging process, the entire JVM will be suspended, the system will no longer be able to respond to access from other users, and the various components of the system will also be unavailable. Therefore, the JDK-based remote debugging method cannot be applied to the online debugging of service orchestration of low-code platforms.

[0027] In order to solve the problems existing in the related technology, the applicant thought of printing the information at the breakpoint without blocking the application, and continuing to execute the code logic after printing the information at the breakpoint. Although this debugging method will not pause the entire system, the user can only obtain the snapshot information at the breakpoint and cannot control the debugging process; therefore, it is not suitable for online debugging of service orchestration of low-code platforms.

[0028] The online debugging method, device, electronic device and computer-readable storage medium provided in this application are intended to solve the above technical problems in the prior art.

[0029] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0030] Figure 1 A schematic diagram of the framework structure of the online debugging method provided in the embodiment of the present application; as shown in the figure, the system in the embodiment of the present application includes three component parts, namely: a service orchestration unit, a service orchestration execution unit and a storage server.

[0031] In the embodiment of the present application, the service orchestration unit includes three types of components, namely: service class components, logic class components and extension components; wherein, service class components include service components and service orchestration components; logic class components include loop components, branch components and other components; extension components include script components and other components. It should be noted that in the embodiment of the present application, the service orchestration unit belongs to a low-code platform, which adopts a visual interface and drag-and-drop operation, so that people who do not have professional programming skills can also quickly build and deploy applications. It can be understood that users can use the drag-and-drop method to select components that need service orchestration from the above three types of components, generate service orchestration data and service orchestration interface, and save the service orchestration data and service orchestration interface to the storage server; wherein, the service orchestration data includes component information of each component dragged and dropped by the user, and the service orchestration interface is a calling interface for calling each component dragged and dropped by the user, that is: the executor of each component can be called through the service orchestration interface, and then the executor of the component executes the logic of the component. In the embodiment of the present application, each component has a corresponding function. Therefore, the user can arrange the services of the components and implement the corresponding functions by dragging and dropping the components.

[0032] Furthermore, when the component is debugged online (i.e., performing service orchestration), the service orchestration execution unit obtains the service orchestration interface and service orchestration data from the storage server. At the same time, the service orchestration unit also sends the breakpoint information of the component to the service orchestration execution unit; the service orchestration execution unit includes the same components as the service orchestration unit, so the service orchestration execution unit sets parameters for the component according to the service orchestration data, sets breakpoints on the corresponding components according to the breakpoint information of the components, and calls the service orchestration interface to call the executors of each component, and the executors of each component execute the corresponding components.

[0033] It should be noted that Figure 1 The service orchestration execution unit also includes a custom script executor, which consists of a custom script and a compiler. The custom script can implement more complex and flexible business logic, greatly expanding the applicable scenarios of service orchestration. At the same time, the online compilation of the custom script is realized through the custom compiler, so that the online compilation and debugging of the entire orchestration process can be realized.

[0034] In order to facilitate the technical personnel in this field Figure 1 To have a better understanding of the functions of various components in the , the following is a brief description of the functions of various components, including: Service components: some components with interface service capabilities, including services of external systems and services provided by the service orchestration system itself. Service components include the following: Service component: An externally provided service to be orchestrated, that is, an existing atomic service interface, which can define interface information, including request path, request method, request parameter format, etc., and specify variable names to receive return data.

[0035] Service orchestration component: The service provided by the service orchestration system itself is used to support nested calls to existing service orchestration interfaces, thereby achieving the reuse of service capabilities that have been orchestrated.

[0036] Logical components are components with logical functions, including: Variable declaration component: Add a variable with a specified name to the execution context and configure the initial value of the variable.

[0037] Loop component: To implement the loop logic in service orchestration, you need to configure properties such as the number of loops or loop conditions.

[0038] Branch component: To implement the branch judgment logic in service orchestration, it is necessary to configure the left and right expressions of the judgment conditions, as well as the intermediate operation logic and other properties.

[0039] It should be noted that other components in the logic component in the embodiment of the present application include serial components and parallel components. The functions of the serial components and the parallel components are briefly introduced below.

[0040] Serial component: implements the serial execution logic in service orchestration.

[0041] Parallel component: implements serial parallel execution logic in service orchestration. Some computing tasks need to be executed in parallel. This can fully utilize the advantages of multi-core CPUs to greatly improve execution efficiency. The number of parallel threads needs to be configured.

[0042] Extension components are components that implement complex logic functions, including: Script component: By allowing users to input some scripts, logic that is difficult to achieve with a simple combination of logical components can be implemented, thereby greatly expanding the applicable scenarios of service orchestration.

[0043] The following describes the solution in the embodiment of the present application using the service orchestration unit as the execution entity.

[0044] Figure 2 A flowchart of an online debugging method for a service orchestration unit provided in an embodiment of the present application, wherein the service orchestration unit includes at least one component, such as Figure 2 As shown, the method includes: S201. Send a first request to a service orchestration execution unit, where the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in a corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; the service orchestration execution unit includes the same components as the service orchestration unit.

[0045] In an embodiment of the present application, the service orchestration unit includes at least one type of component, and each type of component includes at least one component; for example: the service orchestration unit includes service class components, logic class components and extension components, and each type of component includes at least one component, and each component has corresponding functions; it can be understood that, in an embodiment of the present application, service orchestration is performed by selecting corresponding components from various types of components, and the corresponding functions are realized by combining various components.

[0046] In an embodiment of the present application, the service orchestration execution unit includes the same components as the service orchestration unit. When the service orchestration execution unit receives the first request, it will perform online debugging on the components included in the first request. Before debugging, it is also necessary to set the corresponding components according to the breakpoint information of each component included in the first request, that is, when the corresponding component breakpoint is executed, the execution is stopped and the context information at the breakpoint is obtained.

[0047] It should be noted that, in an embodiment of the present application, the breakpoint information of the component is included in the request header of the first request; the first request also includes interface information of the service orchestration interface, and the service orchestration interface is the debugging interface of all components that perform online debugging, that is: each component is debugged online one by one through the service orchestration interface, and when a component has breakpoint information, the operation is paused at the breakpoint of the component, and the context information at the breakpoint is obtained.

[0048] Optionally, in an embodiment of the present application, the first request also includes a session ID for online debugging. After receiving the first request, the service orchestration execution unit creates a hash table, the "key" of the hash table is the session ID for online debugging, and the "value" is the execution context; wherein the execution context includes a hash table, the "key" of the hash table is the component ID, and the "value" is the breakpoint information of the component.

[0049] S202: Receive a first response sent by the service orchestration execution unit, where the first response includes context information at a breakpoint of a corresponding component.

[0050] In an embodiment of the present application, after receiving the first request, the service orchestration execution unit will obtain the service orchestration interface and service orchestration data from the storage server, wherein the service orchestration data includes component information of each component for online debugging, and the service orchestration interface is an interface for calling each component in the service orchestration data; wherein the component information includes but is not limited to the component ID, the component name, and the component parameter setting information, and according to the component information, it can be determined which components are included in the online debugging and how to set the parameters of the component; further, according to the breakpoint information of the component, breakpoints can be set on the corresponding components.

[0051] In an embodiment of the present application, the service orchestration execution unit calls the service orchestration interface to perform online debugging on components in the service orchestration data one by one. When a component has breakpoint information, execution is paused to obtain context information at the breakpoint, and the context information is sent to the service orchestration unit as a first response.

[0052] It should be noted that in an embodiment of the present application, a component can set multiple breakpoints; therefore, when a component includes multiple breakpoints, each breakpoint of the component will be executed in sequence according to the logic of the component. Each time a breakpoint is reached, execution will be paused, the context information at the breakpoint will be obtained, and the context information at the breakpoint will be sent to the service orchestration unit.

[0053] S203: Send a first response to the terminal so that the first response is displayed on an interface of the terminal.

[0054] In the embodiment of the present application, the terminal accesses the service orchestration unit through the web interface of the browser, so the service orchestration unit sends the context information at the breakpoint to the terminal through the websocket protocol. After the terminal receives the context information of the breakpoint, the context information of the breakpoint is displayed on the web interface of the browser of the terminal.

[0055] The embodiment of the present application sends a first request to a service orchestration execution unit, requesting the service orchestration execution unit to perform online debugging of a corresponding component according to the breakpoint information of the component; the service orchestration execution unit sends a first response, wherein the first response includes context information at the breakpoint of the corresponding component; and finally sends the first response to a terminal, so that the first response is displayed on an interface of the terminal, effectively solving the technical problem in the prior art that online debugging of a software development kit based on the Java language will cause the Java virtual machine to suspend execution, the system cannot respond to access by other users, and various components of the system cannot be used.

[0056] Based on the above embodiments, as an optional embodiment, sending a first request to the service orchestration execution unit also includes: A first message sent by a receiving terminal is received, where the first message includes a service orchestration interface and service orchestration data; wherein the service orchestration interface is an interface for calling at least one component; the service orchestration data includes component information of at least one component, and the component information includes parameter setting information of each component; the first message is used to instruct the service orchestration unit to send the service orchestration interface and the service orchestration data to a storage server, so that the storage server saves the service orchestration interface and the service orchestration data in a database; A first message is sent to a storage server, and a second message sent by the storage server is received, where the second message is used to indicate that the storage server has stored the service orchestration interface and the service orchestration data.

[0057] In an embodiment of the present application, a terminal is connected to a service orchestration execution unit through a web interface of a browser. The service orchestration execution unit includes at least one type of component, each type of component includes at least one component, and at least one component can be selected from at least one type of component by dragging and dropping to generate service orchestration data. For example, a service component is selected from a service class component, a loop component is selected from a logic class component, and a script component is selected from an extension component by dragging and dropping. In this way, the service orchestration data includes a service component, a loop component, and an extension component.

[0058] It should be noted that in the embodiment of the present application, the online debugging of the components is performed one by one. Therefore, the order in which the components are dragged and dropped will affect the order in which the components are debugged online, that is, the order in which the components are dragged and dropped is the debugging order of the components. At the same time, when the service orchestration data is generated by dragging and dropping, a service orchestration interface is also generated. The service orchestration interface is an interface for calling the executors of each component in the service orchestration data. Through the service orchestration interface, the executors of each component can be called in sequence to execute the logic of the corresponding component.

[0059] In an embodiment of the present application, in response to an online debugging button triggered by the terminal, the terminal will send a first message to the service orchestration unit, the first message including a service orchestration interface and service orchestration data, and the first message is used to instruct the service orchestration unit to send the service orchestration interface and service orchestration data to the storage server for storage.

[0060] In the embodiment of the present application, the service orchestration unit receives the service orchestration interface and service orchestration data sent by the terminal, and stores them securely on the storage server, providing a solid foundation for the execution and debugging of subsequent service orchestration. Not only the accuracy and completeness of the service orchestration interface and service orchestration data are ensured, but also the maintainability and scalability of the service orchestration scheme are improved through the persistent storage of the storage server. In the subsequent steps, the service orchestration execution unit can obtain the service orchestration interface and service orchestration data from the storage server, and perform operations such as online debugging according to the service orchestration interface and service orchestration data.

[0061] Based on the above embodiments, as an optional embodiment, the information of the breakpoint to be debugged in the corresponding component includes: Conditional expressions for breakpoints; When the value of the conditional expression is true, the service orchestration execution unit executes the breakpoint to be debugged; when the value of the conditional expression is false, the service orchestration execution unit does not execute the breakpoint to be debugged.

[0062] In the embodiment of the present application, the conditional expression of the breakpoint can be a Boolean expression, and the result of the Boolean expression is true or false; when the value of the Boolean expression is true, the service orchestration execution unit executes the breakpoint, that is, stops at the breakpoint and obtains the context information at the breakpoint; when the value of the Boolean expression is false, the service orchestration execution unit does not execute the breakpoint until the next breakpoint is encountered or the debugging ends.

[0063] In the embodiment of the present application, by setting conditional expressions for breakpoints, the debugging process can be accurately controlled, thereby locating and solving problems more effectively.

[0064] Based on the above embodiments, as an optional embodiment, the context information at the breakpoint of the corresponding component includes: At least one of variable information and call stack information at the breakpoint; The variable information includes information of at least one of local variables, member variables, and static variables, and the call stack information includes information of function calls at the breakpoint.

[0065] In the embodiment of the present application, by viewing the variable information at the breakpoint, the user can understand the state of the system at a specific moment, including the current value of each variable. If the program has an error or abnormal behavior at a breakpoint, the user can locate the root cause of the problem by checking the variable information, and quickly narrow the debugging scope, thereby finding and solving the problem more quickly.

[0066] Further, in the embodiment of the present application, by viewing the call stack information, the user can understand the function execution path of the program from the program entry to the breakpoint. The call stack information helps the developer understand the call relationship between each function, so as to better understand the logical structure of the program. If the system has a recursive call or a loop call problem at a breakpoint, the developer can locate the root cause of the problem by viewing the call stack information.

[0067] In an embodiment of the present application, by obtaining the variable information and call stack information at the breakpoint, a more comprehensive understanding of the state and behavior of the program at the breakpoint can be obtained, which helps to understand the program state, locate problems, improve debugging efficiency, and better understand the logical structure of the program.

[0068] Based on the above embodiments, as an optional embodiment, a first response is sent to the terminal, and then the following steps are further included: Receiving a second request sent by the terminal, the second request including updated breakpoint information of at least one component, the second request being used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the updated breakpoint information; wherein the updated breakpoint information includes at least one of a conditional expression for adding a breakpoint, canceling a breakpoint, and modifying a breakpoint in at least one component; Send a second request to the service orchestration execution unit.

[0069] In an embodiment of the present application, after the context information at the breakpoint is displayed on the terminal interface, the user can update the breakpoint information of the component. For example, the user can add a breakpoint in a component that has not yet been executed, or delete the original breakpoint in the component that has not yet been executed, or modify the conditional expression of the original breakpoint.

[0070] In the embodiment of the present application, the conditional expression of the breakpoint can be added, cancelled or modified at any time as needed, so as to more accurately locate and understand the behavior of the program; at the same time, the process of updating the breakpoint information is real-time, which means that the user can adjust the breakpoint settings at any time during the debugging process, which helps the user to find and solve problems more quickly, thereby optimizing the entire debugging process; at the same time, for users who use the terminal for debugging, they can update the breakpoint information in real time and see the debugging results, which makes the debugging process more intuitive and efficient, and improves the user experience.

[0071] In summary, sending a second request containing updated breakpoint information to the service orchestration execution unit not only improves the flexibility and efficiency of debugging, but also optimizes the debugging process and enhances the user experience. This is particularly important for developing complex service orchestration and microservice architecture.

[0072] Based on the above embodiments, as an optional embodiment, the second request sent by the receiving terminal is further included: receiving a second response sent by the service orchestration execution unit, where the second response includes context information at a breakpoint of at least one component, where the context information is obtained after the corresponding component is executed according to the updated breakpoint information; A second response is sent to the terminal so that the second response is displayed on the interface of the terminal.

[0073] In an embodiment of the present application, after receiving the second request, the service orchestration execution unit continues to execute the subsequent component logic and executes the breakpoints of the component according to the updated breakpoint information of the component included in the second request. For example, the updated breakpoint information of the component is to add a new breakpoint in component 2. When the execution reaches the newly added breakpoint in component 2, the execution is stopped and the context information of the newly added breakpoint is obtained.

[0074] In an embodiment of the present application, by receiving the second response of the service orchestration execution unit, the context information at the breakpoint can be fed back to the terminal in real time, so that the user can check whether the updated breakpoint information is executed and whether the context information at the breakpoint is consistent with expectations. By combining real-time feedback and visual debugging information, the debugging efficiency is greatly improved.

[0075] The following describes the solution in the embodiment of the present application by taking the service orchestration execution unit as the execution subject.

[0076] Figure 3 A flow chart of an online debugging method applied to a service orchestration execution unit provided in an embodiment of the present application, wherein the service orchestration execution unit includes the same components as the service orchestration unit, such as Figure 3 As shown, the method includes: S301. Receive a first request sent by a service orchestration unit, where the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in a corresponding component; the first request is used to request a service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information.

[0077] In an embodiment of the present application, the request header of the first request includes breakpoint information of at least one component, and the first request includes interface information of the service orchestration interface. After receiving the first request, the service orchestration execution unit obtains the interface information of the service orchestration interface, and the interface information of the service orchestration interface is used to obtain the corresponding service orchestration interface and service orchestration data from the storage server.

[0078] It should be noted that, in the embodiment of the present application, not all components that are being debugged online have breakpoints set, that is, the components involved in the request header of the first request are only the components that have breakpoints set among all components that are being debugged online.

[0079] S302: Obtain a service orchestration interface from a storage server, where the service orchestration interface is an interface for calling at least one component.

[0080] In an embodiment of the present application, after the service orchestration execution unit receives the first request, it only obtains the breakpoint information of the component and the interface information of the service call interface. Online debugging cannot be performed based on this information. Therefore, the service orchestration execution unit also needs to obtain the service orchestration interface from the storage server based on the interface information of the service orchestration interface. After obtaining the service orchestration interface, the component's executor can be called through the service orchestration interface to perform online debugging of the component.

[0081] S303: Call the service orchestration interface to perform online debugging on the corresponding component, obtain context information at the corresponding component breakpoint, and use the context information as the first response.

[0082] In an embodiment of the present application, the service orchestration execution unit calls the service orchestration interface to perform online debugging of the component. When the execution reaches a breakpoint, the execution is paused, and the current context information (including but not limited to variable values, call stack, memory status, network request / response, etc.) is obtained. The captured context information is encapsulated into a structured format (such as JSON, XML, etc.), and returned to the user as a first response. The first response usually also includes some additional metadata, such as debugging status and error code (if any). After receiving the first response, the user can view the context information for further analysis, debugging or recording.

[0083] S304: Send a first response to the service orchestration unit.

[0084] In the embodiment of the present application, no communication connection is established between the service orchestration execution unit and the terminal. Therefore, after obtaining the first response, the service orchestration execution unit sends the first response to the service orchestration unit, which then sends it to the terminal.

[0085] In the embodiment of the present application, the service orchestration execution unit realizes efficient and low-cost debugging of the component by receiving the first request, obtaining the service orchestration interface from the storage server, performing online debugging, and sending the first response. This not only improves the debugging efficiency and system stability, but also reduces the debugging cost and improves the user experience. At the same time, it also supports the debugging and analysis of complex scenarios, which helps to promote team collaboration and improve overall development efficiency.

[0086] Based on the above embodiments, as an optional embodiment, obtaining the service orchestration interface of at least one component from the storage server also includes: A third request is sent to the storage server, where the third request includes interface information of the service orchestration interface; the third request is used to request the storage server to return a corresponding service orchestration interface according to the interface information.

[0087] In an embodiment of the present application, by sending a third request containing interface information to the storage server, the service orchestration execution unit can dynamically obtain the required service orchestration interface, which makes the service orchestration process more flexible and able to adapt to changing business needs and technical environments; at the same time, the required service orchestration interface is requested as needed, avoiding unnecessary waste of resources; the storage server also only returns the interface that matches the request, thereby improving resource utilization efficiency.

[0088] In the embodiment of the present application, sending a third request containing interface information to the storage server to obtain the service orchestration interface not only improves the flexibility of service orchestration and the scalability of the system, but also optimizes resource utilization, simplifies interface management, and supports the implementation of microservice architecture. This is of great significance for building an efficient and scalable service orchestration system.

[0089] Based on the above embodiments, as an optional embodiment, the third request is also used to request service orchestration data, the service orchestration data includes component information of at least one component, and the component information includes parameter setting information of each component; Call the service orchestration interface to perform online debugging on the corresponding component and obtain the context information at the corresponding component breakpoint. Previously, it also included: receiving the service orchestration data returned by the storage server, setting parameters of the corresponding component according to the component information of at least one component, and setting breakpoints for the corresponding components according to the breakpoint information of each component; The service orchestration interface is called to perform online debugging on at least one component in a preset order to obtain context information at a corresponding component breakpoint.

[0090] In the embodiment of the present application, although the service orchestration execution unit includes the same components as the service orchestration unit, it is unclear which components are executed and how the parameters of the components are set. Therefore, it is necessary to obtain service orchestration data from the storage server. The service orchestration data includes the ID of the component that needs to be debugged online, parameter setting information of the component, etc., so that the components are parameterized according to the parameter setting information, and at the same time, breakpoints are set on the corresponding components according to the breakpoint information of the components.

[0091] In the embodiment of the present application, the service orchestration interface is a calling interface of each component in the service orchestration data. According to the interface, the executor of each component in the service orchestration data can be called to execute the logic of the corresponding component.

[0092] In an embodiment of the present application, by requesting service orchestration data and setting component parameters and breakpoints, debugging failures caused by improper parameter settings or incorrect breakpoint settings are reduced; at the same time, in complex service orchestration scenarios, the interactions and collaborations between components may be very complex. By requesting service orchestration data and calling the service orchestration interface for online debugging, more complex service orchestration and component interactions can be supported.

[0093] Based on the above embodiments, as an optional embodiment, a first response is sent to the service orchestration unit, and then the following steps are further included: Receive a second request sent by the storage server orchestration unit, the second request including updated breakpoint information of at least one component, and the second request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the updated breakpoint information; In response to the second request, online debugging is performed on the corresponding component according to the updated breakpoint information, context information at the breakpoint of at least one component is obtained, the context information is obtained after the corresponding component is executed according to the updated breakpoint information, and the context information at the breakpoint of at least one component is used as the second response; A second response is sent to the service orchestration unit.

[0094] In an embodiment of the present application, by receiving the second request sent by the storage server orchestration unit, the system can dynamically debug according to the updated breakpoint information of the component, which helps to quickly locate the problem, understand the interaction between components, and analyze the execution path, thereby greatly improving the debugging efficiency and accuracy; at the same time, the context information at the breakpoint is sent back to the service orchestration unit as a second response, providing users with real-time debugging results and component status feedback, which helps developers quickly understand the problem and make code corrections and optimizations accordingly, thereby promoting continuous improvement of the system.

[0095] To facilitate those skilled in the art to clearly understand the process of online debugging of a component, the present application embodiment provides a schematic diagram of the process of online debugging of a component, such as Figure 4 As shown, after receiving the first request sent by the service orchestration unit, the service orchestration execution unit queries the storage server for service orchestration information, wherein the service orchestration information includes a service orchestration interface and service orchestration data; the service orchestration execution unit generates a component execution chain according to the breakpoint information of the component included in the first request, and the component execution chain includes the component ID, the execution order of the component, the parameter setting information of the component, and the breakpoint information of the component; the service orchestration execution unit calls the service orchestration interface to perform online debugging on each component in turn; in the process of debugging the component, it is determined whether the component has a breakpoint set, and if no breakpoint is set, the component logic is directly executed; if a breakpoint is set, it is determined whether the breakpoint has a conditional expression; if there is a conditional expression and the value of the conditional expression is true, the execution is suspended and the resume execution signal input by the user is waited for; if the value of the conditional expression is false, the component logic is executed; after the logic execution of the current component is completed, it is determined whether there is a next component to be executed, and if there is logic to execute the next component, it is re-determined whether the next component has a breakpoint set, whether the breakpoint has a conditional expression, and whether the value of the conditional expression is true; if there is no next component to be executed, the online debugging is terminated.

[0096] To facilitate those skilled in the art to clearly understand how different execution entities interact with each other, the present application embodiment provides an interaction diagram of an online debugging method, such as Figure 5 As shown, the interaction process between various execution entities includes the following steps: Step 101: The terminal clicks to start online debugging and sends the service orchestration interface and service orchestration data to the service orchestration unit; Step 102: The service orchestration unit sends the service orchestration interface and service orchestration data to the storage server; Step 103: The storage server saves the service orchestration interface and the service orchestration data; Step 104: The storage server returns the saved result to the service orchestration unit; Step 105: The service orchestration unit sends an online debugging request to the service orchestration execution unit; Step 106: The service orchestration execution unit requests the storage server for a service orchestration interface and service orchestration data; Step 107: The storage server queries the service orchestration interface and service orchestration data; Step 108: The storage server returns the queried service orchestration interface and service orchestration data to the service orchestration execution unit; Step 109: The service orchestration unit generates a component execution chain, executes to the first breakpoint and pauses, and obtains context information of the breakpoint; Step 110: The service orchestration execution unit returns the context information of the current breakpoint to the service orchestration unit; Step 111: The service orchestration unit sends the context information of the current breakpoint to the terminal, and displays the context information of the current breakpoint on the terminal interface; Step 112: The user updates the breakpoint information, sends the updated breakpoint information to the service orchestration unit, and instructs the online debugging to resume execution; Step 113: The service orchestration unit sends the updated breakpoint information to the service orchestration execution unit, and instructs the online debugging to resume execution; Step 114: The service orchestration execution unit resumes execution, pauses at the next updated breakpoint, and obtains context information at the breakpoint; Step 115: The service orchestration execution unit returns the context information of the current breakpoint to the service orchestration unit; Step 116: The service orchestration unit sends the context information of the current breakpoint to the terminal, and the terminal interface displays the context information of the current breakpoint; Step 117: The user updates the breakpoint information, sends the updated breakpoint information to the service orchestration unit, and instructs the online debugging to resume execution; Step 118: The service orchestration unit sends the breakpoint information updated by the user to the service orchestration execution unit, and instructs the online debugging to resume execution; Step 119: After the service orchestration unit executes the breakpoints of all components, the online debugging ends and the service orchestration execution result is generated; Step 120: The service orchestration execution unit sends the service orchestration execution result to the service orchestration unit; Step 121: The service orchestration unit sends the service orchestration execution result to the terminal and displays the service orchestration execution result on the terminal interface.

[0097] Figure 6 A schematic diagram of the structure of an online debugging device applied to a service orchestration unit provided in an embodiment of the present application, wherein the service orchestration unit includes at least one component; Figure 6 As shown, the device includes: a first sending module 6001, a first receiving module 6002, and a second sending module 6003. Among them: The first sending module 6001 is used to send a first request to the service orchestration execution unit, where the first request includes breakpoint information of at least one component; the breakpoint information refers to information of the breakpoint to be debugged in the corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; the service orchestration execution unit includes the same components as the service orchestration unit; A first receiving module 6002 is used to receive a first response sent by the service orchestration execution unit, where the first response includes context information at a breakpoint of a corresponding component; The second sending module 6003 is used to send a first response to the terminal so that the first response is displayed on the interface of the terminal.

[0098] The online debugging device applied to the service orchestration unit of the embodiment of the present application can execute the online debugging method applied to the service orchestration unit provided by the embodiment of the present application, and its implementation principle is similar. The actions performed by each module in the online debugging device applied to the service orchestration unit of each embodiment of the present application correspond to the steps in the online debugging method performed by the service orchestration unit of each embodiment of the present application. For the detailed functional description of each module of the online debugging device applied to the service orchestration unit, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0099] Figure 7 A schematic diagram of the structure of an online debugging device applied to a service orchestration execution unit provided in an embodiment of the present application, wherein the service orchestration execution unit includes the same components as the service orchestration unit; Figure 7 As shown, the device includes: a third receiving module 7001, a first processing module 7002, and a second sending module 7003. Among them: The third receiving module 7001 is used to receive a first request sent by the service orchestration unit, where the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in the corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; The first processing module 7002 is used to obtain the service orchestration interface of at least one component from the storage server; call the service orchestration interface to perform online debugging on the corresponding component, obtain the context information at the breakpoint of the corresponding component, and use the context information as the first response; The second sending module 7003 is used to send a first response to the service orchestration unit.

[0100] The online debugging device applied to the service orchestration execution unit of the embodiment of the present application can execute the online debugging method applied to the service orchestration execution unit provided by the embodiment of the present application, and its implementation principle is similar. The actions performed by each module in the online debugging device applied to the service orchestration execution unit of each embodiment of the present application correspond to the steps in the online debugging method performed by the service orchestration execution unit of each embodiment of the present application. For the detailed functional description of each module of the online debugging device applied to the service orchestration execution unit, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0101] The embodiment of the present application sends a first request to a service orchestration execution unit, requesting the service orchestration execution unit to perform online debugging of a corresponding component according to the breakpoint information of the component; the service orchestration execution unit sends a first response, wherein the first response includes context information at the breakpoint of the corresponding component; and finally sends the first response to a terminal, so that the first response is displayed on an interface of the terminal, effectively solving the technical problem in the prior art that online debugging of a software development kit based on the Java language will cause the Java virtual machine to suspend execution, the system cannot respond to access by other users, and various components of the system cannot be used.

[0102] Furthermore, in an embodiment of the present application, the breakpoint is executed when the value of the conditional expression is true, and the breakpoint is not executed when the value of the conditional expression is false; by setting a conditional expression for the breakpoint, the debugging process can be accurately controlled; at the same time, the context information is sent to the terminal through the websocket protocol, and the context information of the current breakpoint is displayed on the terminal interface, so that the user can view the current execution status of the breakpoint and the latest values ​​of all variables in real time, thereby locating and solving problems more effectively.

[0103] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 8As shown, the electronic device 4000 includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0104] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0105] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0106] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0107] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0108] Among them, the electronic equipment package may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0109] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, the following can be implemented: It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable 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 disclosure, 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 disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. 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. Computer readable signal media may also be any computer readable medium other than computer readable storage media, 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 appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0110] The present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the above method embodiments when executed by a processor. Compared with the prior art, it can achieve: The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0111] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0112] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. An online debugging method, characterized in that: The method is applied to a service orchestration unit, wherein the service orchestration unit includes at least one component; the method includes: Sending a first request to a service orchestration execution unit, the first request including breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in a corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; the service orchestration execution unit includes the same component as the service orchestration unit; receiving a first response sent by the service orchestration execution unit, wherein the first response includes context information at a breakpoint of the corresponding component; The first response is sent to a terminal so that the first response is displayed on an interface of the terminal.

2. The online debugging method according to claim 1, characterized in that: The sending of the first request to the service orchestration execution unit also includes: Receive a first message sent by the terminal, the first message including a service orchestration interface and service orchestration data; wherein the service orchestration interface is an interface for calling the at least one component; the service orchestration data includes component information of the at least one component, and the component information includes parameter setting information of each component; the first message is used to instruct the service orchestration unit to send the service orchestration interface and the service orchestration data to a storage server, so that the storage server saves the service orchestration interface and the service orchestration data in a database; The first message is sent to the storage server, and a second message sent by the storage server is received, where the second message is used to indicate that the storage server has stored the service orchestration interface and the service orchestration data.

3. The online debugging method according to claim 1, characterized in that: The information of the breakpoints to be debugged in the corresponding component includes: Conditional expressions for breakpoints; When the value of the conditional expression is true, the service orchestration execution unit executes the breakpoint to be debugged; when the value of the conditional expression is false, the service orchestration execution unit does not execute the breakpoint to be debugged.

4. The online debugging method according to claim 1, characterized in that: The context information at the breakpoint of the corresponding component includes: at least one of variable information and call stack information at the breakpoint; The variable information includes information of at least one of local variables, member variables, and static variables, and the call stack information includes information of function calls at breakpoints.

5. The online debugging method according to claim 3, characterized in that: The sending the first response to the terminal further includes: receiving a second request sent by the terminal, the second request including updated breakpoint information of at least one component, the second request being used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the updated breakpoint information; wherein the updated breakpoint information includes at least one of a conditional expression for adding a breakpoint, canceling a breakpoint, and modifying a breakpoint in the at least one component; Send the second request to the service orchestration execution unit.

6. The online debugging method according to claim 5, characterized in that: The receiving of the second request sent by the terminal further includes: receiving a second response sent by the service orchestration execution unit, where the second response includes context information at a breakpoint of the at least one component, where the context information is obtained after the corresponding component is executed according to the updated breakpoint information; The second response is sent to the terminal so that the second response is displayed on an interface of the terminal.

7. An online debugging method based on a low-code platform, characterized in that: The method is applied to a service orchestration execution unit, the service orchestration execution unit includes the same components as the service orchestration unit, and the method includes: receiving a first request sent by the service orchestration unit, wherein the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in the corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; Obtaining a service orchestration interface from a storage server, where the service orchestration interface is an interface for calling the at least one component; Calling the service orchestration interface to perform online debugging on the corresponding component, obtaining context information at the breakpoint of the corresponding component, and using the context information as the first response; The first response is sent to the service orchestration unit.

8. The online debugging method according to claim 7, characterized in that: The step of obtaining the service orchestration interface of each of the at least one component from the storage server further includes: Sending a third request to the storage server, where the third request includes interface information of the service orchestration interface; the third request is used to request the storage server to return a corresponding service orchestration interface according to the interface information.

9. The online debugging method according to claim 8, characterized in that: The third request is further used to request service orchestration data, the service orchestration data including component information of at least one component, the component information including parameter setting information of each component; The calling of the service orchestration interface to perform online debugging on the corresponding component to obtain context information at the breakpoint of the corresponding component also includes: receiving the service orchestration data returned by the storage server, setting parameters of the corresponding component according to the component information of the at least one component, and setting breakpoints for the corresponding components according to the breakpoint information of each component; The service orchestration interface is called to perform online debugging on the at least one component in a preset order to obtain context information at a corresponding component breakpoint.

10. The online debugging method according to claim 9, characterized in that: The sending the first response to the service orchestration unit further includes: receiving a second request sent by the storage server orchestration unit, the second request including the updated breakpoint information of the at least one component, the second request being used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the updated breakpoint information; In response to the second request, online debugging is performed on the corresponding component according to the updated breakpoint information, context information at the breakpoint of at least one component is obtained, the context information is obtained after the corresponding component is executed according to the updated breakpoint information, and the context information at the breakpoint of the at least one component is used as a second response; The second response is sent to the service orchestration unit.

11. An online debugging device, characterized in that: The online debugging device is applied to a service arrangement unit, the service arrangement unit includes at least one component, and the device includes: A first sending module is used to send a first request to a service orchestration execution unit, wherein the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in a corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; the service orchestration execution unit includes the same components as the service orchestration unit; A first receiving module, configured to receive a first response sent by the service orchestration execution unit, wherein the first response includes context information at a breakpoint of the corresponding component; The second sending module is used to send the first response to the terminal so that the first response is displayed on the interface of the terminal.

12. An online debugging device, characterized in that: The online debugging device is applied to a service orchestration execution unit, the service orchestration execution unit includes the same components as the service orchestration unit, and the device includes: A third receiving module is used to receive a first request sent by the service orchestration unit, wherein the first request includes breakpoint information of at least one component; the breakpoint information refers to information of a breakpoint to be debugged in the corresponding component; the first request is used to request the service orchestration execution unit to perform online debugging on the corresponding component according to the breakpoint information; A first processing module is configured to obtain a service orchestration interface of each of the at least one component from a storage server; call the service orchestration interface to perform online debugging on the corresponding component, obtain context information at a breakpoint of the corresponding component, and use the context information as a first response; The second sending module is configured to send the first response to the service orchestration unit.

13. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 10.

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

Citation Information

Patent Citations

  • Service orchestration method and device, equipment and storage medium

    CN114816375A

  • Behavior logic development debugging method, system and device for low-code application

    CN117785160A