Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for fast debugging program codes utilizing telnetd thread

A technology for debugging programs and threads, applied in the field of computer communication, can solve problems such as program problems, easy omission, increase the workload of developers, etc., to achieve the effect of easy addition and strong portability

Inactive Publication Date: 2013-07-10
XIAMEN YEALINK NETWORK TECH
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In order to increase these debugging codes, it will undoubtedly increase the workload of developers
And after debugging the program, you need to open the code file to find out which line the debugging code is in, and delete it; sometimes there are too many program codes in the code file and it is easy to miss, and the program will have problems

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 for fast debugging program codes utilizing telnetd thread
  • Method for fast debugging program codes utilizing telnetd thread

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The present invention will be further described below in conjunction with the embodiments with reference to the accompanying drawings.

[0018] Please refer to Figure 1 and Figure 2, a method for quickly debugging program codes using telnetd threads, including the following steps:

[0019] Step 1, add a telnetd thread in the main thread of system, described telnetd thread is used for monitoring the port of system, receives the order that remote login telnet client comes;

[0020] Step 2, when the described remote login telnet client sends an order, the telnetd thread receives and parses the command, and according to different commands, the telnetd thread calls the function of different interfaces; the function of this interface is defined in a function library file; The functions in this function library file can be modified at any time;

[0021] Step 3, quickly debug the program code by calling the function of the interface; each function is called through the corresp...

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 provides a method for fast debugging program codes utilizing a telnetd thread. The method includes the steps of firstly, adding the telnetd thread which is used for monitoring system ports and receiving a command from a telnet client to a system main thread; secondly, by the telnetd thread, receiving and analyzing a command transmitted by the telnetd client, and calling different port functions according to different commands; and thirdly, fast debugging the program codes according to the different called port functions. By adding the telnetd thread to the main program, fast code debugging is achieved. Due to the fact that the telnetd thread module is relatively independent, the telnetd thread can be added and deleted conveniently, labor intensity of programmers is lowered, and programming efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of computer communication, in particular to a method for quickly debugging program codes by using telnetd threads. Background technique [0002] As a software developer, you often encounter problems. You often need to receive events from the outside, trigger specific conditions, and run related program codes. Or in order to test the program, it is often necessary to manually modify the code to achieve a specific process jump. In order to increase these debugging codes, it will undoubtedly increase the workload of developers. And after debugging the program, you need to open the code file to find out which line the debugging code is in, and delete it; sometimes there are too many program codes in the code file and it is easy to miss, and the program will go wrong. Is there a way to execute a specific code flow without adding debugging code? Contents of the invention [0003] The technical problem to be s...

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/36H04L29/08
Inventor 潘建标刘晓芸
Owner XIAMEN YEALINK NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products