CN111464333A - Remote debugging method, computer equipment, storage device and remote debugging system - Google Patents

Remote debugging method, computer equipment, storage device and remote debugging system Download PDF

Info

Publication number
CN111464333A
CN111464333A CN202010152938.0A CN202010152938A CN111464333A CN 111464333 A CN111464333 A CN 111464333A CN 202010152938 A CN202010152938 A CN 202010152938A CN 111464333 A CN111464333 A CN 111464333A
Authority
CN
China
Prior art keywords
debugging
remote
equipment
program
fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010152938.0A
Other languages
Chinese (zh)
Inventor
徐祖军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202010152938.0A priority Critical patent/CN111464333A/en
Publication of CN111464333A publication Critical patent/CN111464333A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a remote debugging method, computer equipment, a storage device and a remote debugging system. The remote debugging method comprises the following steps: the remote equipment is in communication connection with the debugging equipment; the remote equipment opens the authority to the debugging equipment, wherein the debugging equipment debugs the fault program of the remote equipment according to the authority and forms program repair information; the remote equipment transmits screen display information to the debugging equipment, wherein the debugging equipment operates the fault program according to the screen display information and forms an operation instruction; the remote equipment acquires the program repair information and the operation instruction transmitted by the debugging equipment and repairs the fault program based on the program repair information and the operation instruction. By means of the method, the remote debugging method can complete the repair of the fault program of the remote equipment without the auxiliary operation of personnel nearby the remote equipment.

Description

