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

Network container and program debugging method based on the same

A program debugging and program technology, applied in the field of debugging, can solve problems such as inability to control and process data changes

Active Publication Date: 2012-05-02
山东中创软件商用中间件股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] These two methods only record the change process of data, and cannot control and process the change of data during the debugging process, and display it intuitively and dynamically

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
  • Network container and program debugging method based on the same
  • Network container and program debugging method based on the same
  • Network container and program debugging method based on the same

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] Embodiment 1 of the present invention discloses a program debugging method when the control of data is to set the access frequency, the aforementioned process is as follows figure 2 As shown, the flow of its control process is as follows image 3 shown, including:

[0062] Step S31, determining to set the access frequency;

[0063] Step S32, calculate the interval time between visits according to the visit frequency value set as required;

[0064] Step S33, setting the access interval time of the network container as the above-mentioned calculated value through the interface;

[0065] Step S34, the frequency setting process ends.

[0066] In the process of program debugging and running, through the above method, the frequency data of the network container can be controlled through the interface, which can conveniently control the data change process, control the data access frequency to meet the needs of various situations in the debugging process, and make the debu...

Embodiment 2

[0068] The embodiment of the present invention discloses a debugging method when the control of data is to modify data, and the foregoing process is as follows figure 2 As shown, the flow of its response process is as follows Figure 4 shown, including:

[0069] Step S41, according to actual needs, modify the corresponding data in the storage unit through the interface;

[0070] Step S42, sending the modified data to the program;

[0071] Step S43, display the modified data on the interface, and save it back to the data storage unit at the same time;

[0072] Step S44, the process of modifying data ends.

[0073] The program stores the data in the debugging process in the network container, and the network container can easily modify the data in the container. The modified data includes: fabricating the same type of data, creating some abnormal data, illegal data and wrong data. By creating illegal data and wrong data to verify the correctness of the program processing fl...

Embodiment 3

[0075] The embodiment of the present invention discloses a debugging method when the control of the data is to return a null character, and its aforementioned process is as follows figure 2 As shown, the flow of its response process is as follows Figure 5 shown, including:

[0076] Step S51, sending a character string without data to the program;

[0077] Step S52, return to the end of the null character process.

[0078] When it is necessary to create the illusion that there is no data in the container, this method can be used to create the illusion that there is no data in the container by returning a string without data to the program, thereby achieving the purpose of creating a scene that cannot be created by other debugging methods.

[0079] The network container-based debugging method disclosed in the embodiment of the present invention has at least the following advantages:

[0080] (1) Dynamic display of test data. You can view the increase and decrease of busine...

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 embodiment of the invention provides a network container and a program debugging method based on the same. The network container comprises a first receiving unit, an initialization unit, a second receiving unit, a first judging unit, a display unit, a data storage unit, a second judging unit, a sending unit and a control unit. The network container is used for storing various kinds of business data during the program operation, the change process of the business data in the actual operation of the program operation can be displayed, at the same time, the access operation of the data can be controlled, the contents of the test data can be regulated, and the invention solves the problems of tracking the data change, controlling the data operation and reproducing the test data under the multithreading concurrence pattern.

Description

technical field [0001] The invention relates to debugging technology, in particular to a network container and a program debugging method based on the network container. Background technique [0002] The program debugging method is a basic method for checking whether the program is running normally, whether the program logic is reasonable, and whether the running results are correct. It is also a basic method for troubleshooting and locating errors and exceptions, and is the key to ensuring the quality of the program. [0003] At present, when programmers debug a program, they mainly use the method of single-step debugging and the method of recording logs. [0004] The method of single-step debugging is to set a breakpoint in the program. When the program runs to the breakpoint, the program will be interrupted, and then run in a single step to track the change of data during the running process. The method of recording the log is to record the running information into a fil...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 戴海燕王进石磊李铭黄三伟刘春
Owner 山东中创软件商用中间件股份有限公司