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

A debug printing method and debug printing system

A printing system and printing information technology, applied in the direction of digital output to printing unit, etc., can solve the problems of changing, unable to debug printing information output, etc., and achieve the effect of simple use

Active Publication Date: 2019-11-22
湖州帷幄知识产权运营有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Existing solutions cannot change the output terminal of debugging information after the application is started, remotely log in to a running system, and cannot output the system’s debugging print information to the logged-in terminal
[0004] Existing solutions need to call multiple interfaces during the application process, such as creating, configuring, using, and closing these steps. For debugging and printing levels, it needs to be configured through inter-process communication, which requires the application to monitor the corresponding communication Interface, developers are often accustomed to using simple debugging and printing methods in the development process

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
  • A debug printing method and debug printing system
  • A debug printing method and debug printing system
  • A debug printing method and debug printing system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention will be further elaborated below by describing a preferred specific embodiment in detail in conjunction with the accompanying drawings.

[0039] A debug printing method such as figure 1 shown, including the following steps:

[0040] Step 1: Start the debugging printing system, which determines the debugging printing level of the process; it is realized through the following sub-steps:

[0041] Step 1.1: The debugging printing system judges whether there is an identification file of the process debugging printing level in the process, and if it exists, then determines the debugging printing level of the process using the process debugging printing level; if not, proceeds to the next step.

[0042] Step 1.2: Further judge whether there is an identification file of the global debugging printing level in the process. If it exists, determine the debugging printing level of the process and adopt the global debugging printing level; if not, determine the...

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 debugging printing method, which includes the following steps: Step 1: start the debugging printing system to determine the debugging printing level of the process; Step 2: compare the debugging printing level imported by the external interface with the priority of the debugging printing level of the process, If the priority of the debugging printing level passed in by the external interface is lower than the debugging printing level of the process, then the debugging printing ends, otherwise, the next step; Step 3: Determine the output terminal of the debugging printing information and output it. Also disclosed is a debugging printing system, comprising: a debugging printing information output module outputting process debugging printing information; a kernel printing information output module grabbing and outputting the kernel debugging printing information of the process; a command configuration module configuring all processes or individual Sets the level of debug printing for each process. The present invention can be used easily, adopts a single interface, does not need to reserve an interface and consider complex logic; and can also obtain system debugging and printing information through different terminals.

Description

technical field [0001] The invention relates to a debugging printing, in particular to a Linux-based debugging printing method and a debugging printing system. Background technique [0002] The debugging printing method that is often used now is to output the debugging printing information to the default terminal, and output the debugging printing information of the kernel to the default TTY device, and configure the debugging printing level of the application through inter-process communication. [0003] Existing solutions cannot change the output terminal of debugging information after the application program is started, remotely log in to a running system, and cannot output the system's debugging print information to the logged-in terminal. [0004] Existing solutions need to call multiple interfaces during the application process, such as creating, configuring, using, and closing these steps. For debugging and printing levels, it needs to be configured through inter-proc...

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): G06F3/12
Inventor 匡昌胜
Owner 湖州帷幄知识产权运营有限公司