Remote debugging method, computer equipment, storage device and remote debugging system
Technical Field
The present application relates to the field of remote program debugging technologies, and in particular, to a remote debugging method, a computer device, a storage apparatus, and a remote debugging system.
Background
After an application program is frequently on line in research and development of a mobile terminal product, a fault occurs in an environment where a client uses a test mobile phone or characteristics, particularly an android application program. With the increase of android phone manufacturers, the fragmentation of the android phones is increasingly serious, and it is difficult to ensure that the application program passes the test on all models before being online.
Once the application program is abnormal, a debugger can debug the abnormal program on site, time and labor are wasted, and if the application programs of a plurality of devices are abnormal, the debugger is weak. Currently, remote debugging is usually performed, a user is often required to operate a remote device in a matching manner to perform the debugging, and the abnormal application program cannot be repaired in time because no matched personnel exists near the remote device and the abnormal application program needs to be repaired immediately.
Disclosure of Invention
The application mainly provides a remote debugging method, computer equipment, a storage device and a remote debugging system, and aims to solve the problem that personnel nearby the remote equipment is required to cooperate to operate the remote equipment to repair a fault program during remote debugging.
In order to solve the technical problem, the application adopts a technical scheme that: a remote debugging method is provided. The remote debugging method comprises the following steps: the remote equipment is in communication connection with the debugging equipment; the remote equipment opens the authority to the debugging equipment, wherein the debugging equipment debugs the fault program of the remote equipment according to the authority and forms program repair information; the remote equipment transmits screen display information to the debugging equipment, wherein the debugging equipment operates the fault program according to the screen display information and forms an operation instruction; the remote equipment acquires the program repair information and the operation instruction transmitted by the debugging equipment and repairs the fault program based on the program repair information and the operation instruction.
In order to solve the above technical problem, another technical solution adopted by the present application is: a remote debugging method is provided. The remote debugging method comprises the following steps: the debugging equipment is in communication connection with the remote equipment; the debugging equipment acquires the authority of the remote equipment; debugging equipment debugs a fault program of the remote equipment according to the authority so as to form program repair information; the debugging equipment operates the fault program according to the screen display information transmitted by the remote equipment and forms an operation instruction; and the debugging equipment transmits the program repair information and the operation instruction to the remote equipment so as to repair the fault program of the remote equipment.
In order to solve the above technical problem, another technical solution adopted by the present application is: a computer device is provided. The computer device comprises a processor coupled to a memory for storing a program and a memory for executing the program to implement the remote debugging method as described above.
In order to solve the above technical problem, another technical solution adopted by the present application is: a memory device is provided. The storage device stores a program, and the program can realize the remote debugging method when executed.
In order to solve the above technical problem, another technical solution adopted by the present application is: a remote debugging system is provided. The remote debugging system comprises a debugging device, a remote device, a P2P server and a relay server, wherein the debugging device is in communication connection with the remote device through the P2P server or the relay server, the remote device can realize the remote debugging method of any one of claims 1 to 6, and the debugging device can realize the remote debugging method of any one of claims 7 to 11.
The beneficial effect of this application is: different from the prior art, the application discloses a remote debugging method, computer equipment, a storage device and a remote debugging system. The remote equipment is in communication connection with the debugging equipment, and the authority is opened to the debugging equipment, so that the debugging equipment can debug a fault program of the remote equipment and form program repair information, meanwhile, the remote equipment transmits screen display information to the debugging equipment, the debugging equipment operates the fault program according to the screen display information and form an operation instruction, and the remote equipment acquires the program repair information and the operation instruction, so that when the remote equipment executes the program repair information to repair the fault program, the remote equipment can ensure that the remote equipment can timely support and cooperate the repair action of the fault program, and the debugging of the fault program can be smoothly completed, and the repair of the fault program of the remote equipment can be completed without the auxiliary operation of personnel nearby the remote equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts, wherein:
fig. 1 is a schematic flowchart of an embodiment of a remote debugging method provided in the present application;
fig. 2 is a schematic flowchart of step S13 in the remote debugging method of fig. 1;
FIG. 3 is a schematic flow chart of step S132 in FIG. 2;
FIG. 4 is a flowchart illustrating step S14 of the remote debugging method of FIG. 1;
FIG. 5 is a flowchart illustrating an embodiment of another remote debugging method provided herein;
FIG. 6 is a flowchart illustrating step S23 of the remote debugging method in FIG. 5;
FIG. 7 is a flowchart illustrating step S24 of the remote debugging method in FIG. 5;
FIG. 8 is a schematic block diagram of an embodiment of a computer device provided herein;
FIG. 9 is a schematic structural diagram of an embodiment of a memory device provided herein;
fig. 10 is a schematic structural diagram of an embodiment of a remote debugging system provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "third" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart of a remote debugging method provided in the present application, in this embodiment, the remote debugging method is based on one end of a remote device, and the remote debugging method includes:
s11: the remote device is in communication connection with the debugging device.
The remote device may be a computer device such as a mobile phone, a tablet computer, or an electronic watch, which can run the application program, and the debugging device may be a computer device such as a desktop computer, a tablet computer, or the like, which can run the debugging program.
Typically, the remote device and the commissioning device are running in different networks and the remote device and the commissioning device are also remotely located from each other, so it is difficult for the remote device and the commissioning device to implement an end-to-end wired communication connection.
The remote device typically operates in an extranet environment, for example, the remote device is a handset that communicates with a base station in the environment. The commissioning personnel usually work in an intranet environment, and the commissioning device also usually operates in an intranet environment, for example, the commissioning device is a personal computer, which communicates with a local area network of a company. Furthermore, the remote device and the debugging device usually operate in different networks, and the remote device and the debugging device need to establish cross-network communication to implement cross-network debugging.
In this embodiment, the remote device and the debugging device are connected through a P2P server or a relay server in a communication manner. Specifically, the remote device includes a first P2P Proxy site (P2P Proxy), and the first P2P Proxy site may establish a connection with a P2P Server (P2P Server), so that the remote device may perform data transmission with the P2P Server through the first P2P Proxy site. The debugging device comprises a second P2P proxy site, and the second P2P proxy site can establish connection with the P2P server, so that the debugging device can perform data transmission with the P2P server through the second P2P proxy site.
Specifically, the first P2P proxy station communicates with the second P2P proxy station through P2P network penetrating operation, and if network penetrating is successful, the first P2P proxy station and the second P2P proxy station can directly perform data transmission, that is, the debugging device and the remote device can directly perform P2P data transmission. If the network penetration fails, namely the remote device fails to be directly connected with the debugging device P2P, the first P2P proxy station and the second P2P proxy station cannot directly transmit data, and data forwarding needs to be performed through a relay server, namely the debugging device and the remote device communicate through the relay server to indirectly transmit data.
It should be noted that the first P2P broker site and the second P2P broker site are program codes.
After the remote device is powered on, a first P2P proxy site is started, and the remote device is registered in a P2P server through the first P2P proxy site, and a unique identification of the remote device is generated by the P2P server, wherein the identification can be a character number or a two-dimensional code, or the identification comprises the character number and the two-dimensional code associated with the character number.
Further, the remote device also detects whether the registration is successful, and if the registration is unsuccessful, prompts the user to restart the remote device to repair the failure of unsuccessful registration, and registers with the P2P server through the first P2P proxy site again.
The identity of the remote device can be identified by the second P2P proxy site of the commissioning device and is in communication connection with the first P2P proxy site through the P2P server or the relay server, that is, the remote device and the commissioning device establish a data transmission channel through the P2P server or the relay server.
Further, P2P punching and P2P penetration are also performed between the first P2P proxy site and the second P2P proxy site, so that the debugging device is directly networked to the network where the remote device is located to perform P2P direct connection, and the data transmission speed and the data transmission capacity between the remote device and the debugging device are greatly improved.
S12: and the remote equipment opens the authority to the debugging equipment, wherein the debugging equipment debugs the fault program of the remote equipment according to the authority and forms program repair information.
After the remote device and the debugging device establish a data transmission channel through the P2P server or the relay server, the debugging device acquires some information and permissions of the remote device, thereby facilitating debugging of a fault program on the remote device.
The remote device opens the authority to the debugging device, the authority can be a system operation authority or a common user authority, the authority is different from the root authority, and the remote device can accept the debugging operation of the debugging device without opening the root authority. The debugging equipment can debug the fault program of the remote equipment according to the authority, and program repair information is formed.
Specifically, the remote device runs a command daemon thread (CMD Dameon), the command daemon thread acquires the system running permission of the remote device and opens the system running permission of the remote device to a debugging device, a development tool in the debugging device conducts remote breakpoint debugging on a fault program according to the system running permission so as to acquire fault information related to the fault program and form program repair information according to the fault information, and then the debugging device transmits the program repair information to the remote device so as to complete repair of the fault program in the remote device.
S13: and the remote equipment transmits the screen display information to the debugging equipment, wherein the debugging equipment operates the fault program according to the screen display information and forms an operation instruction.
After the debugging equipment acquires the authority of the remote equipment, screen display information of the remote equipment is further acquired so as to assist in repairing the fault program.
The screen display information is operation interface information of the remote equipment, and when the remote equipment is operated by no person, some instructions for debugging the fault program cannot be executed. For example, the operation interface of the remote device displays content asking whether to allow program repair information to be loaded into the faulty program or whether to allow the faulty program to be modified, and the user is required to confirm authorization but not operate the screen of the remote device, so that the debugging device cannot perform debugging and repairing on the remote device.
Therefore, the remote equipment also transmits screen display information to the debugging equipment, and the debugging personnel controls the debugging equipment to operate the fault program according to the screen display information and form an operation instruction so as to transmit the operation instruction to the remote equipment in the subsequent process and further assist in debugging the fault program.
Specifically, step S13 may be divided into the following steps to be performed. Referring to fig. 2, fig. 2 is a schematic flowchart of step S13.
S131: a first image capture thread of a remote device captures on-screen information of the remote device.
After the debugging equipment acquires the system operation authority of the remote equipment, operating a command daemon thread of the remote equipment, and indicating the command daemon thread to start a first image capturing thread of the remote equipment, wherein the first image capturing thread of the remote equipment acquires screen display information of the remote equipment.
S132: and transmitting the screen display information to the debugging equipment.
The command daemon thread of the remote equipment further responds to the debugging command of the debugging equipment to transmit the screen display information to the debugging equipment.
Step S132 can be further detailed. Referring to fig. 3, fig. 3 is a schematic flowchart of step S132.
S134: responding to a debug command of the debug device.
When the debugging equipment needs to acquire the screen display information of the remote equipment, a response debugging instruction is transmitted to the remote equipment, and after the remote equipment receives the debugging instruction, the remote equipment responds to the debugging instruction of the debugging equipment, encodes and compresses the acquired screen display information and prepares to transmit the screen display information to the debugging equipment.
S135: it is determined whether the P2P direct connection of the remote device to the commissioning device was successful.
P2P punching and P2P penetration attempts are also performed between the first P2P proxy site and the second P2P proxy site, so that the debugging device can directly penetrate through a network where the remote device is located, and the data transmission speed and the data transmission capacity between the remote device and the debugging device are improved.
After the first P2P proxy site and the second P2P proxy site enable P2P penetration, it is confirmed whether the P2P direct connection between the remote device and the commissioning device is successful. P2P is successfully connected directly, and step S136 is executed. If the P2P direct connection is unsuccessful, go to step S137.
S136: and if so, sending the screen display information to the debugging equipment through the P2P direct connection.
If the P2P is successfully penetrated, the remote device establishes P2P direct communication with the debugging device, and cross-network communication connection is realized, so that the remote device directly transmits the packaged on-screen display information to the debugging device without forwarding the on-screen display information to the debugging device through a relay server.
S137: if not, screen display information is sent to the relay server, and the relay server forwards the screen display information to the debugging equipment.
If P2P fails to penetrate, the remote device and the debugging device cannot realize direct communication connection across the network. The first P2P proxy site of the remote device establishes a data channel with the P2P server, and the remote device transmits the packaged on-screen information to the relay server through the data channel. Meanwhile, a data channel is established between the relay server and a second P2P proxy site of the debugging equipment, and the relay server forwards the screen display information to the debugging equipment through the data channel.
S14: the remote equipment acquires the program repair information and the operation instruction transmitted by the debugging equipment and repairs the fault program based on the program repair information and the operation instruction.
After the remote equipment opens the authority and transmits the screen display information to the debugging equipment, the debugging equipment forms program repair information of the fault program and an operation instruction of the screen display information according to the program repair information and the operation instruction, and codes and compresses the program repair information and the operation instruction to transmit to the remote equipment.
The remote device acquires the program repair information and the operation instruction, and repairs the failed program based on the program repair information and the operation instruction.
Specifically, step S14 may be divided into the following steps to be performed. Referring to fig. 4, fig. 4 is a schematic flowchart of step S14.
S141: and executing the operation instruction on the remote equipment to assist in debugging the fault program.
The debugging equipment displays screen display information, the debugging personnel controls the debugging equipment to operate the screen display information, meanwhile, the debugging equipment records operation actions of the screen display information into operation instructions, and the operation instructions can be used for executing actions of the debugging personnel on an operation interface of the remote equipment, such as clicking a confirmation icon, returning to a desktop and the like, so that when the fault program is repaired subsequently, the remote equipment is ensured to timely support and cooperate the repairing actions of the fault program, and the debugging of the fault program is smoothly carried out.
S142: program repair information is executed to repair the failed program.
After obtaining the program repair information, the remote device executes the program repair information to debug the failed program, for example, to replace a fault code in the failed program, patch the failed program, and so on, so as to repair the failed program.
Referring to fig. 5, fig. 5 is a schematic flowchart of a remote debugging method provided in the present application, in this embodiment, the remote debugging method is based on one end of a debugging device, and the remote debugging method includes:
s21: the debugging equipment is in communication connection with the remote equipment.
The debugging equipment comprises a second P2P proxy site, the debugging equipment starts the second P2P proxy site, then the second P2P proxy site confirms whether the identity of the remote equipment is stored in the debugging equipment, the second P2P proxy reads the identity and analyzes the identity, and therefore a data transmission channel is established between the P2P server or the relay server and the first P2P proxy site of the remote equipment.
Specifically, the commissioning device determines whether the identity of the remote device is stored. If so, the second P2P proxy site of the debugging device recognizes the identity to perform communication connection with the remote device. If not, the second P2P proxy site of the debugging device accepts the input identification to perform communication connection with the corresponding remote device.
Specifically, the debugging device and the remote device both preferentially punch holes through a P2P server and establish a P2P direct connection data transmission channel. If the P2P direct connection fails, the debugging device establishes a data transmission channel with the remote device through the relay server, thereby implementing data interaction between the debugging device and the remote device.
P2P punching and P2P penetration are preferentially carried out between the first P2P proxy site and the second P2P proxy site, so that the debugging equipment is directly penetrated to a network where the remote equipment is located, namely P2P direct connection is established between the debugging equipment and the remote equipment, and the data transmission speed and the data transmission capacity between the remote equipment and the debugging equipment are greatly improved.
S22: and the debugging equipment acquires the authority of the remote equipment.
The remote device opens the authority to the debugging device, and the debugging device acquires the authority of the remote device, so that the debugging device can execute some operations on the remote device in the authority.
S23: and debugging the fault program of the remote equipment by the debugging equipment according to the authority so as to form program repair information.
After the debugging equipment is in communication connection with the remote equipment, the debugging equipment starts debugging the fault program of the remote equipment.
Specifically, referring to fig. 6, fig. 6 is a schematic flowchart of step S23.
S231: a development tool for debugging the device is started.
And starting a Development tool IDE (Integrated Development Environment) of the debugging equipment, such as Eclipse, Android studio and the like.
S232: and the development tool carries out remote breakpoint debugging on the fault program according to the system operation permission of the remote equipment so as to form program repair information.
And the development tool starts a command execution Server (CMD Server), and the command execution Server carries out remote breakpoint debugging on the fault program in the system operation permission of the remote equipment, acquires the relevant fault information of the fault program and forms program repair information according to the fault information so as to transmit the program repair information to the remote equipment subsequently.
S24: and the debugging equipment operates the fault program according to the screen display information transmitted by the remote equipment and forms an operation instruction.
The remote equipment transmits the screen display information to the debugging equipment, and debugging personnel control the debugging equipment to operate the fault program according to the screen display information and form an operation instruction.
Specifically, referring to fig. 7, fig. 7 is a flowchart of step S24.
S241: and assisting the debugging action of the fault program according to the screen display information.
The debugging personnel reads the screen display information of the remote equipment from the debugging equipment and executes corresponding operation on the screen display information according to the request of the screen display information so as to assist the remote equipment to timely support and cooperate the repair action of the fault program and smoothly debug the fault program.
S242: and recording the operation action on the screen display information into an operation instruction by a second image capturing thread of the debugging equipment.
And a second image capturing thread of the debugging equipment inputs the operation action of the debugging personnel on the screen display information and records the operation action into an operation instruction which can be read by the remote equipment.
S25: and the debugging equipment transmits the program repair information and the operation instruction to the remote equipment so as to repair the fault program of the remote equipment.
Specifically, the command server of the debugging device obtains the program repair information and the operation instruction, encodes and compresses the program repair information and the operation instruction, and transmits the packaged program repair information and the packaged operation instruction to the remote device.
Before the debugging device transmits the program repair information and the operation instruction to the remote device, the debugging device also confirms whether the P2P direct connection between the debugging device and the remote device is successful. If the P2P direct connection is successful, the remote device establishes P2P direct connection communication with the debugging device, and the command server can directly transmit program repair information and operation instructions to the remote device. If the P2P direct connection is unsuccessful, the command execution server transmits the program repair information and the operation instruction to the relay server, and the relay server forwards the program repair information and the operation instruction to the remote device.
Based on this, the present application further provides a computer device 100, please refer to fig. 8, and fig. 8 is a schematic structural diagram of an embodiment of the computer device of the present application, in this embodiment, the computer device 100 includes a processor 110 and a memory 120, the processor 110 is coupled to the memory 120, the memory 120 is used for storing a program, and the processor 110 is used for executing the program to implement the remote debugging method of any of the above embodiments.
The computer device 100 may be a codec. Processor 110 may also be referred to as a CPU (Central processing Unit). The processor 110 may be an integrated circuit chip having signal processing capabilities. The processor 110 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The general purpose processor 110 may be a microprocessor or the processor may be any conventional processor or the like.
Based on this, the present application further provides a storage device 200, please refer to fig. 9, and fig. 9 is a schematic structural diagram of an embodiment of the storage device provided in the present application, in which the storage device 200 stores a program 210, and the program 210 can implement the remote debugging method of any of the embodiments described above when being executed.
The program 210 may be stored in the storage device 200 in the form of a software product, and includes several instructions to make a device or a processor execute all or part of the steps of the methods according to the embodiments of the present application.
The storage device 200 is a medium in computer memory for storing some discrete physical quantity. The storage device 200 having a storage function includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, which can store the code of the program 210.
Based on this, the present application further provides a remote debugging system 300, please refer to fig. 10, where fig. 10 is a schematic structural diagram of an embodiment of the remote debugging system provided in the present application, the remote debugging system 300 includes a debugging device 310 and a remote device 320, the debugging device 310 is in communication connection with the remote device 320, the remote device 320 can implement the remote debugging method shown in any one of fig. 1 to 4, and the debugging device 310 can implement the remote debugging method shown in any one of fig. 5 to 7.
Different from the prior art, the application discloses a remote debugging method, computer equipment, a storage device and a remote debugging system. The remote equipment is in communication connection with the debugging equipment, and the authority is opened to the debugging equipment, so that the debugging equipment can debug a fault program of the remote equipment and form program repair information, meanwhile, the remote equipment transmits screen display information to the debugging equipment, the debugging equipment operates the fault program according to the screen display information and form an operation instruction, and the remote equipment acquires the program repair information and the operation instruction, so that when the remote equipment executes the program repair information to repair the fault program, the remote equipment can ensure that the remote equipment can timely support and cooperate the repair action of the fault program, and the debugging of the fault program can be smoothly completed, and the repair of the fault program of the remote equipment can be completed without the auxiliary operation of personnel nearby the remote equipment.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (14)

