Remote debugging method and device, computer device and storage medium

By using remote debugging methods, sub-processing information of financial system tasks is obtained and the task processing end of abnormal processing processes is identified. Debugging is performed using locally stored information, which solves the problem of low efficiency in traditional debugging and achieves efficient and accurate debugging results.

CN116737568BActive Publication Date: 2026-11-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310698721.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-13
Publication Date
2026-11-27
Estimated Expiration
2043-06-13

AI Technical Summary

Technical Problem

Traditional software debugging is inefficient, especially when dealing with a large amount of content to be debugged, and it takes a long time.

Method used

By using remote debugging methods, sub-processing information of tasks in the financial system can be obtained, the task processing end can be determined, and the target task processing end can be identified when an anomaly occurs in the processing process. The sub-processing information stored locally can then be used for debugging.

Benefits of technology

It improves debugging efficiency and accuracy, reduces debugging time and workload, and enhances code readability and problem location efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116737568B_ABST
    Figure CN116737568B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of big data, and provides a remote debugging method and device, computer equipment, a storage medium and a computer program product, which can be specifically applied to the financial field or other related fields. The application can improve the efficiency and accuracy of debugging. The method comprises the following steps: obtaining sub-processing information of a task in a financial system, and determining a task processing end corresponding to the sub-processing information; obtaining a processing process of the task processing end for the corresponding sub-processing information; in the case that the processing process appears processing abnormity, identifying the task processing end corresponding to the processing process appearing the processing abnormity as a target task processing end; and debugging the target task processing end by using locally stored sub-processing information corresponding to the target task processing end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of big data technology, and in particular to a remote debugging method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] With the development of computer technology, software development technology has become an important computer technology. During the software development process, debugging of the task processing end is necessary. Therefore, how to perform debugging efficiently has become an important research direction.

[0003] Traditional techniques typically involve manual debugging of the task processing end; however, when dealing with a large amount of content to be debugged, this method is time-consuming and inefficient. Summary of the Invention

[0004] Therefore, it is necessary to provide a remote debugging method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve debugging efficiency in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a remote debugging method. The method includes:

[0006] Obtain sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information;

[0007] Obtain the processing progress of the task processing terminal for the corresponding sub-processing information;

[0008] In the event of a processing exception in the processing process, the task processing end corresponding to the processing process that has encountered the exception will be identified as the target task processing end.

[0009] The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally.

[0010] In one embodiment, before debugging the target task processing terminal using locally stored sub-processing information corresponding to the target task processing terminal, the method further includes:

[0011] Obtain the address information and debug port information of the target task processing terminal;

[0012] The step of debugging the target task processing terminal using locally stored sub-processing information corresponding to the target task processing terminal includes:

[0013] The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally, the address information, and the debug port information.

[0014] In one embodiment, the step of identifying the task processing terminal corresponding to the processing process that experienced the processing exception as the target task processing terminal when the processing process encounters a processing exception includes:

[0015] In the event of a processing exception, the job definition information corresponding to the processing process that experienced the exception is determined and used as the target job definition information.

[0016] From multiple task processing terminals, the task processing terminal corresponding to the target job definition information is determined as the target task processing terminal.

[0017] In one embodiment, before identifying the task processing end corresponding to the processing process that experienced the processing exception as the target task processing end in the event of a processing exception, the method further includes:

[0018] Obtain a pre-trained process identification model;

[0019] The processing process is input into the pre-trained processing process recognition model to obtain the recognition result of the processing process;

[0020] If the identification result indicates an anomaly, it is confirmed that the processing process has encountered a processing error.

[0021] In one embodiment, determining the task processing end corresponding to the sub-processing information includes:

[0022] The job definition information for obtaining the sub-processing information;

[0023] From multiple task processing terminals, select the task processing terminal corresponding to the job definition information as the task processing terminal corresponding to the sub-processing information.

[0024] In one embodiment, obtaining sub-processing information of a task in a financial system includes:

[0025] Obtain information on task processing within the financial system;

[0026] The processing information is decomposed to obtain the sub-processing information of the task.

[0027] In one embodiment, after obtaining the processing progress of the task processing terminal for the corresponding sub-processing information, the method further includes:

[0028] When the processing process indicates successful completion, the task processing end corresponding to the processing process indicating successful completion will be identified as a normal task processing end.

[0029] The sub-processing information corresponding to the normal task processing terminal is confirmed as normal sub-processing information.

