CN110502418A - A method of realizing remote debugging - Google Patents
A method of realizing remote debugging Download PDFInfo
- Publication number
- CN110502418A CN110502418A CN201810470483.XA CN201810470483A CN110502418A CN 110502418 A CN110502418 A CN 110502418A CN 201810470483 A CN201810470483 A CN 201810470483A CN 110502418 A CN110502418 A CN 110502418A
- Authority
- CN
- China
- Prior art keywords
- data
- interface
- debugging
- debugged
- remote debugging
- 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.)
- Granted
Links
Classifications
-
- 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
-
- 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/3664—Environments for testing or debugging software
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The present invention relates to a kind of methods for realizing remote debugging, it is related to Windows applicating developing technology field and mirror image operation mode, the remote debugging that the method is carried out based on the striding course communication technology and mirror image operation mode, the method for the present invention realize remote information debugging and transmission between remote debugging client and remote debugging server-side in internet inside Different LANs.
Description
Technical field
The present invention relates to Windows applicating developing technology field more particularly to a kind of methods for realizing remote debugging.
Background technique
With the very fast development of computer networking technology, remote debugging is used for convenience of telecounter operation
(Remote Debugging) using more and more common, it, which refers to, debugs on one computer on an other computer
A kind of debugging strategy of program (program).
In the prior art, following manner is usually taken and realizes remote debugging:
First, data protocol is defined, sends request of data in client, server-side respond request returns data to client,
It again will be on the interface of data image to client.
Second, user sends the operation requests of user to server-side again, takes in the graphical interfaces of client operation mirror image
The operation at business end customer in response end.
In the implementation of the present invention, the existing technology has at least the following problems:
First, how package to be done to the data of business datum agreement and processing of unpacking, with increasing for business, not only increased very much
Data protocol, but also increase many message branch process, client and server-side require us and go as maintenance
Code causes the workload paid huge.
Second, most popular Overpassing Platform by Using technology is TCP/IP communication technology, although TPC/IP agreement is flexibly, after all
It is transport layer protocol, remote debugging is got up cumbersome, and practicability is narrow.
The present invention is used to solve the process of the remote operation debugging of mirror image data, during remote debugging, using being based on
Communication mode between the process of window, the set of all data and function that debugged equation is needed to debug is by its sequence
It is melted into a binary data buffer stream, by way of the hair message between process, is sent in debugging equation, and will acquire
For the data flow unserializing arrived at the set of data and function, mirror image goes out corresponding graphical interfaces, and operator can be according to tune
The program debugging of examination side is into long-range debugged equation.
Summary of the invention
It is a primary object of the present invention to overcome the deficiencies of the prior art and provide a kind of striding course communication technology and mirror image behaviour
The method for carrying out remote debugging as mode.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
A method of it realizing remote debugging, is applied to remote debugging system, the debugging system includes using Windows bottom
The striding course communication technology obtains the debugged square data of process and the column collection of interface;And skill is communicated using Window bottom striding course
The data of debugged side's client process and interface are dissipated collection by the data packet that art obtains;The last logic according to interface is by data mirror
As arriving debugging equation;And then remote debugging is carried out by the interface of debugging side's client:
S1, debugged side provide the function for needing to debug and data, and data and interface with various API(Application
Programming Interface application programming interfaces) it is encapsulated in a manner of object-oriented, it is finally packaged into data flow and is sent to
Client process;
S2, debugging side obtain the data and interface of debugged square client process using the Windows bottom striding course communication technology
Column collection;
S3, the data packet obtained based on the Window bottom striding course communication technology by the data of debugged side's client process and are connect
The column collection of mouth is wandering to integrate corresponding interface and data, and callback interface is registered to debugged side;
The data flow unserializing that S4, debugging side will acquire and will be counted at the set of data and function according to the logic of interface
According to being mirrored to debugging side's client-side program, and then pass through the progress remote debugging of the interface of debugging side.
Compared with prior art, beneficial effects of the present invention essentially consist in that: the present invention use the striding course communication technology and mirror
The method for carrying out remote debugging as mode of operation can conveniently and efficiently carry out remote debugging operation.
Detailed description of the invention
The attached drawing for constituting a part of the invention patent is used to provide to further understand the invention patent, and the present invention is special
The illustrative embodiments and their description of benefit are used to explain the present invention patent, do not constitute the improper restriction to the invention patent.
Fig. 1 is the schematic flow diagram of present invention method.
Specific embodiment
The invention patent is described in detail with reference to the accompanying drawing, the description of this part be only it is exemplary and explanatory,
There should not be any restriction effect to the scope of protection of the patent of the present invention.In addition, those skilled in the art's retouching according to this document
It states, the corresponding combination can be carried out to embodiment in this document and the feature in different embodiments.
Specific embodiment
The embodiment of the invention provides a kind of method for realizing remote debugging, the data and interface are obtained: debugged
The Dispath interface sequence of packaging at Dispath interface, is then melted into stream, passed through by interface or function wrapping by side
The data flow of packing is sent to client by the Window bottom striding course communication technology, debugging root according to it is debugged just provide connect
Mouth or function, will be by the received data flow unserializing of the Window bottom striding course communication technology at Dispath interface, will
Interface reflection is based on above-mentioned remote debugging mode, the embodiment of the present invention mentions at the corresponding debugged interface or function just provided
A kind of method for realizing remote debugging supplied, as shown in Figure 1, the realization process includes:
(1) side is debugged according to the root interface for defining data, is combined more sub-interfaces according to demand, can also be connect by son
Mouth carries out class wrapping to related needs, is more clear related needs logic, is more easier to extend.Data and interface
The various API of Window are encapsulated in a manner of object-oriented, get out the debugged data just needed with the mode of cloned copies.
(2) it is debugged side and packaged interface is packaged into data flow with the data of sub-interface and the inside, pass through Windows
The bottom striding course communication technology is sent to client process, wherein the same model machine of same producer production can pass through COPY's
Mode is sent to another client process, and the machine of different model can be sent in conjunction with network communication a client into
Journey.
(3) debugging side by the data flow received by corresponding mode unserializing at the counterfoil interface accordingly acted on behalf of,
The wherein combination of interface, consistent with the process of debugged side's client, debugging side obtains the interface of above-mentioned unserializing, root
Obtain Copy data according to debugged side's demand, and data shown by identical component or control, at the same in order to
Debugged side does synchronous debugging operation, and debugging side sets callback interface corresponding with debugged side, and the readjustment of debugging side
Interface is registered to debugged side, acts on behalf of counterfoil interface in this, as debugged side.
(4) debugging side gets debugged square control scheme by fuzzy matching, to obtain the root of debugged number formulary evidence
Data are shown to the mirror of debugging side using searching loop mode with, the service logic of packed sub-interface and data by interface
In the same interface of picture.Debugging root acts on behalf of counterfoil interface and can carry out remote synchronization operation at any time according to acquisition.
(5) when operating debugging side interface, the interface state that acting on behalf of counterfoil interface by calling would indicate that, which is sent to, to be adjusted
The true service logic interface of examination side, and same interface state is shown in debugged side.
(6) when operation is debugged square interface, the interface state that acting on behalf of counterfoil interface by calling would indicate that is sent to tune
The true callback interface of examination side, and same interface state is shown in debugging side.
Claims (8)
1. a kind of method for realizing remote debugging, the long-range tune carried out based on the striding course communication technology and mirror image operation mode
Examination, which is characterized in that remote debugging client sends Debugging message to debugging side's client, the described method comprises the following steps:
S1, debugged side provide the function for needing to debug and data, and data and interface with various API(Application
Programming Interface application programming interfaces) it is encapsulated in a manner of object-oriented, it is finally packaged into data flow and is sent to
Client process;
S2, debugging side define callback interface, and using the Windows bottom striding course communication technology obtain debugged square client into
The data of journey and the column collection of serializing interface;
S3, the data packet obtained based on the Window bottom striding course communication technology by the data of debugged side's client process and are connect
The column collection of mouth is wandering to integrate corresponding interface and data, and callback interface is registered to debugged side;
The data flow unserializing that S4, debugging side will acquire and will be counted at the set of data and function according to the logic of interface
According to being mirrored to debugging side's client-side program, and then pass through the progress remote debugging of the interface of debugging side.
2. a kind of method for realizing remote debugging as described in claim 1, which is characterized in that in the step S1, be debugged side
The function for needing to debug and data are provided, and data and interface are encapsulated in a manner of object-oriented, are finally packaged into data flow
It is sent to client process.
3. a kind of method for realizing remote debugging as described in claim 1, which is characterized in that in the step S2 and step S3,
Striding course is to carry out data exchange based on the communication technology of Windows bottom.
4. a kind of method for realizing remote debugging as described in claim 1, which is characterized in that in the step S2, debug Fang Ding
Adopted callback interface obtains the data and serializing of debugged square client process using the Windows bottom striding course communication technology
Interface stream.
5. a kind of method for realizing remote debugging as described in claim 1, which is characterized in that in the step S3, will be debugged
The data of square client process and the column collection of interface scatter and integrate corresponding interface and data.
6. a kind of method for realizing remote debugging as described in claim 1, which is characterized in that in the step S4, debugging side will
The data flow unserializing got at data and function set, and according to the logic of interface by data image to debugging side visitor
Family end program.
7. a kind of method for realizing remote debugging as claimed in claim 5, which is characterized in that by debugged side's client process
The column collection of data and interface is wandering integrate corresponding interface and data after, callback interface is registered to debugged side.
8. a kind of method for realizing remote debugging as claimed in claim 6, which is characterized in that mirror image operation is will be from debugged side
Graphical interfaces of the interface that client obtains with data clone as, and then remote debugging is carried out by the interface of debugging side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810470483.XA CN110502418B (en) | 2018-05-17 | 2018-05-17 | Method for realizing remote debugging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810470483.XA CN110502418B (en) | 2018-05-17 | 2018-05-17 | Method for realizing remote debugging |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110502418A true CN110502418A (en) | 2019-11-26 |
CN110502418B CN110502418B (en) | 2023-05-23 |
Family
ID=68585042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810470483.XA Active CN110502418B (en) | 2018-05-17 | 2018-05-17 | Method for realizing remote debugging |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110502418B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112882950A (en) * | 2021-03-18 | 2021-06-01 | 北京字节跳动网络技术有限公司 | Application debugging method and device, electronic equipment and computer readable storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010025920A (en) * | 1999-09-01 | 2001-04-06 | 윤종용 | Debuger for remote processor in exchanging system and debugging method thereof |
CN1811717A (en) * | 2006-01-10 | 2006-08-02 | 杭州东信灵通电子实业公司 | Universal interprocess communication achieving method |
CN1901569A (en) * | 2006-07-05 | 2007-01-24 | 华为技术有限公司 | Remote regulating method and system |
CN101401333A (en) * | 2006-04-24 | 2009-04-01 | 华为技术有限公司 | A debugging method and apparatus for performing telecom class service development based on model driven |
CN101630272A (en) * | 2009-08-19 | 2010-01-20 | 用友软件股份有限公司 | Process scheduling method and system |
CN102289403A (en) * | 2010-06-15 | 2011-12-21 | 微软公司 | Script debugging |
CN102411535A (en) * | 2011-08-02 | 2012-04-11 | 上海交通大学 | Navigating-SoC (System On Chip) simulating, verifying and debugging platform |
CN103678135A (en) * | 2013-12-25 | 2014-03-26 | 普元信息技术股份有限公司 | System and method for achieving cross-process and cross-thread debugging in large-data environment |
CN103856361A (en) * | 2012-11-29 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for realizing remote debugging |
CN104023154A (en) * | 2013-02-28 | 2014-09-03 | 京瓷办公信息系统株式会社 | Debug system |
CN104298602A (en) * | 2014-10-27 | 2015-01-21 | 北京神州绿盟信息安全科技股份有限公司 | Method and device for debugging application program |
CN104750603A (en) * | 2013-12-30 | 2015-07-01 | 联芯科技有限公司 | Multi-core DSP (Digital Signal Processor) software emulator and physical layer software testing method thereof |
CN107040777A (en) * | 2017-06-08 | 2017-08-11 | 深圳市创维软件有限公司 | A kind of remote debugging method, set top box and server |
-
2018
- 2018-05-17 CN CN201810470483.XA patent/CN110502418B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010025920A (en) * | 1999-09-01 | 2001-04-06 | 윤종용 | Debuger for remote processor in exchanging system and debugging method thereof |
CN1811717A (en) * | 2006-01-10 | 2006-08-02 | 杭州东信灵通电子实业公司 | Universal interprocess communication achieving method |
CN101401333A (en) * | 2006-04-24 | 2009-04-01 | 华为技术有限公司 | A debugging method and apparatus for performing telecom class service development based on model driven |
CN1901569A (en) * | 2006-07-05 | 2007-01-24 | 华为技术有限公司 | Remote regulating method and system |
CN101630272A (en) * | 2009-08-19 | 2010-01-20 | 用友软件股份有限公司 | Process scheduling method and system |
CN102289403A (en) * | 2010-06-15 | 2011-12-21 | 微软公司 | Script debugging |
CN102411535A (en) * | 2011-08-02 | 2012-04-11 | 上海交通大学 | Navigating-SoC (System On Chip) simulating, verifying and debugging platform |
CN103856361A (en) * | 2012-11-29 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for realizing remote debugging |
CN104023154A (en) * | 2013-02-28 | 2014-09-03 | 京瓷办公信息系统株式会社 | Debug system |
CN103678135A (en) * | 2013-12-25 | 2014-03-26 | 普元信息技术股份有限公司 | System and method for achieving cross-process and cross-thread debugging in large-data environment |
CN104750603A (en) * | 2013-12-30 | 2015-07-01 | 联芯科技有限公司 | Multi-core DSP (Digital Signal Processor) software emulator and physical layer software testing method thereof |
CN104298602A (en) * | 2014-10-27 | 2015-01-21 | 北京神州绿盟信息安全科技股份有限公司 | Method and device for debugging application program |
CN107040777A (en) * | 2017-06-08 | 2017-08-11 | 深圳市创维软件有限公司 | A kind of remote debugging method, set top box and server |
Non-Patent Citations (3)
Title |
---|
王位杰;王铮;: "基于网络的虚拟调试环境的研究" * |
王位杰;王铮;: "基于网络的虚拟调试环境的研究", 计算机技术与发展 * |
陆岳: "GNU/Hurd上远程调试的实现" * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112882950A (en) * | 2021-03-18 | 2021-06-01 | 北京字节跳动网络技术有限公司 | Application debugging method and device, electronic equipment and computer readable storage medium |
CN112882950B (en) * | 2021-03-18 | 2023-07-25 | 抖音视界有限公司 | Application debugging method and device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110502418B (en) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zitterbart et al. | A model for flexible high-performance communication subsystems | |
US11178259B2 (en) | Methods and apparatus for regulating networking traffic in bursty system conditions | |
Li et al. | Research based on OSI model | |
US9288132B2 (en) | Method and system for monitoring messages passed over a network | |
US6578084B1 (en) | Packet processing using encapsulation and decapsulation chains | |
JPH09506726A (en) | Object-oriented network protocol configuration system | |
HU225569B1 (en) | Method, apparatus and computer program product for reducing data transmitted over an external communication link usig the tcp protocol between computer applications | |
CN109815025A (en) | Business model call method, device and storage medium | |
Box et al. | ADAPTIVE: An Object-Oriented Framework for Flexible and Adaptive Communication Protocols | |
CN105391804A (en) | Remote invocation method capable of reducing transmission flow | |
CN110502418A (en) | A method of realizing remote debugging | |
Plagemann | A framework for dynamic protocol configuration | |
Vogt et al. | A run-time environment for da capo | |
US10505760B2 (en) | Hierarchical encapsulation acceleration | |
CN109388388A (en) | Information interacting method, device, equipment and storage medium between functional module | |
CN110324365A (en) | Without key front end cluster system, application method, storage medium, electronic device | |
CN103888333B (en) | Synthetic aperture radar control interface network | |
Plagemann et al. | CoRA—a heuristic for protocol configuration and resource allocation | |
Garcia et al. | NUBOMEDIA: an elastic PaaS enabling the convergence of real-time and big data multimedia | |
Ravindran et al. | Object-oriented communication structures for multimedia data transport | |
CN104639335B (en) | The second development system and its method of intelligent network adapter driving | |
CN111586040A (en) | High-performance network data receiving method and system | |
CN109639458B (en) | Method and device for realizing QOS strategy | |
WO2012116511A1 (en) | Web-based collaboration modeling processing method and system | |
Bresnahan et al. | Communication services for advanced network applications. |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |