Method and system for variable tracking in program debugging

A technology for variable tracking and program debugging, applied in software testing/debugging, instrumentation, error detection/correction, etc., can solve the problems of multiple interruptions in program execution, unfavorable for the automation of variable tracking process, and increasing the burden on programmers.

Active Publication Date: 2016-06-22
IBM CORP
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This not only increases the programmer's burden, but also is not conducive to the automation of the variable tracking process
Also, the execution of the program may be interrupted many times before the source of the abnormal change in the value of the variable is found

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
  • Method and system for variable tracking in program debugging
  • Method and system for variable tracking in program debugging
  • Method and system for variable tracking in program debugging

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0019] figure 1 A block diagram of an exemplary computer system / server 12 suitable for use in implementing embodiments of the invention is shown. figure 1 The computer system / server 12 shown is only an example and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.

[0020] Such as figure 1 As shown, computer system / server 12 takes the form of a general purpose computing device. ...

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 relates to a method and a system for variable tracking in program debugging. An embodiment discloses the method for variable tracking in program debugging. The method comprises the steps of determining a to-be-tracked first variable and a to-be-monitored first expression associated with the first variable; performing reverse scanning on a debugged program code to search for an assignment expression used for performing assignment on the first variable; and in response to the found assignment expression, setting a monitoring point associated with the first expression after an assignment statement with the assignment expression to check whether the first expression is satisfied or not. The corresponding system is further described.

Description

technical field [0001] Embodiments of the present invention generally relate to the field of program development, and in particular to methods and devices for variable tracking in program debugging. Background technique [0002] During the program development process, the programmer needs to debug the compiled program to find syntax and / or logic errors in the program source code. A debugger is a common tool for performing debugging. For example, specialized debuggers are often provided in integrated development environments (IDEs). It is often necessary to perform variable tracking during debugging. [0003] Specifically, during debugging, programmers often need to confirm whether the value of a given variable is within a reasonable range. Currently, it is possible to use watchpoints to track the value of variables. Taking C or C++ language as an example, programmers can use statements such as assert to stop the running of the program at a specified position. Then, the ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3636
Inventor 官孝峰张玉珩纪金松毛一赠
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products