[0030] Secondly, this application also provides a remote debugging device. The device includes:

[0031] The information acquisition module is used to acquire sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information.

[0032] The process acquisition module is used to acquire the processing process of the task processing terminal for the corresponding sub-processing information;

[0033] The target identification module is used to identify the task processing end corresponding to the processing process that has encountered a processing abnormality as the target task processing end when the processing process encounters a processing abnormality.

[0034] The target debugging module is used to debug the target task processing terminal by utilizing the sub-processing information corresponding to the target task processing terminal stored locally.

[0035] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0036] Obtain sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information;

[0037] Obtain the processing progress of the task processing terminal for the corresponding sub-processing information;

[0038] In the event of a processing exception in the processing process, the task processing end corresponding to the processing process that has encountered the exception will be identified as the target task processing end.

[0039] The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally.

[0040] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0041] Obtain sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information;

[0042] Obtain the processing progress of the task processing terminal for the corresponding sub-processing information;

[0043] In the event of a processing exception in the processing process, the task processing end corresponding to the processing process that has encountered the exception will be identified as the target task processing end.

[0044] The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally.

[0045] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0046] Obtain sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information;

[0047] Obtain the processing progress of the task processing terminal for the corresponding sub-processing information;

[0048] In the event of a processing exception in the processing process, the task processing end corresponding to the processing process that has encountered the exception will be identified as the target task processing end.

[0049] The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally.

[0050] The aforementioned remote debugging method, apparatus, computer equipment, storage medium, and computer program product acquire sub-processing information of a task in a financial system and determine the task processing end corresponding to the sub-processing information; acquire the processing process of the task processing end for the corresponding sub-processing information; in the event of a processing anomaly in the processing process, identify the task processing end corresponding to the processing process with the anomaly as the target task processing end; and debug the target task processing end using the locally stored sub-processing information corresponding to the target task processing end. This scheme acquires sub-processing information of tasks in the financial system, identifies the corresponding task processing end, stores the sub-processing information, and determines the corresponding task processing end that processes the sub-processing information; it acquires the processing progress of the task processing end for the corresponding sub-processing information, thereby determining the processing status of the task processing end; in the event of a processing anomaly, it identifies the task processing end corresponding to the processing process with the anomaly as the target task processing end, thereby determining the task processing end corresponding to the abnormal sub-processing information; and it uses the locally stored sub-processing information corresponding to the target task processing end to debug the target task processing end, thereby debugging the abnormal sub-processing information of the target task processing end, which helps to improve the efficiency and accuracy of debugging. Attached Figure Description

[0051] Figure 1This is a flowchart illustrating a remote debugging method in one embodiment;

[0052] Figure 2 This is a flowchart illustrating the steps for determining the target task processing terminal in one embodiment;

[0053] Figure 3 This is a flowchart illustrating the steps for confirming a processing exception in one embodiment.

[0054] Figure 4 This is a flowchart illustrating the steps for determining the task processing terminal in one embodiment;

[0055] Figure 5 This is a schematic diagram illustrating the stages of a remote debugging method in one embodiment;

[0056] Figure 6 This is a structural block diagram of a remote debugging device in one embodiment;

[0057] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0059] 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, data stored, data displayed, 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 the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0060] To more clearly illustrate the technical solutions involved in this application, the following explanations are provided for the terms used in this application:

[0061] A task can be an instance of a task that needs to be processed, such as a task that implements a certain function through code.

[0062] Subprocessing information can be subcode information. For example, if a task has a corresponding complete code, the subprocessing information can be a part of that complete code.

[0063] A task processing terminal can be a processing terminal used to process tasks or subtasks. For example, a task processing terminal can be a processing terminal that processes tasks or subtasks by executing sub-processing information, where the processing terminal can be another terminal or server.

[0064] The processing process can be the processing information of the task processing end in processing the corresponding sub-processing information. For example, the processing process can be used to indicate whether a processing exception occurs during the processing of the corresponding sub-processing information by the task processing end.

[0065] Address information can be an IP address (Internet Protocol address).

[0066] Debug port information can be an identifier for the debug port, such as the debug port number.

[0067] The job definition information can be a job definition or a task definition. For example, there are multiple task processing terminals, each of which is used to process the corresponding sub-processing information. The sub-processing information can be used to implement a certain function in the task. The job definition information can be used to represent the description or definition of the function, or it can be used to represent the description or definition of the sub-processing information. Each task processing terminal is associated with the corresponding sub-processing information, and each task processing terminal is also associated with the corresponding job definition information. The sub-processing information is associated with the corresponding job definition information.

[0068] The pre-trained process identification model can be a trained process identification model, wherein the process identification model can be a model used to identify process, such as a model built based on identification rules for identifying process.

[0069] The identification results of the processing process can be used to indicate whether the processing process has encountered an anomaly.

[0070] The task processing information can be the complete code information of the task, and the task processing information can include multiple sub-processing information.

[0071] In one embodiment, such as Figure 1 As shown, a remote debugging method is provided. This embodiment illustrates the application of this method to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, etc.; the server can be a standalone server or a server cluster composed of multiple servers. In this embodiment, the method includes the following steps:

[0072] Step S101: Obtain the sub-processing information of the task in the financial system and determine the task processing terminal corresponding to the sub-processing information.

[0073] Specifically, the terminal obtains the sub-processing information of the task from the financial system; based on the sub-processing information, it determines the task processing terminal corresponding to the sub-processing information from multiple task processing terminals.

[0074] Step S102: Obtain the processing progress of the corresponding sub-processing information from the task processing end.

[0075] Specifically, the terminal monitors the task processing end in real time and obtains the processing progress of the corresponding sub-processing information in real time.

[0076] Step S103: In the event of a processing exception, the task processing end corresponding to the processing process that has encountered the exception is identified as the target task processing end.

[0077] Specifically, the terminal identifies the processing process and determines whether the processing process has encountered a processing error. If a processing error occurs, the terminal identifies the task processing end corresponding to the processing process that has encountered the error and identifies the task processing end corresponding to the processing process that has encountered the error as the target task processing end.

[0078] Step S104: Debug the target task processing terminal using the sub-processing information corresponding to the target task processing terminal stored locally.

[0079] Specifically, after the terminal obtains the sub-processing information of the task in the financial system, it stores all the sub-processing information. From the sub-processing information stored locally, it identifies the sub-processing information corresponding to the target task processing terminal and uses the sub-processing information stored locally corresponding to the target task processing terminal to debug the target task processing terminal.

[0080] In the above remote debugging method, the sub-processing information of the task in the financial system is obtained, and the task processing end corresponding to the sub-processing information is determined; the processing process of the task processing end for the corresponding sub-processing information is obtained; in the case of a processing exception, the task processing end corresponding to the processing process that has a processing exception is identified as the target task processing end; and the target task processing end is debugged using the sub-processing information corresponding to the target task processing end stored locally. This scheme acquires sub-processing information of tasks in the financial system, identifies the corresponding task processing end, stores the sub-processing information, and determines the corresponding task processing end that processes the sub-processing information; it acquires the processing progress of the task processing end for the corresponding sub-processing information, thereby determining the processing status of the task processing end; in the event of a processing anomaly, it identifies the task processing end corresponding to the processing process with the anomaly as the target task processing end, thereby determining the task processing end corresponding to the abnormal sub-processing information; and it uses the locally stored sub-processing information corresponding to the target task processing end to debug the target task processing end, thereby debugging the abnormal sub-processing information of the target task processing end, which helps to improve the efficiency and accuracy of debugging.

[0081] In one embodiment, before debugging the target task processing terminal using the sub-processing information corresponding to the target task processing terminal stored locally, step S104 further includes the following: obtaining the address information and debugging port information of the target task processing terminal; in step S104, debugging the target task processing terminal using the sub-processing information corresponding to the target task processing terminal stored locally specifically includes the following: debugging the target task processing terminal using the sub-processing information, address information, and debugging port information corresponding to the target task processing terminal stored locally.

[0082] Specifically, after identifying the target task processing terminal, the terminal obtains the address information and the debug port information of the target task processing terminal; based on the address information and debug port information, it connects to the target task processing terminal (e.g., debug connection), and uses the sub-processing information stored locally corresponding to the target task processing terminal to debug the corresponding sub-processing information stored in the target task processing terminal.

[0083] The technical solution provided in this embodiment utilizes locally stored sub-processing information, address information, and debugging port information corresponding to the target task processing terminal to debug the target task processing terminal. This facilitates more efficient and accurate debugging of the target task processing terminal, thereby improving debugging efficiency and accuracy.

[0084] In one embodiment, such as Figure 2 As shown, in step S103, when a processing exception occurs in the processing process, the task processing end corresponding to the processing process that encountered the exception is identified as the target task processing end, specifically including the following:

[0085] Step S201: In the event of a processing exception, determine the job definition information corresponding to the processing process that has encountered the exception, and use it as the target job definition information.

[0086] Step S202: From multiple task processing terminals, determine the task processing terminal that corresponds to the target job definition information and use it as the target task processing terminal.

[0087] Specifically, when a processing exception occurs in the processing process, the terminal determines the sub-processing information corresponding to the processing process that has encountered the exception. Based on the corresponding sub-processing information, it determines the job definition information corresponding to the sub-processing information and uses the corresponding job definition information as the target job definition information. From multiple task processing terminals, it determines the task processing terminal associated with the target job definition information and uses the task processing terminal associated with the target job definition information as the target task processing terminal.

[0088] The technical solution provided in this embodiment, by identifying the task processing terminal corresponding to the target job definition information as the target task processing terminal, facilitates the faster and more accurate identification of the target task processing terminal, thereby improving the efficiency and accuracy of subsequent debugging.

[0089] In one embodiment, such as Figure 3 As shown, in step S103 above, before identifying the task processing end corresponding to the processing process that encountered the processing exception as the target task processing end, the following content is also included:

[0090] Step S301: Obtain the pre-trained processing process recognition model.

[0091] Step S302: Input the processing process into the pre-trained processing process recognition model to obtain the recognition result of the processing process.

[0092] Step S303: If the identification result indicates an anomaly, confirm that a processing anomaly has occurred in the processing process.

[0093] Specifically, the terminal acquires a pre-trained processing process identification model; the processing process is input into the pre-trained processing process identification model, and the processing process is anomaly identified by the pre-trained processing process identification model. The model outputs a first identification result indicating whether the processing process has an error, and a second identification result indicating whether the processing process does not match the preset processing process (such as the preset correct processing process). The first and second identification results are used as the identification results of the processing process. If the identification results indicate an anomaly (for example, if the first identification result indicates that the processing process has an error, or the second identification result indicates that the processing process does not match the preset processing process, then it is determined that the identification result indicates an anomaly), the processing process is confirmed to have a processing anomaly.

[0094] The technical solution provided in this embodiment uses a pre-trained process identification model to identify the process, which helps to confirm whether the process has an abnormality more quickly and accurately, thereby improving the efficiency and accuracy of subsequent debugging.

[0095] In one embodiment, such as Figure 4 As shown, in step S101, the task processing terminal corresponding to the sub-processing information is determined, which specifically includes the following:

[0096] Step S401: Obtain the job definition information of the sub-processing information.

[0097] Step S402: Select the task processing terminal corresponding to the job definition information from multiple task processing terminals, and use it as the task processing terminal corresponding to the sub-processing information.

[0098] Specifically, the terminal obtains the job definition information of the sub-processing information; from multiple task processing terminals, it determines the task processing terminal that is pre-associated with the job definition information, and uses the task processing terminal that is pre-associated with the job definition information as the task processing terminal corresponding to the sub-processing information.

[0099] The technical solution provided in this embodiment selects the task processing terminal corresponding to the job definition information of the sub-processing information as the task processing terminal corresponding to the sub-processing information. This helps to determine the task processing terminal corresponding to the sub-processing information more quickly and accurately, thereby improving the efficiency and accuracy of subsequent debugging.

[0100] In one embodiment, step S101, obtaining sub-processing information of a task in the financial system, specifically includes the following: obtaining processing information of a task in the financial system; decomposing the processing information to obtain sub-processing information of the task.

[0101] Specifically, the terminal identifies the task from the financial system and obtains the task's processing information; it decomposes the processing information (or divides or splits it) to obtain multiple sub-processing information, and identifies these multiple sub-processing information as the task's sub-processing information.

[0102] The technical solution provided in this embodiment decomposes the processing information to obtain the sub-processing information of the task, which is beneficial to accurately obtain the sub-processing information of the task, thereby improving the accuracy of subsequent debugging.

[0103] In one embodiment, step S102 above, after obtaining the processing process of the corresponding sub-processing information of the task processing terminal, further includes the following: if the processing process indicates successful completion, the task processing terminal corresponding to the processing process indicating successful completion is identified as a normal task processing terminal; and the sub-processing information corresponding to the normal task processing terminal is confirmed as normal sub-processing information.

