Online single-step debugging method and system for big data calculation
By providing online single-step debugging methods and systems in big data calculations, the problems of inconvenient single-step debugging and insufficient result display in big data calculations are solved, and efficient debugging and code quality improvement are achieved.
Patent Information
- Application Number
- CN202411387886.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-10-08
AI Technical Summary
The prior art is not convenient for single-step debugging in big data computing, and cannot effectively display the debugging results, resulting in low debugging efficiency.
Provide a big data computing online single -step debugging method and system. The single -step debugging interface is displayed by responding to the single -step debugging instructions, supporting single -step execution, program modification and data modification, which can save and display the debugging results.
It realizes convenient single-step debugging and result display in big data computing, quickly locates and solves code problems, and improves the debugging efficiency of big data computing.
Smart Images

Figure CN119336616A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of software debugging, and more specifically, to an online single-step debugging method and system for big data computing. Background Art
[0002] In the process of big data computing, due to the huge amount of data and complex calculations, code logic errors or calculation results that do not meet expectations often occur. In the process of big data computing debugging, traditional debugging methods cannot efficiently display the results of big data debugging, which leads to low debugging efficiency of big data computing. Therefore, how to improve the debugging efficiency of big data computing and the code quality of big data computing has become a topic of research value.
[0003] For example, patent CN113641572B (application number: 202110750626.4) provides a debugging method for massive big data computing development based on SQL, which includes obtaining the original SQL statement and debugging information for calculating the index data; wherein the debugging information includes whether debugging is required or not; judging whether the original SQL statement obtained needs debugging according to the debugging information; if so, transforming the original SQL statement obtained to generate debugging SQL and other steps. The present invention supports the formal SQL statement and the debugging SQL to calculate the index data at the same time. The data of the two methods are written into different landing libraries, so that the index data do not interfere with each other, and the SQL calculation index is easier to smoothly transition and upgrade, avoiding the interference of dirty data generated by the data user during the upgrade process. The method in patent CN113641572B can debug SQL calculations in massive big data, but it is not convenient for single-step debugging in big data calculations, and the results of big data debugging cannot be displayed, and the debugging efficiency of big data calculations is low. Summary of the invention
[0004] The purpose of this application is to provide an online single-step debugging method and system for big data computing, which solves the technical problems that it is inconvenient to perform single-step debugging in big data computing and it is impossible to display the results of big data debugging, and achieves the technical effect of facilitating single-step debugging in big data computing and being able to display the results of big data debugging.
[0005] An online single-step debugging method and system for big data computing provided by an embodiment of the present application, the method comprising: displaying a single-step debugging interface in response to a single-step debugging instruction; wherein the single-step debugging instruction includes a single-step debugging breakpoint preset by a user or a single-step debugging instruction issued by a user in real time; in the single-step debugging interface, in response to a single-step execution instruction, outputting a single-step execution result corresponding to the single-step execution instruction; or in the single-step debugging interface, in response to a program modification instruction, modifying the program code; or in the single-step debugging interface, in response to a data modification instruction, modifying the program running data.
[0006] In a possible implementation, the method further includes: in the single-step debugging interface, in response to a result saving instruction, saving the single-step execution result; or in response to an exit debugging instruction, closing the single-step debugging interface to exit debugging.
[0007] In another possible implementation, in response to a single-step debugging instruction, a single-step debugging interface is displayed, including: obtaining the location information where the target program is running, and determining the single-step debugging instruction corresponding to the location information based on the correspondence between the location information and the single-step debugging instruction; wherein the correspondence between the target program, the single-step debugging instruction, the location information and the single-step debugging instruction is stored on the main computing machine; the main computing machine triggers the single-step debugging function, the main computing machine sends the single-step debugging instruction to the debugging machine, and displays the single-step debugging interface on the debugging machine; in the single-step debugging interface, in response to the single-step execution instruction, the single-step execution result corresponding to the single-step execution instruction is output, including: the main computing machine executes the single-step execution instruction, obtains the single-step execution result corresponding to the single-step execution instruction, and sends the single-step execution result to the debugging machine, and the debugging machine outputs the single-step execution result corresponding to the single-step execution instruction in the single-step debugging interface.
[0008] In another possible implementation, in response to a single-step debugging instruction, displaying a single-step debugging interface also includes: obtaining the computer identification on which the target program is running and the location information to which the target program is running, sending the computer identification and the location information to the debugging machine, the debugging machine determining the single-step debugging instruction corresponding to the computer identification and the location information based on the correspondence between the computer identification, the location information and the single-step debugging instruction; wherein the target program is running on a main computing machine, the correspondence between the computer identification, the location information and the single-step debugging instruction, and the single-step debugging instruction are stored on the debugging machine; the debugging machine sends the single-step debugging instruction to the main computing machine corresponding to the computer identification, the main computing machine corresponding to the computer identification triggers the single-step debugging function, and displays the single-step debugging interface on the debugging machine.
[0009] In another possible implementation, the method also includes: obtaining a calculation amount identifier and a data amount identifier corresponding to the single-step debugging instruction; wherein the calculation amount identifier and the data amount identifier corresponding to the single-step debugging instruction are preset; when the calculation amount corresponding to the calculation amount identifier is greater than the preset calculation amount or the data amount corresponding to the data amount identifier is greater than the preset data amount, the main computing machine triggers the single-step debugging function; when the calculation amount corresponding to the calculation amount identifier is less than or equal to the preset calculation amount and the data amount corresponding to the data amount identifier is less than or equal to the preset data amount, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the debugging machine, and the single-step debugging function is triggered on the debugging machine.
[0010] In another possible implementation, when there are multiple debugging machines, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the debugging machine, and the single-step debugging function is triggered on the debugging machine, including: determining the system resource evaluation value of each debugging machine according to the remaining storage space and remaining computing power of each debugging machine; determining a target debugging machine with the largest system resource evaluation value among the multiple debugging machines, transmitting the debugging code and data corresponding to the single-step debugging instruction to the target debugging machine, and triggering the single-step debugging function on the target debugging machine.
[0011] In another possible implementation, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the target debugging machine, and the single-step debugging function is triggered on the target debugging machine, including: the target debugging machine enters a network restriction mode and a transaction restriction mode, and in the network restriction mode, the network usage of other processes except the process transmitting the debugging code and data corresponding to the single-step debugging instruction is restricted, and the system computing power usage of other processes except the process debugging the debugging code and data corresponding to the single-step debugging instruction is restricted.
[0012] An embodiment of the present application also provides an online single-step debugging system for big data computing, including a unit for executing the method described above.
[0013] An embodiment of the present application also provides an online single-step debugging system for big data computing, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method described above when executing the computer program.
[0014] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0015] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the method described above when executed by a processor.
[0016] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0017] The embodiment of the present application provides an online single-step debugging method for big data computing, and the method includes: in response to a single-step debugging instruction, displaying a single-step debugging interface; wherein the single-step debugging instruction includes a single-step debugging breakpoint preset by the user or a single-step debugging instruction issued by the user in real time; in the single-step debugging interface, in response to the single-step execution instruction, outputting the single-step execution result corresponding to the single-step execution instruction; or in the single-step debugging interface, in response to the program modification instruction, modifying the program code; or in the single-step debugging interface, in response to the data modification instruction, modifying the program running data. The method in the embodiment of the present application can perform single-step debugging on the big data computing process, can gradually execute the code and modify the code and data in the big data computing, so as to quickly locate and solve the code problem, and improve the debugging efficiency of the big data computing. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 A flowchart of an online single-step debugging method for big data computing provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of another online single-step debugging method for big data computing provided in an embodiment of the present application;
[0021] Figure 3 A flowchart of another online single-step debugging method for big data computing provided in an embodiment of the present application;
[0022] Figure 4 A logical schematic diagram of an online single-step debugging system for big data computing provided in an embodiment of the present application;
[0023] Figure 5 A physical schematic diagram of an online single-step debugging system for big data computing provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0025] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0026] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0027] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0028] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0029] The existing debugging methods for big data computing are not convenient for single-step debugging in big data computing, and the results of big data debugging cannot be displayed, resulting in low debugging efficiency for big data computing.
[0030] Based on the above reasons, the embodiment of the present application provides an online single-step debugging method for big data computing, and the method includes: in response to a single-step debugging instruction, displaying a single-step debugging interface; wherein the single-step debugging instruction includes a single-step debugging breakpoint preset by the user or a single-step debugging instruction issued by the user in real time; in the single-step debugging interface, in response to the single-step execution instruction, outputting the single-step execution result corresponding to the single-step execution instruction; or in the single-step debugging interface, in response to the program modification instruction, modifying the program code; or in the single-step debugging interface, in response to the data modification instruction, modifying the program running data. The method in the embodiment of the present application can perform single-step debugging on the big data computing process, can gradually execute the code and modify the code and data in the big data computing, so as to quickly locate and solve the code problem, and improve the debugging efficiency of the big data computing.
[0031] In some scenarios, an online single-step debugging method for big data computing of an embodiment of the present application can be applied to the debugging of big data computing, and can be applied to big data computing executed by one computer or big data computing executed by multiple computers, and can improve the debugging efficiency of big data computing.
[0032] The following is a specific example of an online single-step debugging method for big data computing provided by an embodiment of the present application.
[0033] Figure 1 A flowchart of an online single-step debugging method for big data computing provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes S110 to S120, and S110 to S120 are described in detail below.
[0034] S110: In response to a single-step debugging instruction, display a single-step debugging interface, wherein the single-step debugging instruction includes a single-step debugging breakpoint preset by a user or a single-step debugging instruction issued by a user in real time.
[0035] In the process of big data calculation, in order to debug the big data calculation process, a single-step debugging interface can be displayed on the computer in response to a single-step debugging instruction, and the single-step debugging interface is used to issue a debugging instruction corresponding to the single-step debugging.
[0036] When the user issues a single-step debugging instruction through the single-step debugging interface, the single-step debugging instruction includes the single-step debugging breakpoint preset by the user or the single-step debugging instruction issued by the user in real time, and debugging can be performed through the single-step debugging breakpoint or the single-step debugging instruction for single-step execution.
[0037] S120: In the single-step debugging interface, in response to the single-step execution instruction, output the single-step execution result corresponding to the single-step execution instruction. Or in the single-step debugging interface, in response to the program modification instruction, modify the program code. Or in the single-step debugging interface, in response to the data modification instruction, modify the program running data.
[0038] In the single-step debugging interface, in response to the single-step execution instruction, the single-step execution result corresponding to the single-step execution instruction can be output, so that the user can analyze the data calculation process through the single-step execution result.
[0039] In the single-step debugging interface, the program code can be modified in response to a program modification instruction, so that the user can directly modify the code.
[0040] In the single-step debugging interface, the program running data can be modified in response to data modification instructions, so that the user can modify the data of the big data calculation process and then control the subsequent calculation process of the big data calculation process.
[0041] The beneficial effect brought about by the above implementation method is that it can perform single-step debugging on the big data computing process, and can gradually execute code and modify code and data in big data computing, so as to quickly locate and solve code problems, thereby improving the debugging efficiency of big data computing.
[0042] In some implementations, the method further includes: in the single-step debugging interface, in response to a result saving instruction, saving the single-step execution result, or in response to an exit debugging instruction, closing the single-step debugging interface to exit debugging.
[0043] During the big data calculation process, it may be necessary to save the data to facilitate subsequent program analysis. Therefore, in the single-step debugging interface, you can also respond to the result save instruction to save the single-step execution results, and then store the intermediate result data of the big data calculation to facilitate subsequent program analysis.
[0044] After completing the big data calculation debugging, you can respond to the exit debugging instruction, close the single-step debugging interface and exit the debugging, and then continue to complete the big data calculation process. By debugging and correcting the big data calculation process, you can continue to execute the program, which can optimize the big data calculation process and improve the efficiency of the big data calculation process.
[0045] The beneficial effect brought about by the above-mentioned implementation method is that the intermediate data can be saved for analysis, and after debugging is completed, the program can be continued to be executed after the big data calculation process is corrected through debugging, which can optimize the big data calculation process and improve the efficiency of the big data calculation process.
[0046] In some implementations, Figure 2 A flow chart of another online single-step debugging method for big data computing provided in an embodiment of the present application is shown as follows: Figure 2 As shown, in the above S110, in response to the single-step debugging instruction, a single-step debugging interface is displayed, including S111 to S112, and S111 to S112 are specifically described below.
[0047] S111, obtaining the location information of the target program, and determining the single-step debugging instruction corresponding to the location information according to the correspondence between the location information and the single-step debugging instruction. The correspondence between the target program, the single-step debugging instruction, the location information and the single-step debugging instruction is stored on the main computing machine.
[0048] In big data computing, big data computing often requires larger computing resources, so big data computing is generally performed on a main computing machine with stronger computing power, and the main computing machine that performs big data computing often configures the operating system and operating environment according to the environment required to perform big data computing.
[0049] When debugging a target program running on big data computing, the location information of the target program can be obtained. The location information represents the line at which the target program runs. Then, the single-step debugging instruction corresponding to the location information can be determined based on the correspondence between the location information and the single-step debugging instruction.
[0050] Exemplarily, when the target program runs to line 1505, the single-step debugging instruction corresponding to line 1505 can be obtained based on the correspondence between the position information and the single-step debugging instruction, and then single-step debugging can be performed according to the single-step debugging instruction corresponding to line 1505.
[0051] When the big data computing program is running, the target program, single-step debugging instructions, position information and the correspondence between the single-step debugging instructions can be stored on the main computing machine. The single-step debugging instructions can be searched on the main computing machine according to the correspondence between the position information and the single-step debugging instructions stored on the main computing machine, thereby realizing the unified running of the target program and the single-step debugging instructions on the main computing machine.
[0052] S112, the main computing machine triggers the single-step debugging function, the main computing machine sends the single-step debugging instruction to the debugging machine, and displays the single-step debugging interface on the debugging machine.
[0053] When debugging a program, the single-step debugging function can be triggered on the main computing machine. The main computing machine sends the single-step debugging instruction to the debugging machine, and displays the single-step debugging interface on the debugging machine, so that the single-step debugging interface can debug the big data computing program on the main computing machine on the debugging machine. This can avoid the impact of the single-step debugging interface running on the main computing machine on the calculation process of the target program on the main computing machine, and can also reduce the calculation burden on the main computing machine.
[0054] When performing single-step debugging, the environment configuration required by the debugging machine can be configured to an operating system and operating environment different from that of the main computing machine, so that the target program on the main computing machine can be debugged through different debugging machines.
[0055] In some implementations, in the above-mentioned S120, in the single-step debugging interface, in response to the single-step execution instruction, the single-step execution result corresponding to the single-step execution instruction is output, including: the main computing machine executes the single-step execution instruction, obtains the single-step execution result corresponding to the single-step execution instruction, and sends the single-step execution result to the debugging machine, and the debugging machine outputs the single-step execution result corresponding to the single-step execution instruction in the single-step debugging interface.
[0056] When debugging the target program, you can execute a single-step execution instruction on the main computing machine to obtain the single-step execution result corresponding to the single-step execution instruction, and send the single-step execution result to the debugging machine. The debugging machine outputs the single-step execution result corresponding to the single-step execution instruction in the single-step debugging interface to display the single-step execution result of the single-step debugging.
[0057] The beneficial effect brought about by the above-mentioned implementation method is that the single-step debugging interface can debug the big data calculation program on the main computing machine on the debugging machine, which can avoid the single-step debugging interface running on the main computing machine from affecting the calculation process of the target program on the main computing machine, and can also reduce the calculation burden on the main computing machine.
[0058] In some implementations, Figure 3 A flow chart of another online single-step debugging method for big data computing provided in an embodiment of the present application is shown as follows: Figure 3 As shown, in the above S110, in response to the single-step debugging instruction, the single-step debugging interface is displayed, and also includes S113 to S114, and S113 to S114 are specifically described below.
[0059] S113, obtaining the computer identification of the target program and the location information where the target program is running, and sending the computer identification and location information to the debugging machine, and the debugging machine determines the single-step debugging instruction corresponding to the computer identification and location information according to the correspondence between the computer identification, location information and single-step debugging instructions. Wherein, the target program is running on the main computing machine, and the correspondence between the computer identification, location information and single-step debugging instructions, and the single-step debugging instructions are stored on the debugging machine.
[0060] When performing big data calculations through multiple main computing machines, in order to accurately locate the main computing machine at the debugging position and perform debugging, the computer identification on which the target program is running and the location information to which the target program is running can be obtained when debugging the big data calculation process. The computer identification represents the information of the main computing machine that runs the target program. The main computing machine can also send the computer identification and location information to the debugging machine. The debugging machine determines the single-step debugging instruction corresponding to the computer identification and location information based on the correspondence between the computer identification, location information and single-step debugging instructions, and then can debug the target program according to the single-step debugging instructions.
[0061] When the target program is running, the target program runs on the main computing machine, and the correspondence between the computer identification, location information and single-step debugging instructions, and the single-step debugging instructions are stored on the debugging machine, thereby saving storage space on the main computing machine and saving the computing burden of the main computing machine.
[0062] S114, the debugging machine sends the single-step debugging instruction to the main computing machine corresponding to the computer identifier, and the main computing machine corresponding to the computer identifier triggers the single-step debugging function and displays the single-step debugging interface on the debugging machine.
[0063] When debugging, the single-step debugging instruction can be sent to the main computing machine corresponding to the computer identifier through the debugging machine. The main computing machine corresponding to the computer identifier triggers the single-step debugging function, so that the main computing machine can debug the target program and display the single-step debugging interface on the debugging machine. Then, subsequent debugging can be completed through S120.
[0064] When the single-step debugging interface is displayed on the debugging machine,
[0065] The beneficial effect brought about by the above-mentioned implementation method is that the target program runs on the main computing machine, the correspondence between the computer identification, location information and single-step debugging instructions, and the single-step debugging instructions are stored on the debugging machine, thereby saving storage space on the main computing machine and saving the computing burden of the main computing machine.
[0066] The beneficial effect brought about by the above-mentioned implementation method is that it can accurately locate the debugging requirements of the code when multiple main computing machines perform big data calculations.
[0067] In some implementations, the above method further includes S210, S211 or S212, and S210, S211 or S212 are described in detail below.
[0068] S210, obtaining a calculation amount identifier and a data amount identifier corresponding to the single-step debugging instruction, wherein the calculation amount identifier and the data amount identifier corresponding to the single-step debugging instruction are preset.
[0069] When debugging the target program, after obtaining the single-step debugging instruction, the calculation amount identifier and data amount identifier corresponding to the single-step debugging instruction can be obtained, and then it can be determined whether the target program is running on the main computing machine or the debugging machine based on the calculation amount identifier and the data amount identifier.
[0070] Exemplarily, the calculation amount identifier and the data amount identifier corresponding to the single-step debugging instruction are preset when encoding the target program.
[0071] S211. When the amount of calculation corresponding to the amount of calculation identifier is greater than the preset amount of calculation or the amount of data corresponding to the amount of data identifier is greater than the preset amount of data, the main computing machine triggers the single-step debugging function.
[0072] Before executing debugging, when the amount of calculation corresponding to the amount of calculation identifier is greater than the preset amount of calculation, or the amount of data corresponding to the data amount identifier is greater than the preset data amount, it means that the amount of calculation or the amount of data required for the debugging task corresponding to the single-step debugging instruction is too large. Sending the excessive amount of calculation or the amount of data required for the debugging task to the debugging machine for execution will cause the calculation process to be unstable, and may also cause the data transmission process to consume a large amount of bandwidth resources and storage space resources. At this time, the single-step debugging function can be triggered on the main computing machine to improve debugging efficiency.
[0073] S212. When the calculation amount corresponding to the calculation amount identifier is less than or equal to the preset calculation amount and the data amount corresponding to the data amount identifier is less than or equal to the preset data amount, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the debugging machine, and the single-step debugging function is triggered on the debugging machine.
[0074] Before executing debugging, when the calculation amount corresponding to the calculation amount identifier is less than or equal to the preset calculation amount, or the data amount corresponding to the data amount identifier is less than or equal to the preset data amount, it means that the calculation amount and data amount required for the debugging task corresponding to the single-step debugging instruction are relatively small. The debugging code and data corresponding to the single-step debugging instruction can be transmitted to the debugging machine, and the single-step debugging function can be triggered on the debugging machine to realize the separation of debugging and operation and improve the stability of the target program operation on the main computing machine.
[0075] The beneficial effect brought about by the above-mentioned implementation method is that, based on the amount of calculation and the amount of data, it is judged whether the debugging process is run on the main computing machine or the debugging machine. When the amount of calculation corresponding to the amount of calculation identifier is greater than the preset amount of calculation, or when the amount of data corresponding to the data amount identifier is greater than the preset amount of data, the single-step debugging function is triggered on the main computing machine to improve the debugging efficiency; when the amount of calculation and the amount of data required for the debugging task corresponding to the single-step debugging instruction are relatively small, the separation of debugging and running can be achieved, thereby improving the stability of the target program running on the main computing machine.
[0076] In some implementations, when there are multiple debugging machines, in the above S221, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the debugging machine, and the single-step debugging function is triggered on the debugging machine, including S221a to S221b. S221a to S221b are specifically described below.
[0077] S221a. Determine the system resource evaluation value of each debugging machine according to the remaining storage space and remaining computing power of each debugging machine.
[0078] When multiple debugging machines are running, the system resource evaluation value of each debugging machine can be determined according to the remaining storage space and remaining computing power of each debugging machine, and then the debugging process can be performed on which debugging machine according to the system resource evaluation value of each debugging machine.
[0079] Exemplarily, when determining the system resource evaluation value of each debugging machine based on the remaining storage space and remaining computing power of each debugging machine, the evaluation value of the remaining storage space and the evaluation value of the remaining computing power can be added to obtain the system resource evaluation value of each debugging machine.
[0080] S221b, determining a target debugging machine having the largest system resource evaluation value among the multiple debugging machines, transmitting the debugging code and data corresponding to the single-step debugging instruction to the target debugging machine, and triggering the single-step debugging function on the target debugging machine.
[0081] After obtaining the system resource evaluation value of each debugging machine, the target debugging machine with the largest system resource evaluation value among multiple debugging machines can be determined, and the debugging code and data corresponding to the single-step debugging instruction can be further transmitted to the target debugging machine, and the single-step debugging function can be triggered on the target debugging machine to ensure smooth operation of the debugging program when debugging the target program.
[0082] The beneficial effect brought by the above implementation is that the debugging code and data corresponding to the single-step debugging instruction are transmitted to the target debugging machine with the largest system resource evaluation value for execution, so as to ensure smooth operation of the debugging program when debugging the target program.
[0083] In some implementations, in the above S221b, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the target debugging machine, and the single-step debugging function is triggered on the target debugging machine, including: the target debugging machine enters a network restriction mode and a transaction restriction mode, and in the network restriction mode, the network usage of other processes except the process transmitting the debugging code and data corresponding to the single-step debugging instruction is restricted, and the system computing power usage of other processes except the process debugging the debugging code and data corresponding to the single-step debugging instruction is restricted.
[0084] When the target debugging machine is debugging, the target debugging machine can be controlled to enter a network restriction mode and a transaction restriction mode, thereby improving the stability of the target debugging machine when debugging a program.
[0085] In the network restriction mode, the network usage of other processes except the process transmitting the debugging code and data corresponding to the single-step debugging instruction is limited, and the system computing power usage of other processes except the process debugging the debugging code and data corresponding to the single-step debugging instruction is limited, so that the target debugging machine can be in the best state to complete the debugging of big data computing.
[0086] Exemplarily, when limiting the system computing power usage of other processes, the system computing power usage of other processes can be limited to within 20% of the maximum computing power of the system.
[0087] The beneficial effect brought by the above implementation is that the target debugging machine is controlled to enter the network restriction mode and the transaction restriction mode, which can improve the stability of the target debugging machine when performing program debugging.
[0088] An embodiment of the present application also provides an online single-step debugging system for big data computing, including a unit for executing the method described above.
[0089] Figure 4 A schematic diagram of the logical structure of an online single-step debugging system for big data computing provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the system 1 of this embodiment includes a processing unit 11, a storage unit 12 and a transceiver unit 13. The processing unit 11 is used to process data, the storage unit 12 is used to store data, and the transceiver unit 13 is used to send and receive data. The processing unit 11, the storage unit 12 and the transceiver unit 13 cooperate with each other to implement the above method. The beneficial effects brought by the embodiment of the present application have been described in the above method and will not be repeated here.
[0090] An embodiment of the present application also provides an online single-step debugging system for big data computing, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method described above when executing the computer program.
[0091] Figure 5 A schematic diagram of the physical structure of an online single-step debugging system for big data computing provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the system 2 of this embodiment includes: at least one processor 20 ( Figure 5 Only one processor 20 is shown in the figure), a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20. When the processor 20 executes the computer program 22, the steps in any of the above-mentioned method embodiments are implemented. The beneficial effects brought about by the embodiments of the present application have been described in the above-mentioned methods and will not be repeated here.
[0092] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0093] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0094] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0095] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0096] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0097] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0098] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0099] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0100] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0101] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An online single-step debugging method for big data computing, characterized in that: The method comprises: In response to a single-step debugging instruction, a single-step debugging interface is displayed; wherein the single-step debugging instruction includes a single-step debugging breakpoint preset by a user or a single-step debugging instruction issued by a user in real time; In the single-step debugging interface, in response to the single-step execution instruction, the single-step execution result corresponding to the single-step execution instruction is output; or in the single-step debugging interface, in response to the program modification instruction, the program code is modified; or in the single-step debugging interface, in response to the data modification instruction, the program running data is modified.
2. The method according to claim 1, characterized in that The method further comprises: In the single-step debugging interface, in response to a result saving instruction, the single-step execution result is saved; or in response to an exit debugging instruction, the single-step debugging interface is closed to exit debugging.
3. The method according to claim 2, characterized in that In response to the single-step debugging instruction, a single-step debugging interface is displayed, including: Obtaining the location information of the target program running, and determining the single-step debugging instruction corresponding to the location information according to the correspondence between the location information and the single-step debugging instruction; wherein the correspondence between the target program, the single-step debugging instruction, the location information and the single-step debugging instruction is stored on the main computing machine; The main computing machine triggers the single-step debugging function. The main computing machine sends the single-step debugging command to the debugging machine and displays the single-step debugging interface on the debugging machine. In the single-step debugging interface, in response to the single-step execution instruction, the single-step execution result corresponding to the single-step execution instruction is output, including: The main computing machine executes the single-step execution instruction, obtains the single-step execution result corresponding to the single-step execution instruction, and sends the single-step execution result to the debugging machine. The debugging machine outputs the single-step execution result corresponding to the single-step execution instruction in the single-step debugging interface.
4. The method according to claim 3, characterized in that In response to the single-step debugging instruction, displaying the single-step debugging interface also includes: Obtaining the computer identification of the target program and the location information where the target program is running, and sending the computer identification and the location information to the debugging machine, wherein the debugging machine determines the single-step debugging instruction corresponding to the computer identification and the location information according to the correspondence between the computer identification, the location information and the single-step debugging instruction; wherein the target program is running on the main computing machine, and the correspondence between the computer identification, the location information and the single-step debugging instruction, and the single-step debugging instruction are stored on the debugging machine; The debugging machine sends the single-step debugging instruction to the main computing machine corresponding to the computer identifier. The main computing machine corresponding to the computer identifier triggers the single-step debugging function and displays the single-step debugging interface on the debugging machine.
5. The method according to claim 4, characterized in that The method further comprises: Obtaining a calculation amount identifier and a data amount identifier corresponding to a single-step debugging instruction; wherein the calculation amount identifier and the data amount identifier corresponding to the single-step debugging instruction are preset; When the calculation amount corresponding to the calculation amount identifier is greater than the preset calculation amount or the data amount corresponding to the data amount identifier is greater than the preset data amount, the main computing machine triggers the single-step debugging function; when the calculation amount corresponding to the calculation amount identifier is less than or equal to the preset calculation amount and the data amount corresponding to the data amount identifier is less than or equal to the preset data amount, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the debugging machine, and the single-step debugging function is triggered on the debugging machine.
6. The method according to claim 5, characterized in that When there are multiple debugging machines, the debugging code and data corresponding to the single-step debugging instruction are transmitted to the debugging machine, and the single-step debugging function is triggered on the debugging machine, including: Determine the system resource evaluation value of each debugging machine according to the remaining storage space and remaining computing power of each debugging machine; A target debugging machine with the largest system resource evaluation value among multiple debugging machines is determined, debugging code and data corresponding to the single-step debugging instruction are transmitted to the target debugging machine, and a single-step debugging function is triggered on the target debugging machine.
7. An online single-step debugging system for big data computing, characterized in that: Comprising means for performing the method according to any one of claims 1 to 6.
8. An online single-step debugging system for big data computing, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, 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 6 are implemented.
Citation Information
Patent Citations
SQL-based mass big data calculation and development debugging method
CN113641572A
A debugging method for developing massive big data computing based on SQL
CN113641572B
System and method for achieving cross-process and cross-thread debugging in large-data environment
CN103678135A
Service flow debugging method and device
CN107590070A
Program debugging method, program debugging device, terminal equipment and storage medium
CN109800159A