Program exception capture method, device, equipment and readable storage medium
By setting an exception handler in the application program to directly detect and capture exception information, the problem of slow exception information capture in the virtual machine is solved and the efficiency of exception handling is improved.
Patent Information
- Application Number
- CN202110864373.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-07-29
AI Technical Summary
In the existing technology, virtual machines are slow and inefficient when capturing exception information, resulting in inefficient exception handling mechanisms.
Set N exception handlers in the application, clear the records and record the exception handling type. When an exception occurs, detect whether there is an exception handler of matching type, and obtain the exception information directly to avoid looking for the method component.
By adding an exception handler to the application to capture exception information in a timely manner, the exception information capture speed is significantly accelerated and the capture efficiency is improved.
Smart Images

Figure CN113568775B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer software technology, and in particular to a program exception capture method, device, equipment and readable storage medium. Background Art
[0002] At present, with the advancement of Internet technology, electronic devices are widely used, and more and more applications (Application, app) are used on electronic devices. Generally, when an exception occurs during the operation of an app or an app crashes, it is easy to cause the electronic device to not work properly. Usually, the app is closed and the exception or crash information is collected and classified to deal with it.
[0003] In the prior art, the exception handling mechanism of the virtual machine defines the exception-related information in the method component. When exception capture is required, the virtual machine searches the method component for matching related exception information, resulting in slow capture of exception information and low efficiency. Summary of the invention
[0004] The main purpose of the present invention is to provide a program exception capture method, device, equipment and readable storage medium, aiming to solve the problem of slow speed and low efficiency in capturing exception information in the prior art.
[0005] In a first aspect, the present invention provides a method for capturing program exceptions, comprising the following steps:
[0006] Set N exception handlers in the application, where N is a positive integer;
[0007] When an exception handler is detected during application operation, the record is cleared and then multiple exception handling types corresponding to the current exception handler are recorded.
[0008] When an exception message appears during the operation of the application, it is detected whether there is a target exception handling type that is the same as the type of the exception message in the current exception handler corresponding to the multiple exception handling types recorded;
[0009] If it exists, get the exception information captured by the current exception handler.
[0010] Optionally, after the step of generating abnormal information during the operation of the application, the method further includes:
[0011] Detecting whether the first caller of the application is the entry call layer of the application;
[0012] If it is the entry call layer of the application, the entry call layer determines whether the application continues to execute or terminates according to the severity of the type of exception information that appears in the application;
[0013] If it is not the entry call layer of the application, the step of detecting whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded when exception information occurs during the operation of the application is executed.
[0014] Optionally, after the step of detecting whether there is a target exception handling type having the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded, the method further includes:
[0015] If not, determining whether the application has a second calling program, wherein the second calling program is not an entry calling layer of the application;
[0016] If yes, the exception handler in the second calling program of the application is used to capture the exception information;
[0017] If not, the entry call layer determines whether the application continues to execute or terminates based on the severity of the type of exception information that appears in the application.
[0018] Optionally, if any, the step of using the exception handler in the second calling program of the application program to capture the exception information includes:
[0019] If the application has a second calling program, detecting whether there is a target exception handling type that is the same as the type of the exception information in the exception handlers corresponding to the multiple exception handling types recorded in the second calling program of the application;
[0020] If it exists, the exception information captured by the exception handler in the second calling program of the application program is obtained.
[0021] Optionally, after the step of obtaining the exception information captured by the current exception handler, the step further includes:
[0022] After obtaining the exception information captured by the current exception handler, the exception information processing flow is entered according to the exception program processing offset corresponding to the target exception handling type of the current exception handler.
[0023] In a second aspect, the present invention further provides a program exception capture device, the program exception capture device comprising:
[0024] Setting module: used to set N exception handlers in the application, where N is a positive integer;
[0025] Recording module: used to clear the record and then record multiple exception handling types corresponding to the current exception handler every time an exception handler is detected during the application running;
[0026] Detection module: used to detect whether there is a target exception handling type that is the same as the type of the exception information in the current exception handler corresponding to the multiple exception handling types recorded when the application program has exception information during operation;
[0027] Acquisition module: used to obtain the exception information captured by the current exception handler if it exists.
[0028] Optionally, the detection module is also used to:
[0029] Detecting whether the first caller of the application is the entry call layer of the application;
[0030] If it is the entry call layer of the application, the entry call layer determines whether the application continues to execute or terminates according to the severity of the type of exception information that appears in the application;
[0031] If it is not the entry call layer of the application, the step of detecting whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded when exception information occurs during the operation of the application is executed.
[0032] Optionally, the program exception capturing device further includes a judgment module, which is used to:
[0033] If not, determining whether the application has a second calling program, wherein the second calling program is not an entry calling layer of the application;
[0034] If yes, the exception handler in the second calling program of the application is used to capture the exception information;
[0035] If not, the entry call layer determines whether the application continues to execute or terminates based on the severity of the type of exception information that appears in the application.
[0036] In a third aspect, the present invention also provides a program exception capture device, which includes a processor, a memory, and a program exception capture program stored in the memory and executable by the processor, wherein when the program exception capture program is executed by the processor, the steps of the program exception capture method as described above are implemented.
[0037] In a fourth aspect, the present invention further provides a readable storage medium, on which a program exception capture program is stored, wherein when the program exception capture program is executed by a processor, the steps of the program exception capture method as described above are implemented.
[0038] In the present invention, N exception handlers are set in an application, wherein N is a positive integer; during the operation of the application, each time an exception handler is detected, the record is cleared and then multiple exception handling types corresponding to the current exception handler are recorded; when exception information appears in the operation of the application, it is detected whether there is a target exception handling type that is the same as the type of the exception information in the current exception handler corresponding to the multiple exception handling types recorded; if there is, the exception information captured by the current exception handler is obtained. Through the present invention, when it is necessary to capture an exception, it is no longer necessary to search for matching related exception information in the method component, but by adding an exception handler to the application, when exception information appears, the exception handler in the application captures the exception information in time, which speeds up the speed of capturing the exception information and improves the efficiency of capturing the exception information. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of the hardware structure of a program exception capture device involved in an embodiment of the present invention;
[0040] Figure 2 It is a flowchart of the first embodiment of the program exception capture method of the present invention;
[0041] Figure 3 It is a functional module diagram of the first embodiment of the program exception capture device of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] In a first aspect, an embodiment of the present invention provides a program exception capture device, which may be a device having a data processing function, such as a personal computer (PC), a notebook computer, or a server.
[0045] Reference Figure 1 , Figure 1The hardware structure diagram of the program exception capture device involved in the embodiment of the present invention. In the embodiment of the present invention, the program exception capture device may include a processor 1001 (e.g., a central processing unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a wireless fidelity WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM), or a stable memory (non-volatile memory), such as a disk storage, and the memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. Those skilled in the art will understand that Figure 1 The hardware structure shown in the figure does not constitute a limitation of the present invention, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0046] Continue to refer to Figure 1 , Figure 1 The memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a program exception capture program. The processor 1001 may call the program exception capture program stored in the memory 1005 and execute the program exception capture method provided in the embodiment of the present invention.
[0047] In a second aspect, an embodiment of the present invention provides a method for capturing program exceptions.
[0048] In one embodiment, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of the first embodiment of the program exception capture method of the present invention. Figure 2 As shown, the program exception capture method includes the following steps:
[0049] S10: Set N exception handlers in the application, where N is a positive integer;
[0050] In this embodiment, N exception handlers are set by adding N try statements in the application, wherein a try block includes a try statement and M catch clauses, and N and M are positive integers. It is easy to imagine that in this embodiment, the keywords try and catch are for reference only and are not limited here.
[0051] S20: When an exception handler is detected during the running of the application, the record is cleared and then multiple exception handling types corresponding to the current exception handler are recorded;
[0052] In this embodiment, when an exception handler is detected during the running of the application, that is, when a try statement is detected, the record is cleared, the jump bytecode is used to jump to the information of the try statement once, the information processing bytecode defined in the information of the try statement is executed once, the exception handler offset corresponding to the try statement is obtained once, and the exception handling type corresponding to the exception handler offset corresponding to the try statement is recorded once. It is easy to imagine that in this embodiment, the keywords try and catch are for reference only and are not limited here.
[0053] S30: When exception information appears during the operation of the application, it is detected whether there is a target exception handling type that is the same as the type of the exception information in the current exception handler corresponding to the multiple exception handling types recorded;
[0054] In this embodiment, when exception information appears during the operation of the application, if there are two exception handling types in the current exception handler and they are recorded, it is detected whether there is a target exception handling type that is the same as the type of the exception information in the current exception handler corresponding to the two recorded exception handling types.
[0055] For example, if there are two exception handling types A and B in the current exception handler, and they are recorded. If either the A exception handling type or the B exception handling type is the same as the type of the exception information, then there is a target exception handling type that is the same as the type of the exception information. If either the A exception handling type or the B exception handling type is different from the type of the exception information, then there is no target exception handling type that is the same as the type of the exception information. It is easy to imagine that in this embodiment, the number of exception handling types in the exception handler is for reference only and is not limited here.
[0056] S40: If it exists, obtain the exception information captured by the current exception handler.
[0057] In this embodiment, if there are two exception handling types A and B in the current exception handler and they are recorded, it is determined whether the high byte of the short value corresponding to the type of exception information is the same as the high byte of the short value corresponding to the two exception handling types A and B. If the high byte of the short value corresponding to the A exception handling type in the current exception handler is the same as the high byte of the short value corresponding to the type of exception information, and the high byte of the short value corresponding to the B exception handling type is different from the high byte of the short value corresponding to the type of exception information, then the A exception handling type is the target exception handling type, and there is a target exception handling type that is the same as the type of exception information in the current exception handler corresponding to the two recorded exception handling types, and the exception information captured by the current exception handler is obtained. If the high byte of the short value corresponding to the B exception handling type in the current exception handler is the same as the high byte of the short value corresponding to the type of the exception information, and the high byte of the short value corresponding to the A exception handling type is different from the high byte of the short value corresponding to the type of the exception information, then the B exception handling type is the target exception handling type, and the current exception handler corresponding to the two recorded exception handling types has a target exception handling type that is the same as the type of the exception information, and the exception information captured by the current exception handler is obtained. It is easy to think that in this embodiment, the number of exception handling types in the exception handler and the method for detecting the existence of the target exception handling type are for reference only and are not limited here.
[0058] In this embodiment, N exception handlers are set in the application, where N is a positive integer; when an exception handler is detected during the operation of the application, the record is cleared and then multiple exception handling types corresponding to the current exception handler are recorded; when exception information appears during the operation of the application, it is detected whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded; if so, the exception information captured by the current exception handler is obtained. Through this embodiment, when exception capture is required, it is no longer necessary to search for matching related exception information in the method component, but by adding an exception handler to the application, when exception information appears, the exception handler in the application captures the exception information in time, which speeds up the capture of exception information and improves the efficiency of capturing exception information.
[0059] Furthermore, in one embodiment, after the step of generating abnormal information during the operation of the application, the method further includes:
[0060] Detecting whether the first caller of the application is the entry call layer of the application;
[0061] If it is the entry call layer of the application, the entry call layer determines whether the application continues to execute or terminates according to the severity of the type of exception information that appears in the application;
[0062] If it is not the entry call layer of the application, the step of detecting whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded when exception information occurs during the operation of the application is executed.
[0063] In this embodiment, the entry call layer is a unified entry when running an application, such as the main entry in the C language. When exception information appears in the application, if the first caller of the application is the entry call layer of the application, the entry call layer processes the application to continue or terminate according to the severity of the type of the exception information appearing in the application, and no longer performs the step of detecting whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded when the exception information appears during operation. If the first caller of the application is not the entry call layer of the application, the step of detecting whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded when the exception information appears during operation is performed.
[0064] Furthermore, in one embodiment, after the step of detecting whether there is a target exception handling type having the same type as the exception information in the current exception handler corresponding to the plurality of exception handling types recorded, the method further includes:
[0065] If not, determining whether the application has a second calling program, wherein the second calling program is not an entry calling layer of the application;
[0066] If yes, the exception handler in the second calling program of the application is used to capture the exception information;
[0067] If not, the entry call layer determines whether the application continues to execute or terminates based on the severity of the type of exception information that appears in the application.
[0068] In this embodiment, if there are two exception handling types A and B in the current exception handler, and they are recorded. If the high byte of the short value corresponding to the A exception handling type or the B exception handling type is not the same as the high byte of the short value corresponding to the type of the exception information, then there is no target exception handling type that is the same as the type of the exception information. For example, if the short value corresponding to the type of the exception information is 0102, the short value corresponding to the A exception handling type is 0300, and the short value corresponding to the B exception handling type is 0400, then the high byte 01 of the short value corresponding to the type of the exception information is different from the high byte 03 of the short value corresponding to the A exception handling type, and is also different from the high byte 04 of the short value corresponding to the B exception handling type, then there is no target exception handling type that is the same as the type of the exception information in the current exception handler corresponding to the two recorded exception handling types, then it is determined whether the application has a second calling program, wherein the second calling program is not the entry calling layer of the application. If yes, the application is called by the second calling program, and the exception information is captured by the exception handler in the second calling program of the application according to the method of step S10 to step S40. If no, the entry calling layer determines whether the application continues to execute or terminates according to the severity of the type of exception information appearing in the application. It is easy to imagine that in this embodiment, the number of exception handling types in the exception handler and the method for detecting the absence of the target exception handling type are for reference only and are not limited here.
[0069] Further, in one embodiment, the step of capturing the exception information by using the exception handler in the second calling program of the application program if any comprises:
[0070] If the application has a second calling program, detecting whether there is a target exception handling type that is the same as the type of the exception information in the exception handlers corresponding to the multiple exception handling types recorded in the second calling program of the application;
[0071] If it exists, the exception information captured by the exception handler in the second calling program of the application program is obtained.
[0072] In this embodiment, if the application has a second calling program, then according to the method of step S30 and step S40, it is detected whether there is a target exception handling type that is the same as the type of the exception information in the exception handler corresponding to the multiple exception handling types recorded in the second calling program of the application, and the exception information captured by the exception handler in the second calling program of the application is obtained. Further, if there is no target exception handling type that is the same as the type of the exception information in the exception handler in the second calling program of the application, it is detected whether the second calling program of the application reaches the entry calling layer of the application. If it reaches, the entry calling layer determines whether the application continues to execute or terminates according to the severity of the type of the exception information appearing in the application. If it does not reach, it is detected whether the second calling program has a third calling program, wherein the third calling program calls the second calling program and is not the entry calling layer of the application.
[0073] Furthermore, in one embodiment, after the step of obtaining the exception information captured by the current exception handler, the following step is further included:
[0074] After obtaining the exception information captured by the current exception handler, the exception information processing flow is entered according to the exception program processing offset corresponding to the target exception handling type of the current exception handler.
[0075] In this embodiment, after obtaining the exception information captured by the current exception handler, if the exception program processing offset corresponding to the target exception handling type of the current exception handler is 1, the exception information processing flow of the code segment 1 to be executed after the exception is captured is entered. If the exception program processing offset corresponding to the target exception handling type of the current exception handler is 2, the exception information processing flow of the code segment 2 to be executed after the exception is captured is entered. It is easy to imagine that the value of the exception program processing offset in this embodiment is for reference only and is not limited here.
[0076] In a third aspect, an embodiment of the present invention further provides a program exception capturing device.
[0077] In one embodiment, referring to Figure 3 , Figure 3 Schematic diagram of the functional modules of the first embodiment of the program exception capture device of the present invention. Figure 3 As shown, the program exception capture device includes:
[0078] Setting module 10: used to set N exception handlers in the application, where N is a positive integer;
[0079] Recording module 20: used for clearing the record and then recording multiple exception handling types corresponding to the current exception handler each time an exception handler is detected during the running of the application;
[0080] Detection module 30: used for detecting whether there is a target exception handling type that is the same as the type of the exception information in the current exception handlers corresponding to the multiple exception handling types recorded when the exception information appears during the operation of the application;
[0081] Acquisition module 40: used to acquire the exception information captured by the current exception handler, if any.
[0082] Furthermore, in one embodiment, the program exception capture device further includes a detection module 30, which is further used to:
[0083] Detecting whether the first caller of the application is the entry call layer of the application;
[0084] If it is the entry call layer of the application, the entry call layer determines whether the application continues to execute or terminates according to the severity of the type of exception information that appears in the application;
[0085] If it is not the entry call layer of the application, the step of detecting whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded when exception information occurs during the operation of the application is executed.
[0086] Furthermore, in one embodiment, the program exception capture device further includes a judgment module, which is used to:
[0087] If not, determining whether the application has a second calling program, wherein the second calling program is not an entry calling layer of the application;
[0088] If yes, the exception handler in the second calling program of the application is used to capture the exception information;
[0089] If not, the entry call layer determines whether the application continues to execute or terminates based on the severity of the type of exception information that appears in the application.
[0090] Furthermore, in one embodiment, the detection module 30 is further configured to:
[0091] If the application has a second calling program, detecting whether there is a target exception handling type that is the same as the type of the exception information in the exception handlers corresponding to the multiple exception handling types recorded in the second calling program of the application;
[0092] If it exists, the exception information captured by the exception handler in the second calling program of the application program is obtained.
[0093] Furthermore, in one embodiment, the program exception capturing device further includes a processing module, which is used to:
[0094] After obtaining the exception information captured by the current exception handler, the exception information processing flow is entered according to the exception program processing offset corresponding to the target exception handling type of the current exception handler.
[0095] Among them, the functional implementation of each module in the above-mentioned program exception capture device corresponds to each step in the above-mentioned program exception capture method embodiment, and its functions and implementation processes are no longer repeated here one by one.
[0096] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium.
[0097] The readable storage medium of the present invention stores a program exception capture program, wherein when the program exception capture program is executed by a processor, the steps of the program exception capture method as described above are implemented.
[0098] Among them, the method implemented when the program exception capture program is executed can refer to the various embodiments of the program exception capture method of the present invention, and will not be repeated here.
[0099] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0100] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present invention.
[0102] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A program exception capture method, characterized in that: The program exception capture method comprises: Set N exception handlers in the application, where N is a positive integer; When the application is running, each time an exception handler is detected, the record is cleared and then multiple exception handling types corresponding to the current exception handler are recorded; When an exception message appears during the operation of the application, it is detected whether there is a target exception handling type that is the same as the type of the exception message in the current exception handler corresponding to the multiple exception handling types recorded; If it exists, get the exception information captured by the current exception handler; After the step of abnormal information appearing during the operation of the application, the method further includes: Detecting whether the first caller of the application is the entry call layer of the application; If it is the entry call layer of the application, the entry call layer determines whether the application continues to execute or terminates according to the severity of the type of exception information that appears in the application; If it is not the entry call layer of the application, then when exception information occurs during the operation of the application, a step is executed to detect whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded.
2. The program exception capture method according to claim 1, characterized in that: After the step of detecting whether there is a target exception handling type that is the same as the type of the exception information in the current exception handler corresponding to the multiple exception handling types recorded, the method further includes: If not, determining whether the application has a second calling program, wherein the second calling program is not an entry calling layer of the application; If yes, the exception handler in the second calling program of the application is used to capture the exception information; If not, the entry call layer determines whether the application continues to execute or terminates based on the severity of the type of exception information that appears in the application.
3. The program exception capture method according to claim 2, characterized in that: If yes, the step of using the exception handler in the second calling program of the application program to capture the exception information comprises: If the application has a second calling program, detecting whether there is a target exception handling type that is the same as the type of the exception information in the exception handlers corresponding to the multiple exception handling types recorded in the second calling program of the application; If it exists, the exception information captured by the exception handler in the second calling program of the application program is obtained.
4. The program exception capture method according to claim 1, characterized in that: After the step of obtaining the exception information captured by the current exception handler, the method further includes: After obtaining the exception information captured by the current exception handler, the exception information processing flow is entered according to the exception program processing offset corresponding to the target exception processing type of the current exception handler.
5. A program exception capture device, characterized in that: The program exception capturing device comprises: Setting module: used to set N exception handlers in the application, where N is a positive integer; Recording module: used to clear the record and then record multiple exception handling types corresponding to the current exception handler every time an exception handler is detected during the application running; Detection module: used to detect whether there is a target exception handling type that is the same as the type of the exception information in the current exception handler corresponding to the multiple exception handling types recorded when the application program has exception information during operation; Acquisition module: used to obtain the exception information captured by the current exception handler if it exists; The detection module is also used to: Detecting whether the first caller of the application is the entry call layer of the application; If it is the entry call layer of the application, the entry call layer determines whether the application continues to execute or terminates according to the severity of the type of exception information that appears in the application; If it does not reach the entry call layer of the application, the step of detecting whether there is a target exception handling type with the same type as the exception information in the current exception handler corresponding to the multiple exception handling types recorded when exception information occurs during the operation of the application is executed.
6. The program exception capturing device according to claim 5, characterized in that: The program exception capturing device further includes a judging module, which is used to: If not, determining whether the application has a second calling program, wherein the second calling program is not an entry calling layer of the application; If yes, the exception handler in the second calling program of the application is used to capture the exception information; If not, the entry call layer determines whether the application continues to execute or terminates based on the severity of the type of exception information that appears in the application.
7. A program exception capture device, characterized in that: The program exception capture device comprises a processor, a memory, and a program exception capture program stored in the memory and executable by the processor, wherein when the program exception capture program is executed by the processor, the steps of the program exception capture method according to any one of claims 1 to 4 are implemented.
8. A readable storage medium, characterized in that: The readable storage medium stores a program exception capture program, wherein when the program exception capture program is executed by a processor, the steps of the program exception capture method according to any one of claims 1 to 4 are implemented.