[0104] Specifically, the terminal determines whether the processing process indicates successful completion. If the processing process indicates successful completion (e.g., no exceptions occurred during processing), it confirms that the task processing end corresponding to the processing process indicating successful completion is without exception and identifies the task processing end corresponding to the processing process indicating successful completion as a normal task processing end; it also confirms that the sub-processing information corresponding to the normal task processing end is without exception and identifies the sub-processing information corresponding to the normal task processing end as normal sub-processing information, without the need for debugging the normal task processing end.

[0105] The technical solution provided in this embodiment, by confirming the normal task processing end and the corresponding normal sub-processing information when the processing process indicates successful completion, is beneficial to quickly confirm the normal task processing end and the normal sub-processing information, thereby reducing the workload of debugging and improving the efficiency of debugging.

[0106] The following example illustrates the remote debugging method provided in this application. This example demonstrates the application of this method to a terminal, and the main steps include:

[0107] The first step is for the terminal to obtain the task processing information from the financial system; then, the processing information is decomposed to obtain the sub-processing information of the task.

[0108] The second step is for the terminal to obtain the job definition information of the sub-processing information; from multiple task processing terminals, the task processing terminal corresponding to the job definition information is selected as the task processing terminal corresponding to the sub-processing information.

[0109] The third step is for the terminal to obtain the processing process of the corresponding sub-processing information from the task processing end; obtain the pre-trained processing process identification model; input the processing process into the pre-trained processing process identification model to obtain the identification result of the processing process; and confirm that the processing process has encountered a processing abnormality if the identification result indicates an anomaly.

[0110] Fourth, when a processing exception occurs in the processing process, the terminal determines the job definition information corresponding to the processing process that has encountered the exception, and uses it as the target job definition information; from multiple task processing terminals, it determines the task processing terminal corresponding to the target job definition information, and uses it as the target task processing terminal.

[0111] Fifth, when the processing process indicates successful completion, the terminal identifies the task processing end corresponding to the processing process indicating successful completion as a normal task processing end; and confirms the sub-processing information corresponding to the normal task processing end as normal sub-processing information.

[0112] The sixth step is for the terminal to obtain the address information and debugging port information of the target task processing terminal; and to debug the target task processing terminal using the sub-processing information, address information and debugging port information corresponding to the target task processing terminal stored locally.

[0113] The technical solution provided in this embodiment obtains sub-processing information of tasks in a financial system, identifies the task processing end corresponding to the sub-processing information, stores the sub-processing information, and determines the corresponding task processing end that processes the sub-processing information; obtains the processing progress of the task processing end for the corresponding sub-processing information, thereby determining the processing status of the task processing end in processing the sub-processing information; in the event of a processing anomaly, identifies the task processing end corresponding to the processing process with the anomaly as the target task processing end, thereby determining the task processing end corresponding to the abnormal sub-processing information; and uses the locally stored sub-processing information corresponding to the target task processing end to debug the target task processing end, thereby debugging the abnormal sub-processing information of the target task processing end, which helps to improve the efficiency and accuracy of debugging.

[0114] The following application example illustrates the remote debugging method provided in this application. This example demonstrates the application of this method to a terminal (which can also be a server or system). Figure 5 As shown, the main steps include:

[0115] The first step, the preparation phase, involves the terminal publishing the job's task code to the public debugging machine and deploying the job fragment code using the CD (Continuous Delivery) tool; saving the association between the job definition and the job code; and adding JVM debugging parameters to the startup parameters of each executor (task processing end).

[0116] The terminal can be a standardized, convenient terminal that supports remote debugging of distributed jobs. Java (computer programming language) remote debugging refers to debugging a running Java application on a remote Java Virtual Machine (JVM), its implementation relying on the JVM remote debugging protocol. A distributed job can refer to a task or workflow running in a distributed computing environment. JVM debugging parameters can refer to a set of parameters for the Java Virtual Machine (JVM) used to enable debugging functionality at runtime, including setting ports and enabling remote debugging. A common debugging machine can refer to a dedicated device or machine used for joint debugging, which can be used to store and distribute job task code. CD tools can refer to Continuous Delivery tools used for automating the deployment, testing, and release of software applications.

[0117] The preparation phase primarily involves two devices: a debugging machine and a CD tool. The debugging machine serves as the platform for remote debugging. It needs to publish the job's task code and deploy the job's code segments. Furthermore, the debugging machine requires the installation of remote debugging tools to facilitate direct remote debugging during the problem analysis phase. Inputs: Job code, remote debugging tools. The CD tool, during the preparation phase, is responsible for deploying the job's code segments to each executor, ensuring that the executors have the corresponding code capabilities. Input: Job code.

[0118] Specifically, during the preparation phase, the terminal publishes the job's task code to the shared debugging machine and deploys the job code snippets using CD tools. Additionally, the association between the job definition and the job code needs to be saved. The specific process is as follows: Publish job code to the shared debugging machine: The complete job code is determined in the local development environment and then published to the shared debugging machine for subsequent debugging and problem analysis. Code publication can be achieved through control tools or file transfer protocols. Save the association between job definition and job code: Simultaneously with publishing the job code to the shared debugging machine, it needs to be associated with the job definition and saved to the database. This way, the job code can be retrieved through the job definition for subsequent debugging and problem analysis.

[0119] The second step, the running phase, involves the terminal saving the IP address and port of the executor after it comes online, as well as the job definition and the mapping relationship between the IP and port.

[0120] During the runtime phase, two main devices are involved: the executor and the database. The executor, as the primary carrier for executing jobs, needs to have JVM debugging parameters added to its startup parameters. After startup, it needs to save its own IP address and port, as well as the mapping relationship between the job definition and the IP / port, to accurately locate problems during the problem analysis phase. Input: JVM debugging parameters; Output: executor IP address, port (port information), job definition. The database stores the association between job definitions and job code, as well as information such as the executor's IP address and port. Input: executor IP address, port, job definition, job code snippets.

[0121] Specifically, the terminal stores the executor's IP address and port after it comes online: After the executor starts, it automatically registers its IP address and port information with the service registry. This information can be retrieved from the registry and saved to the database. The terminal also stores the mapping relationship between job definitions and IP / ports: After the executor comes online, a mapping relationship needs to be established between it and the job definition, and this mapping relationship needs to be saved to the database. This way, the executor's IP address and port information can be obtained through the job definition later for problem analysis.

[0122] The third step is the problem analysis phase. Upon receiving the monitoring alarm information, the terminal defines the alarm and IP information through the job definition, and conducts problem debugging and analysis directly through the joint debugging machine and based on the remote debugging tool.

[0123] The problem analysis phase primarily involves two devices: a monitoring and alarm system and a remote debugging tool. The monitoring and alarm system monitors the operation of jobs, and when a problem is detected, it sends the job definition, corresponding IP address, and port information to the problem analysis phase. Based on the job definition, alarm, and IP information, the system queries the database via the co-working machine to retrieve the job code snippet, which is then processed by the remote debugging tool. Output: the executor's IP address, port, and job definition. The remote debugging tool directly connects to the executor's JVM debugging port for problem debugging and analysis. Input: the executor's IP address, port, and job code.

[0124] Specifically, the terminal receives monitoring alarm information: when an anomaly occurs in a job, the monitoring system automatically sends an alarm message. The alarm message includes the job definition and IP information, which can be used to locate the problem. Problem debugging and analysis are then performed directly using remote debugging tools: by connecting to the JVM debugging port of the executor through the joint debugging machine, problem debugging and analysis of the job can be performed directly. Specifically, the following parameters are configured in advance in the JVM startup parameters on the executor side:

[0125] `transport=dt_socket, server=y, suspend=n, address=8000`; where `transport=dt_socket` indicates that remote debugging is performed using the socket transport protocol, `server=y` indicates that the JVM acts as the server, `suspend=n` indicates that the JVM does not need to be suspended before the remote debugging client connects to the JVM, and `address=8000` indicates that the JVM listens on debug port number 8000. During debugging, the debugging client establishes a TCP / IP (Transmission Control Protocol / Internet Protocol) connection with the remote JVM and communicates via the JDWP (Java Virtual Machine Remote Debugging Protocol) to achieve debugging functionality. The debug port is opened on the remote JVM's firewall, allowing only specific IP addresses or hostnames to connect. Since the job code has been published to a public debugging machine and associated with the job definition, code debugging and problem localization can be performed directly.

[0126] The technical solution provided in this application example improves debugging efficiency by using remote debugging methods, eliminating the need for local code reproduction, reducing debugging time and workload, and improving debugging efficiency; it also improves code readability by saving the job code to the database and calculating hash values, making the code more readable and facilitating code analysis; and it enhances problem localization efficiency by querying the database based on the executor ID (name or identifier) ​​to obtain job execution information and performing rapid problem analysis by connecting to the JVM debugging port of the executor machine.

