Remote debugging method and device

A remote debugging and target technology, applied in the Internet field, can solve problems such as the complexity of the remote debugging process, achieve the effect of improving efficiency and flexibility, and ensuring security

Active Publication Date: 2014-03-26
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a remote debugging method and device to at least solve the complicated remote debugging process caused by adding an additional remote debugging interface in the host computer when the host computer performs remote debugging on the target computer in the prior art. technical problem

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
  • Remote debugging method and device
  • Remote debugging method and device
  • Remote debugging method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] In this preferred embodiment, a remote debugging system architecture is provided, which is located in the above-mentioned target machine 104, such as figure 2 As shown, the remote debugging system located in the target machine includes: an HTTP server (HTTP Server) 202 and a debugging manager (Debug Manager) 204 . The functions of these two network elements are described in detail below.

[0039] The HTTP Server is mainly responsible for receiving the user's Web request, forwarding the request to the Debug Manager for processing, and returning the processing result to the user through the HTTP protocol. Preferably, the HTTP Server communicates with the host computer 102 using the HTTP protocol, so that the user can directly debug the target computer 104 through the browser on the host computer 102 .

[0040] The Debug Manager is mainly responsible for managing user authentication, Gdb command inspection, Gdb command and execution result forwarding, and debugging the l...

Embodiment 2

[0055] exist Figure 1-Figure 4 Based on the remote debugging system and device shown, the present invention provides a preferred remote debugging method. Such as Figure 5 As shown, the method may include the following steps:

[0056] Step S502: Receive the debugging request transmitted by the host machine based on the HTTP protocol, wherein the debugging request carries debugging instructions and indication information for indicating the debugging target; the above debugging target can be: a process and / or file in the target machine; for The instruction information indicating the debugging target may be the name or address of the process and / or file.

[0057] Step S504: Responding to the debugging request, execute the debugging operation indicated by the debugging instruction on the debugging target indicated by the indication information;

[0058] Step S506: Return the debugging result to the host machine through the HTTP protocol.

[0059] In the above-mentioned prefer...

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 remote debugging method and device. The method comprises the following steps: receiving a debugging request based on HTTP (Hyper Text Transport Protocol) transmission from a host computer, wherein the debugging request carries a debugging command and instruction information for instructing a debugging target; responding the debugging request to execute the debugging operation instructed by the debugging command for the debugging target instructed by the instruction information; returning the debugging result to the host computer through the HTTP protocol. The Remote debugging method and the device solve the technical problem that when the target computer is remotely debugged through the host computer, the remote debugging process is complicated due to extra remote debugging interfaces added in the host computer, achieve the purpose of remotely debugging the target computer without addition of the extra debugging interfaces, and improves the efficiency and the flexibility in remote debugging.

Description

technical field [0001] The invention relates to the field of the Internet, in particular to a remote debugging method and device. Background technique [0002] Gdbserver (Gdb server) is a tool that cooperates with Gdb to provide remote debugging. Among them, Gdb is a program debugging tool under UNIX released by the Genu Project open source organization. Gdbserver runs on the target machine, and Gdb runs on the host machine. Users can remotely debug the program started by Gdbserver on the target machine through Gdb on the host machine. [0003] However, Gdbserver mainly has the following two defects: [0004] 1) When the user needs to remotely debug the target machine through the current host machine, it is necessary to add a specific remote debugging interface on the host machine and install the corresponding Gdb program to remotely debug the program started by Gdbserver on the target machine, thereby As a result, the remote debugging process is more complicated and the d...

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): H04L12/26H04L29/08
Inventor 邓飞林恬郭志懋
Owner TENCENT TECH (SHENZHEN) CO LTD
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