1. A remote debugging method is characterized by comprising the following steps:
the remote equipment is in communication connection with the debugging equipment;
the remote equipment opens the authority to the debugging equipment, wherein the debugging equipment debugs the fault program of the remote equipment according to the authority and forms program repair information;
the remote equipment transmits screen display information to the debugging equipment, wherein the debugging equipment operates the fault program according to the screen display information and forms an operation instruction;
and the remote equipment acquires the program repair information and the operation instruction transmitted by the debugging equipment and repairs the fault program based on the program repair information and the operation instruction.
2. The remote debugging method of claim 1, wherein the step of communicatively coupling the remote device to the debugging device comprises:
the remote device is connected with the debugging device through a P2P server in a P2P direct mode.
3. The remote debugging method of claim 2, further comprising:
if the remote device fails to be directly connected with the debugging device P2P, the remote device is in communication connection with the debugging device through a relay server, wherein the relay server forwards data between the remote device and the debugging device.
4. The remote debugging method of claim 1, wherein the remote device opens a right to the debugging device, and the debugging device debugs the faulty program of the remote device according to the right and forms program repair information, comprising:
and the remote equipment opens the system operation permission of the remote equipment to the debugging equipment through a command daemon thread, wherein a development tool in the debugging equipment carries out remote breakpoint debugging on the fault program according to the system operation permission.
5. The remote debugging method of claim 1, wherein the remote device transmits on-screen display information to the debugging device, and wherein the debugging device operates the fault program according to the on-screen display information and forms an operation instruction, comprising:
a first image capturing thread of the remote device acquires screen display information of the remote device;
and transmitting the screen display information to the debugging equipment.
6. The remote debugging method of claim 1,
the remote device obtains the program repair information and the operation instruction transmitted by the debugging device, and repairs the fault program based on the program repair information and the operation instruction, including:
executing the operating instructions on the remote device to assist in debugging the faulty program;
executing the program repair information to repair the failed program.
7. A remote debugging method is characterized by comprising the following steps:
the debugging equipment is in communication connection with the remote equipment;
the debugging equipment acquires the authority of the remote equipment;
the debugging equipment debugs the fault program of the remote equipment according to the authority so as to form program repair information;
the debugging equipment operates the fault program according to the screen display information transmitted by the remote equipment and forms an operation instruction;
and the debugging equipment transmits the program repairing information and the operation instruction to the remote equipment so as to repair the fault program of the remote equipment.
8. The remote debugging method of claim 7, wherein the step of communicatively coupling the debugging device to the remote device comprises:
the remote device is connected with the debugging device through a P2P server in a P2P direct mode.
9. The remote debugging method of claim 8, further comprising:
if the remote device fails to be directly connected with the debugging device P2P, the remote device is in communication connection with the debugging device through a relay server, wherein the relay server forwards data between the remote device and the debugging device.
10. The remote debugging method of claim 7, wherein the debugging device debugs the faulty program of the remote device according to the permission to form program repair information, comprising:
starting a development tool of the debugging equipment;
and the development tool carries out remote breakpoint debugging on the fault program according to the system operation permission of the remote equipment so as to form program repair information.
11. The remote debugging method of claim 7, wherein the step of operating the fault program by the debugging device according to the on-screen display information transmitted by the remote device and forming the operating instruction comprises:
the debugging action of the fault program is assisted according to the screen display information;
and recording the operation action of the screen display information into an operation instruction by a second image capturing thread of the debugging equipment.
12. A computer device comprising a processor coupled to a memory, and a memory for storing a program, the processor being configured to execute the program to implement a remote debugging method according to any of claims 1 to 6 and 7 to 11.
13. A storage device storing a program which, when executed, is capable of implementing a remote debugging method according to any one of claims 1 to 6 and 7 to 11.
14. A remote debugging system, comprising a debugging device and a remote device, wherein the debugging device is in communication connection with the remote device, the remote device is capable of implementing the remote debugging method according to any one of claims 1 to 6, and the debugging device is capable of implementing the remote debugging method according to any one of claims 7 to 11.
CN202010152938.0A 2020-03-06 2020-03-06 Remote debugging method, computer equipment, storage device and remote debugging system Pending CN111464333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010152938.0A CN111464333A (en) 2020-03-06 2020-03-06 Remote debugging method, computer equipment, storage device and remote debugging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010152938.0A CN111464333A (en) 2020-03-06 2020-03-06 Remote debugging method, computer equipment, storage device and remote debugging system

