CN107749868A - A kind of remote debugging method based on target machine server - Google Patents
A kind of remote debugging method based on target machine server Download PDFInfo
- Publication number
- CN107749868A CN107749868A CN201710796868.0A CN201710796868A CN107749868A CN 107749868 A CN107749868 A CN 107749868A CN 201710796868 A CN201710796868 A CN 201710796868A CN 107749868 A CN107749868 A CN 107749868A
- Authority
- CN
- China
- Prior art keywords
- target machine
- debugging
- server
- debugger
- machine server
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention belongs to embedded software developing debugging technique, and in particular to a kind of remote debugging method based on target machine server.Remote debugging method of the invention based on target machine server increases target machine server 3 between debugger 1 and target machine 2, increase debugging connector 4 for debugger 1, communicated between the debugging assistant adjustment device 1 of connector 4 and target machine server 3, target machine server 3 manages the target machine information and target machine communication link being connected with target machine server 3, debug command of the target machine server 3 to debugger 1 and the debug command response of target machine 2 carry out routing forwarding, extension target machine software debugging communication mode is set to become easy, it is easy to managing target machine 2 under Multi-target machine debugging scenarios, expansible other debugging acids, support is provided for target machine service multiplexing, it is easy to target machine information management, embedded software developing and debugging efficiency.
Description
Technical field
The invention belongs to embedded software developing debugging technique, and in particular to a kind of based on the long-range of target machine server 3
Adjustment method.
Background technology
The step of embedded software carries out remote debugging by debugger 1 includes:Start-up and Adjustment device 1, configuration target machine connect
Mode is connect, linking objective machine 2, is debugged.Debugger 1 is generally only supported to be connected with target machine 2 by Ethernet or serial ports, and
The realization of debugger 1 is complicated, and directly changing debugger 1 increases new target machine communication mode cost height for it, therefore, it is difficult to
Do not possess remote debugging on the target machine 2 of Ethernet or serial ports.Multi-target machine debugging in the case of, each debugger 1 directly with
Target machine 2 communicates, and causes to be difficult to manage target machine 2.In addition, this debugger 1 and the mode of the direct communication of target machine 2 are monopolized
Communication interface resource on target machine 2, other application can not be used simultaneously, and limited target machine resource is caused to waste.To sum up, pass
The remote debugging mode application scenarios of debugger 1 of uniting are limited, it is difficult to extend target machine communication connection mode, do not apply to Multi-target machine and adjust
Examination, and exist to target machine wasting of resources situation.
The content of the invention
The purpose of the present invention is:Introduce a kind of remote debugging method based on target machine server.
The present invention adopts the technical scheme that:Increase target machine server 3 between debugger 1 and target machine 2, for debugging
The increase debugging connector 4 of device 1, debugs and is communicated between the assistant adjustment device 1 of connector 4 and target machine server 3, target machine clothes
Business device 3 manages the target machine information and target machine communication link being connected with target machine server 3, and target machine server 3 is to debugging
The debug command of device 1 and the debug command response of target machine 2 carry out routing forwarding, support other application instrument to communicate target machine
The use of link, realize that target machine communication link is multiplexed.Concrete operation step is as follows:
Step 1 target machine server 3 starts, and monitors the communication interface of possible linking objective machine 2;Target machine 2 by with master
The communication interface of machine connection sends own target machine information;Target machine server 3 receives information, by target machine information and and target
The communication link information that machine 2 connects is stored in the target machine management module on target machine server 3;Target machine server 3 passes through
Ethernet outwards broadcasts all target machine informations;
Step 2 debugging connector 4 receives Ethernet broadcast, the target for needing to debug according to the selection of the target machine information of broadcast
Machine 2, debugger 1 and the target machine connection request are sent to target machine server 3, debugger 1 and target machine server 3 by with
Too net establishes connection, sends debug command;
Step 3 target machine server 3 receives debugging connector 4 solicited message sent and the debugging that debugger 1 is sent and ordered
Order, the debug command that debugger 1 is sent together are sent to debugging connector 4 with the ethernet link information that debugger 1 uses
The target machine 2 specified;
Step 4 target machine 2 perform debug command, produce debugging reply, by it is described debugging reply with debugger 1 use with
Too net link information is together sent to target machine server 3;
Step 5 target machine server 3 receives target machine information, according to ethernet link information therein, sends it to
In corresponding ethernet link.
The present invention has the advantage that and beneficial effect:A kind of remote debugging method based on target machine server 3 of the present invention,
By increasing debugging connector 4 and target machine server 3 between debugger 1 and target machine 2, and provide and be based on target machine service
The remote debugging method of device 3, extension target machine software debugging communication mode is become easy, be not required to change and compile debugger 1,
The communication mode realized on target machine server 3 with target machine 2 is only used in, and target machine server 3 can manage mesh
The information of mark machine 2, it is convenient to the management work under Multi-target machine parallel debugging scene, in addition, the presence of target machine server 3
Realize target machine 2 to respond the tool command in addition to debugger 1, be easy to the multiplexing of debugging services on target machine 2, it is expansible
Other debugging acids, further, ethernet communication is based between debugger 1 and target machine server 3, is adjusted for long-range strange land
Examination provides the foundation.In the present invention, target machine server 3 improves the scalability of debugging communication mode, adds target machine
The durability of service, it is easy to target machine information management, improves embedded software developing and debugging efficiency.
Brief description of the drawings
Fig. 1 is the structured flowchart of the remote debugging based on target machine server 3;
Wherein, 1- debuggers, 2- target machines, 3- target machines server, 4- debugging connectors.
Embodiment
Below exemplified by carrying out remote debugging by target machine server 3, to a kind of based on the long-range of target machine server 3
Adjustment method is introduced, and debugging module structured flowchart is shown in Fig. 1, comprises the following steps that:
Step 1 target machine server 3 is operated on main frame, after the startup of target machine server 3, target machine server 3
Poll monitors the communication interface of possible linking objective machine 2, the communication interface that target machine 2 is supported by it, such as serial ports, Ethernet
Mouth, 1394 EBIs etc., are connected with main frame, and to electric on target machine 2, target machine 2 understands the communication interface by being connected with main frame
Send self information.Target machine server 3 receives information, and target machine information and the communication link information being connected with target machine are deposited
Store up in the target machine management module in target machine server, target machine server 3 is constantly outwards broadcasted all by Ethernet
Target machine information in target machine management module.
Step 2 debugger 1 is operated in the IDE on main frame with debugging connector 4, and debugging connector 4 connects
Receive and developer is presented to by IDE after the Ethernet that target machine server 3 is sent is broadcasted, developer is according to wide
Target machine information selection in broadcasting needs the target machine 2 debugged, and sends and is somebody's turn to do to target machine server 3 by debugging connector 4
The connection request of target machine 2, post debugging connector close automatically, and Start-up and Adjustment device 1 and target machine server 3 pass through ether
Net establishes connection, and debugger 1 sends debug command.
Step 3 target machine server 3 receives solicited message and the debugger that debugging connector 4 is sent by Ethernet
1 debug command sent, the ethernet link information that the debug command that debugger 1 is sent uses with debugger 1 is together sent
The target machine 2 specified to debugging connector 4, and above-mentioned ethernet link and above-mentioned target machine are recorded in target machine server
2 map information, the target machine 2 can be all sent to thereafter from the information of the ethernet link;
Step 4 target machine 2 receives the information from target machine server 3, performs debug command therein, produces tune
Examination is replied, and described debugging is replied to the ethernet link information used with debugger 1 and is together sent to target machine server 3;
Step 5 target machine server 3 receives target machine information, according to ethernet link information therein, will receive
Target machine information be sent to corresponding in ethernet link, debugger 1 receives target in the other end of the ethernet link
Machine information, a debugging operations to target machine are completed, then debugger 1 sends debug command to target machine server 3 again
And receive debugging and reply, so repeatedly, complete the remote adjusting functid to target machine 2.
Claims (2)
- A kind of 1. remote debugging method based on target machine server, it is characterised in that debugger (1) and target machine (2) it Between increase target machine server (3), for debugger (1) increase debugging connector (4), debug connector (4) assistant adjustment device (1) Communicated between target machine server (3), the target that target machine server (3) management is connected with target machine server (4) Machine information and target machine communication link, debug command of the target machine server (3) to debugger (1) and the debugging of target machine (2) Command response carries out routing forwarding.
- 2. the remote debugging method according to claim 1 based on target machine server (3), it is characterised in that specific step It is rapid as follows:Step 1 target machine server (3) starts, and monitors the communication interface of possible linking objective machine (2);Target machine (2) by with The communication interface of main frame connection sends own target machine information;Target machine server (3) receives information, by target machine information and with The communication link information of target machine (2) connection is stored in target machine management module;Target machine server (3) is outside by Ethernet Broadcast all target machine informations;Step 2 debugging connector (4) receives Ethernet broadcast, the target machine for needing to debug according to the selection of the target machine information of broadcast (2) debugger (1) and target machine (2) connection request, debugger (1) and target machine service, are sent to target machine server (3) Device (3) is established by Ethernet and connected, and sends debug command;Step 3 target machine server (3) receives the debugging that the solicited message that debugging connector (4) is sent is sent with debugger (1) Order, the ethernet link information that the debug command that debugger (1) is sent is used with debugger (1) are together sent to debugging and connected Connect the target machine (2) that device (4) is specified;Step 4 target machine (2) perform debug command, produce debugging reply, by it is described debugging reply with debugger (1) use with Too net link information is together sent to target machine server (3);Step 5 target machine server (3) receives target machine information, according to ethernet link information therein, sends it to pair In the ethernet link answered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710796868.0A CN107749868A (en) | 2017-09-06 | 2017-09-06 | A kind of remote debugging method based on target machine server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710796868.0A CN107749868A (en) | 2017-09-06 | 2017-09-06 | A kind of remote debugging method based on target machine server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107749868A true CN107749868A (en) | 2018-03-02 |
Family
ID=61255766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710796868.0A Pending CN107749868A (en) | 2017-09-06 | 2017-09-06 | A kind of remote debugging method based on target machine server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107749868A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108984354A (en) * | 2018-06-27 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of server chips debug circuit, adjustment method and server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030005417A1 (en) * | 2001-06-29 | 2003-01-02 | Gard James J. | Debugger for a hardware-implemented operating system |
CN106341451A (en) * | 2016-08-17 | 2017-01-18 | 中国航空工业集团公司西安飞行自动控制研究所 | Remote multi-target-machine parallel management method |
CN106874155A (en) * | 2015-12-14 | 2017-06-20 | 中国航空工业第六八研究所 | A kind of dynamic monitoring and controlling method of embedded software developing stage for target machine |
-
2017
- 2017-09-06 CN CN201710796868.0A patent/CN107749868A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030005417A1 (en) * | 2001-06-29 | 2003-01-02 | Gard James J. | Debugger for a hardware-implemented operating system |
CN106874155A (en) * | 2015-12-14 | 2017-06-20 | 中国航空工业第六八研究所 | A kind of dynamic monitoring and controlling method of embedded software developing stage for target machine |
CN106341451A (en) * | 2016-08-17 | 2017-01-18 | 中国航空工业集团公司西安飞行自动控制研究所 | Remote multi-target-machine parallel management method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108984354A (en) * | 2018-06-27 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of server chips debug circuit, adjustment method and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100356739C (en) | Testing system and method | |
KR101421567B1 (en) | Device management server, client and method for locating target operation object | |
CN100353714C (en) | Method for realizing Web service automatic test | |
CN105740137A (en) | Bucket test method, device and system, and method and device for providing configuration information | |
CN104239114A (en) | Application compiling method and device | |
CN105183299A (en) | Human-computer interface service processing system and method | |
CN105404995A (en) | Plug-in type logistics data open platform construction method | |
CN102437921B (en) | Memory method and network device of configuration information | |
CN112202877A (en) | Gateway linkage method, gateway, cloud server and user terminal | |
CN106027365A (en) | Information interaction method and device | |
CN107749868A (en) | A kind of remote debugging method based on target machine server | |
CN113360386B (en) | Method and device for testing driving of switching chip, electronic equipment and storage medium | |
CN107147630B (en) | Method and device for realizing automatic generation of OMCI protocol stack code | |
CN104539576A (en) | Communication method and system based on IPv6 network | |
CN105050028A (en) | Method and device for controlling household appliances | |
ATE424069T1 (en) | METHOD AND NETWORK MANAGEMENT DEVICE FOR IMPLEMENTING AN INFORMATION SERVICE HIERARCHY CONDITIONAL RELATION IN THE NETWORK MANAGEMENT INTERFACE | |
CN104503716A (en) | Method and system for printing code picture | |
CN102137079B (en) | Method and device for developing service for RPC (Remote Procedure Call) | |
CN104378747A (en) | Method and device for calling opposite-terminal device with short number | |
CN100366117C (en) | Wireless network device data allocation method | |
CN105677312A (en) | Business presenting method, device and system | |
CN112187711B (en) | ONU (optical network unit) cross-platform middleware and method | |
CN111475478A (en) | Heterogeneous power distribution automation system, provincial-regional 1+ N graph synchronization method, provincial-level power distribution master station and storage medium | |
CN114979230B (en) | Remote debugging system and method for vehicle-mounted terminal | |
CN114501595B (en) | 5G networking engineering management 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180302 |
|
RJ01 | Rejection of invention patent application after publication |