Unlock instant, AI-driven research and patent intelligence for your innovation.

Code debugging method and device

A debugging method and code technology, which is applied in software testing/debugging, instrumentation, electrical digital data processing, etc., can solve problems such as inconvenient operation, errors, and inability to realize business functions for users, and achieve the effect of improving debugging efficiency and flexible debugging methods

Active Publication Date: 2017-05-17
BEIJING GRIDSUM TECH CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, .NET developers will encounter a problem in providing users with the function of running Python codes by integrating IronPython in their software products: when users write Python codes that handle specific businesses and submit them to the software for running, they may fail because of the written Python code. Errors in the Python code prevent the user's expected business functions from being realized. At this time, the user needs to find the error in the Python code written by himself and correct it
[0004] However, although the method of inserting the pop-up code into the key position of the Python code can also pause the execution of the Python code at the key position, there is still a problem with this method: when the user inserts the pop-up code into the key position of the Python code , after the Python code runs to the key position where the pop-up code is inserted and pauses, if the user thinks that a certain position behind the key position of the code is also suspicious by analyzing the code behavior, he wants to pause at a certain position after execution When using the traditional method of inserting pop-up code into the code to achieve the effect of code running pause, the running Python code can only be stopped first, and then the user manually modifies the code to insert the pop-up code into the newly discovered suspicious location and then re-runs The modified Python code waits for the code to run to a suspicious position and pauses
This approach is extremely inconvenient for user operations, requiring users to frequently modify the Python code, stop the code running, restart the code running, and wait for the code to pause

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code debugging method and device
  • Code debugging method and device
  • Code debugging method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0022] The embodiment of the present invention provides a method for code debugging, such as figure 1 As shown, this method is applied to the code debugging process of interrupting code execution, and the specific steps include:

[0023] 101. Obtain the line number of the breakpoint set by the user in the code, and obtain a set of breakpoints.

[0024] To address the shortcomings of the existing debugging methods, the embodiment of the present...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a code debugging method and device, relates to the technical field of computer software programming, and solves the problems that an existing Python code is complicated in debugging process and low in debugging efficiency. The technical scheme includes the code debugging method includes the steps: acquiring a breakpoint row number set in a code by a user to obtain a breakpoint set; judging whether a current row number is in the breakpoint set or not according to the current row number executed by the code; executing an interrupt event function if the current row number is in the breakpoint set, and interrupting execution of the code. The code debugging method is mainly used for debugging Python code procedures.

Description

technical field [0001] The invention relates to the technical field of computer software programming, in particular to a code debugging method and device. Background technique [0002] IronPython is a .NET implementation of the Python language. With IronPython, .NET developers can integrate IronPython in their software products to provide users with the running function of Python code. For some business functions that need to be customized by users through Python code, the appearance of IronPython can be said to be for .NET Developers provide strong technical support. [0003] However, .NET developers will encounter a problem in providing users with the function of running Python codes by integrating IronPython in their software products: when users write Python codes that handle specific businesses and submit them to the software for running, they may fail because of the written Python code. An error in the Python code prevents the user's expected business function from b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3628
Inventor 程水强
Owner BEIJING GRIDSUM TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More