Publications (1)

Publication Number Publication Date
CN111464333A true CN111464333A (en) 2020-07-28

Family

ID=71680025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010152938.0A Pending CN111464333A (en) 2020-03-06 2020-03-06 Remote debugging method, computer equipment, storage device and remote debugging system

Country Status (1)

Country Link
CN (1) CN111464333A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220978A (en) * 2022-09-19 2022-10-21 瀚博半导体(上海)有限公司 Chip starting method and device including online debugging mode, chip and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020056047A1 (en) * 2000-09-15 2002-05-09 Lehman Larry L. System and method for communicating software debug, diagostic and maintenance information between devices
CN103473177A (en) * 2013-09-25 2013-12-25 北京大学 Method for online debugging C/C++ program
CN107070980A (en) * 2017-01-22 2017-08-18 微鲸科技有限公司 Remote assistance method, the apparatus and system of intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020056047A1 (en) * 2000-09-15 2002-05-09 Lehman Larry L. System and method for communicating software debug, diagostic and maintenance information between devices
CN103473177A (en) * 2013-09-25 2013-12-25 北京大学 Method for online debugging C/C++ program
CN107070980A (en) * 2017-01-22 2017-08-18 微鲸科技有限公司 Remote assistance method, the apparatus and system of intelligent terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220978A (en) * 2022-09-19 2022-10-21 瀚博半导体(上海)有限公司 Chip starting method and device including online debugging mode, chip and equipment