[0127] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0128] Based on the same inventive concept, this application also provides a remote debugging device for implementing the remote debugging method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more remote debugging device embodiments provided below can be found in the limitations of the remote debugging method described above, and will not be repeated here.

[0129] In one embodiment, such as Figure 6 As shown, a remote debugging device is provided, the device 600 may include:

[0130] The information acquisition module 601 is used to acquire sub-processing information of tasks in the financial system and determine the task processing end corresponding to the sub-processing information.

[0131] The process acquisition module 602 is used to acquire the processing process of the corresponding sub-processing information of the task processing end.

[0132] The target identification module 603 is used to identify the task processing end corresponding to the processing process that has encountered a processing exception as the target task processing end when a processing exception occurs in the processing process.

[0133] The target debugging module 604 is used to debug the target task processing terminal by utilizing the sub-processing information corresponding to the target task processing terminal stored locally.

[0134] In one embodiment, the device 600 further includes: an address acquisition module, used to acquire address information and debug port information of the target task processing terminal; and a target debugging module 604, used to debug the target task processing terminal using locally stored sub-processing information, address information and debug port information corresponding to the target task processing terminal.

[0135] In one embodiment, the target identification module 603 is further configured to, in the event of a processing exception, determine the job definition information corresponding to the processing process that has encountered the processing exception, and use it as the target job definition information; and determine the task processing end corresponding to the target job definition information from multiple task processing ends, and use it as the target task processing end.

[0136] In one embodiment, the device 600 further includes: a model acquisition module, configured to acquire a pre-trained process identification model; input the process to the pre-trained process identification model to obtain the identification result of the process; and confirm that the process has encountered a processing abnormality if the identification result indicates an abnormality.

[0137] In one embodiment, the information acquisition module 601 is further configured to acquire job definition information of sub-processing information; and select the task processing terminal corresponding to the job definition information from multiple task processing terminals as the task processing terminal corresponding to the sub-processing information.

[0138] In one embodiment, the information acquisition module 601 is further configured to acquire task processing information in the financial system; and to decompose the processing information to obtain sub-processing information of the task.

[0139] In one embodiment, the device 600 further includes: an information confirmation module, configured to, when the processing process indicates successful completion, identify the task processing end corresponding to the processing process indicating successful completion as a normal task processing end; and confirm the sub-processing information corresponding to the normal task processing end as normal sub-processing information.

[0140] Each module in the aforementioned remote debugging device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0141] It should be noted that the remote debugging method and apparatus provided in this application can be used in the financial field where remote debugging is involved, or in any field other than the financial field where remote debugging is involved. The application field of the remote debugging method and apparatus provided in this application is not limited.

[0142] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a remote debugging method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0143] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0144] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0145] Obtain sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information;

[0146] Obtain the processing progress of the corresponding sub-processing information from the task processing end;

[0147] In the event of a processing exception, the task processing end corresponding to the processing process that has encountered the exception will be identified as the target task processing end.

[0148] The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally.

[0149] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0150] Obtain the address information and debug port information of the target task processing terminal;

[0151] The target task processing terminal is debugged using the sub-processing information, address information, and debug port information stored locally that correspond to the target task processing terminal.

[0152] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0153] In the event of a processing exception, the job definition information corresponding to the processing process that encountered the exception is determined and used as the target job definition information.

[0154] From multiple task processing terminals, the task processing terminal corresponding to the target job definition information is determined and used as the target task processing terminal.

[0155] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0156] Obtain a pre-trained process identification model;

[0157] The processing process is input into a pre-trained processing process recognition model to obtain the recognition result of the processing process;

[0158] If the identification result indicates an anomaly, it confirms that a processing error has occurred in the processing procedure.

[0159] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0160] Obtain job definition information for subprocessing information;

[0161] From multiple task processing terminals, select the task processing terminal that corresponds to the job definition information as the task processing terminal corresponding to the sub-processing information.

[0162] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0163] Obtain information on task processing within the financial system;

[0164] The processed information is decomposed to obtain the sub-processing information of the task.

[0165] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0166] If the processing process indicates successful completion, the task processing end corresponding to the processing process indicating successful completion will be identified as a normal task processing end.

[0167] Sub-processing information corresponding to the normal task processing end is identified as normal sub-processing information.

[0168] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0169] Obtain sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information;

[0170] Obtain the processing progress of the corresponding sub-processing information from the task processing end;

[0171] In the event of a processing exception, the task processing end corresponding to the processing process that has encountered the exception will be identified as the target task processing end.

[0172] The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally.

[0173] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0174] Obtain the address information and debug port information of the target task processing terminal;

[0175] The target task processing terminal is debugged using the sub-processing information, address information, and debug port information stored locally that correspond to the target task processing terminal.

[0176] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0177] In the event of a processing exception, the job definition information corresponding to the processing process that encountered the exception is determined and used as the target job definition information.

[0178] From multiple task processing terminals, the task processing terminal corresponding to the target job definition information is determined and used as the target task processing terminal.

[0179] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0180] Obtain a pre-trained process identification model;

[0181] The processing process is input into a pre-trained processing process recognition model to obtain the recognition result of the processing process;

[0182] If the identification result indicates an anomaly, it confirms that a processing error has occurred in the processing procedure.

[0183] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0184] Obtain job definition information for subprocessing information;

[0185] From multiple task processing terminals, select the task processing terminal that corresponds to the job definition information as the task processing terminal corresponding to the sub-processing information.

[0186] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0187] Obtain information on task processing within the financial system;

[0188] The processed information is decomposed to obtain the sub-processing information of the task.

[0189] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0190] If the processing process indicates successful completion, the task processing end corresponding to the processing process indicating successful completion will be identified as a normal task processing end.

[0191] Sub-processing information corresponding to the normal task processing end is identified as normal sub-processing information.

[0192] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0193] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0194] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0195] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A remote debugging method, characterized in that, The method includes: Obtain sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information; Obtain the processing progress of the task processing terminal for the corresponding sub-processing information; In the event of a processing exception in the processing process, the task processing end corresponding to the processing process that has encountered the exception will be identified as the target task processing end. The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally.

2. The method according to claim 1, characterized in that, Before debugging the target task processing terminal using the locally stored sub-processing information corresponding to the target task processing terminal, the process further includes: Obtain the address information and debug port information of the target task processing terminal; The step of debugging the target task processing terminal using locally stored sub-processing information corresponding to the target task processing terminal includes: The target task processing terminal is debugged using the sub-processing information corresponding to the target task processing terminal stored locally, the address information, and the debug port information.

3. The method according to claim 1, characterized in that, In the event of a processing exception in the processing process, the task processing terminal corresponding to the processing process that experienced the exception will be identified as the target task processing terminal, including: In the event of a processing exception, the job definition information corresponding to the processing process that experienced the exception is determined and used as the target job definition information. From multiple task processing terminals, the task processing terminal corresponding to the target job definition information is determined as the target task processing terminal.

4. The method according to claim 1, characterized in that, In the event of a processing exception, before identifying the task processing end corresponding to the processing process experiencing the exception as the target task processing end, the method further includes: Obtain a pre-trained process identification model; The processing process is input into the pre-trained processing process recognition model to obtain the recognition result of the processing process; If the identification result indicates an anomaly, it is confirmed that the processing process has encountered a processing error.

5. The method according to claim 1, characterized in that, The process of determining the task processing end corresponding to the sub-processing information includes: The job definition information for obtaining the sub-processing information; From multiple task processing terminals, select the task processing terminal corresponding to the job definition information as the task processing terminal corresponding to the sub-processing information.

6. The method according to any one of claims 1 to 5, characterized in that, The acquisition of sub-processing information for tasks in the financial system includes: Obtain information on task processing within the financial system; The processing information is decomposed to obtain the sub-processing information of the task.

7. The method according to claim 6, characterized in that, After obtaining the processing progress of the corresponding sub-processing information from the task processing terminal, the process further includes: When the processing process indicates successful completion, the task processing end corresponding to the processing process indicating successful completion will be identified as a normal task processing end. The sub-processing information corresponding to the normal task processing terminal is confirmed as normal sub-processing information.

8. A remote debugging device, characterized in that, The device includes: The information acquisition module is used to acquire sub-processing information of tasks in the financial system and determine the task processing terminal corresponding to the sub-processing information. The process acquisition module is used to acquire the processing process of the task processing terminal for the corresponding sub-processing information; The target identification module is used to identify the task processing end corresponding to the processing process that has encountered a processing abnormality as the target task processing end when the processing process encounters a processing abnormality. The target debugging module is used to debug the target task processing terminal by utilizing the sub-processing information corresponding to the target task processing terminal stored locally.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

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

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Front-end development exception handling method, apparatus, computer device, and storage medium

    CN109408320A

  • Page test method, apparatus and device, and storage medium

    CN112241356A