Similar Documents

Publication Publication Date Title
WO2017133691A1 (en) Intelligent device networking method and apparatus
CN107094097B (en) Fault information remote reproduction method and device
CN112671907B (en) Terminal equipment debugging method and device, terminal equipment and storage medium
CN110838953B (en) Test method, test system, electronic equipment and storage medium
CN104539682A (en) Debug method, device, mobile terminal, server and system for mobile webpage
US10320998B2 (en) Information processing system, image forming apparatus, control methods thereof, and storage medium
CN109688434A (en) Offline open a court session processing method, device, terminal, system and storage medium
CN110752954A (en) Networking fault detection method and related device for household electrical appliance
CN113055225A (en) Method for acquiring network fault analysis data, terminal and server
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
WO2022257927A1 (en) Key burning method and apparatus, electronic device board card, and storage medium
CN111464333A (en) Remote debugging method, computer equipment, storage device and remote debugging system
CN112822254A (en) Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
JP6436705B2 (en) Test execution device, test execution method, and computer program
CN105824622A (en) Data processing method and electronic equipment
JP2006113754A (en) Software update device and method
CN110298166A (en) Control method, terminal device and the commissioning device of operating system debugging permission
CN112261478B (en) Log debugging method, device and system, terminal device and set top box
CN112181461B (en) Upgrading method, network module, equipment, server and upgrading system
CN115509812A (en) Data backup method and server based on Keepalive dual-computer hot standby
JP6436704B2 (en) Test execution device, test execution method, and computer program
CN114691486A (en) Program debugging method and device and computer equipment
CN112052164A (en) Remote debugging method of Android device, storage medium and debugging terminal
US12001319B2 (en) Device debugging connection control and maintenance
CN112327675A (en) Engineering mechanical equipment debugging method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination