CN107277107B - Application debugging method, device and system - Google Patents

Application debugging method, device and system Download PDF

Info

Publication number
CN107277107B
CN107277107B CN201710350016.9A CN201710350016A CN107277107B CN 107277107 B CN107277107 B CN 107277107B CN 201710350016 A CN201710350016 A CN 201710350016A CN 107277107 B CN107277107 B CN 107277107B
Authority
CN
China
Prior art keywords
debugging
application
vdi
data
cloud desktop
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.)
Active
Application number
CN201710350016.9A
Other languages
Chinese (zh)
Other versions
CN107277107A (en
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201710350016.9A priority Critical patent/CN107277107B/en
Publication of CN107277107A publication Critical patent/CN107277107A/en
Application granted granted Critical
Publication of CN107277107B publication Critical patent/CN107277107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention discloses an application debugging method, which is applied to a VDI terminal, wherein the VDI terminal is provided with an application, and the method comprises the following steps: the method comprises the steps that a VDI terminal monitors a debugging request sent by a cloud desktop based on an established data channel; acquiring corresponding debugging data in an application based on the debugging request; and feeding back the acquired debugging data to the cloud desktop through the data channel so that the cloud desktop executes debugging operation based on the received debugging data. The invention also discloses an application debugging device and system. According to the invention, the application is installed in the VDI terminal so as to realize the debugging of the application by the cloud desktop, the problem of application debugging failure caused by incompatibility of intelligent device drivers is avoided, and meanwhile, the efficiency of application development and debugging is also improved.

Description

Application debugging method, device and system
Technical Field
The invention relates to the technical field of computers, in particular to an application debugging method, device and system.
Background
With the development of servers and networks, desktop virtualization technologies are more and more widely applied, but in the process of popularization, the virtualization technologies also bring new problems. In the process of developing and debugging an application through a cloud desktop by a development platform, the following problems are mainly encountered:
1. when intelligent equipment (such as a mobile phone) is used for connecting a data line to carry out application debugging, the problem that various drivers cannot be compatible and the application debugging fails is often encountered;
2. when the simulator is used for application debugging on the cloud desktop of the development platform, the consumption performance of the simulator is compared when the cloud desktop is loaded and operated, so that the cloud desktop is not smooth, and the application debugging efficiency is influenced.
Disclosure of Invention
The invention mainly aims to provide an application debugging method, device and system, and aims to solve the technical problems that application debugging fails easily or debugging efficiency is low in a traditional application debugging mode.
In order to achieve the above object, the application debugging method provided by the present invention is applied to a VDI terminal, where an application is installed on the VDI terminal, and the application debugging method includes:
the method comprises the steps that a VDI terminal monitors a debugging request sent by a cloud desktop based on an established data channel;
acquiring corresponding debugging data in an application based on the debugging request;
and feeding back the acquired debugging data to the cloud desktop through the data channel so that the cloud desktop executes debugging operation based on the received debugging data.
Preferably, before the step of monitoring the debugging request sent by the cloud desktop by the VDI terminal based on the established data channel, the application debugging method further includes:
determining a mode of a data channel to be established;
and establishing a data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop based on the determined mode.
Preferably, the VDI terminal is installed with a debug bridge server, and the step of obtaining corresponding debug data in an application based on the debug request includes:
and transmitting the debugging request to a debugging bridge service end, and acquiring debugging data corresponding to the debugging request in an application by the debugging bridge service end.
In addition, in order to achieve the above object, the present invention further provides an application debugging apparatus, applied to a server, applied to a VDI terminal, where an application is installed on the VDI terminal, the application debugging apparatus including:
the monitoring module is used for monitoring a debugging request sent by the cloud desktop based on the established data channel;
the acquisition module is used for acquiring corresponding debugging data in an application based on the debugging request;
and the feedback module is used for feeding back the acquired debugging data to the cloud desktop through the data channel so that the cloud desktop executes debugging operation based on the received debugging data.
Preferably, the application debugging apparatus further includes:
the determining module is used for determining a mode of a data channel to be established;
and the establishing module is used for establishing a data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop based on the determined mode.
Preferably, the VDI terminal is installed with a debugging bridge server, and the obtaining module is further configured to transmit the debugging request to the debugging bridge server, and the debugging bridge server obtains debugging data corresponding to the debugging request in an application.
In addition, to achieve the above object, the present invention further provides an application debugging system, where the application debugging system includes a VDI terminal and a cloud desktop, where the VDI terminal is the application debugging apparatus described above, and the cloud desktop includes:
the determining module is used for determining the VDI terminal to be connected according to the established data channel;
a sending module, configured to send a debug request to the VDI terminal through the data channel, so that the VDI terminal feeds back debug data based on the debug request;
and the debugging module is used for executing debugging operation when the debugging data fed back by the VDI terminal is received through the data channel.
Preferably, the cloud desktop is installed with a debugging bridge client, and the sending module includes:
the receiving unit is used for receiving the debugging request transmitted by the debugging bridge client;
and the sending unit is used for sending the received debugging request to the VDI terminal through the data channel.
Preferably, the debugging module is further configured to transmit the debugging data to the debugging bridge client when the debugging data fed back by the VDI terminal is received through the data channel, and the debugging bridge client executes the debugging operation.
According to the application debugging method, device and system provided by the invention, the VDI terminal monitors the debugging request sent by the cloud desktop based on the established data channel, acquires the corresponding debugging data in the application based on the debugging request, and finally feeds the acquired debugging data back to the cloud desktop through the data channel so that the cloud desktop can execute debugging operation based on the received debugging data. According to the invention, the application is installed in the VDI terminal so as to realize the debugging of the application by the cloud desktop, and the VDI terminal does not need to install a driver, so that the problem of application debugging failure caused by incompatible drivers is avoided, and the problem of application debugging blockage caused by the operation of a simulator by the cloud desktop is also avoided, thereby improving the efficiency of application development and debugging.
Drawings
FIG. 1 is a diagram of a prior art application debugging architecture;
FIG. 2 is a flowchart illustrating a preferred embodiment of an application debugging method according to the present invention;
FIG. 3 is a schematic diagram of a debug bridge connection;
FIG. 4 is a diagram illustrating a preferred embodiment of the present invention;
FIG. 5 is a diagram of an application debugging architecture of the present invention;
FIG. 6 is a functional block diagram of an exemplary embodiment of an application debugging apparatus according to the present invention;
FIG. 7 is a functional block diagram of an embodiment of an application debugging system.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: the method comprises the steps that a VDI terminal monitors a debugging request sent by a cloud desktop based on an established data channel, acquires corresponding debugging data in application based on the debugging request, and finally feeds the acquired debugging data back to the cloud desktop through the data channel so that the cloud desktop executes debugging operation based on the received debugging data. The problem of traditional application debugging mode, because of the drive incompatibility of smart machine leads to the application debugging to fail, or because of the cloud desktop operation simulator makes application debugging card pause, and lead to debugging inefficiency is solved in order to solve.
It should be understood that, in the prior art, the intelligent device generally adopts a mode of connecting a data line with a cloud desktop to debug the application, and the application debugging is easy to fail due to the incompatibility of the drivers; or, the cloud desktop runs the simulator to realize debugging of the application, and the debugging efficiency is low because the debugging of the application is easy to jam when the simulator is run. Therefore, based on the problems in the prior art, it is considered that the smart device connects to the cloud desktop through a TCP (Transmission Control Protocol) to debug the application.
However, when the intelligent device is connected to the TCP for debugging, data forwarding needs to be performed through the VDI terminal to realize application debugging, as shown in fig. 1, but since the cloud desktop is in the isolation network and is not in the same network as the VDI terminal, the cloud desktop is easily unable to connect to the intelligent device, and application debugging fails. That is, even if the smart device is connected to the VDI terminal, application debugging failure is easily caused.
Based on the problems in the prior art, the invention provides an application debugging method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a preferred embodiment of the application debugging method according to the present invention.
The embodiment provides an application debugging method, which is applied to a VDI terminal, wherein an application is installed on the VDI terminal, and the application debugging method includes:
the method comprises the steps that a VDI terminal monitors a debugging request sent by a cloud desktop based on an established data channel; acquiring corresponding debugging data in an application based on the debugging request; and feeding back the acquired debugging data to the cloud desktop through the data channel so that the cloud desktop executes debugging operation based on the received debugging data.
In this embodiment, the VDI (Virtual Desktop Infrastructure) terminal includes a terminal such as a thin client or a general PC (Personal Computer), but is not limited to the above two types, and any terminal that can be a VDI client may be used as the VDI terminal. The VDI terminal needs to be provided with an operating system, and the operating system includes but is not limited to an Android system, a windows system, a linux system or a mac osx system.
In this embodiment, applications are installed on the VDI terminal, the number and types of the applications are not limited, and the applications may be Android applications, ios applications, and the like, and then the debugging of the applications is completed based on the installed applications. For convenience of understanding, the installed application is preferably explained by taking an Android application as an example. The cloud desktop in this implementation refers to a remote desktop that is associated with a development platform and displayed on a user terminal, such as a user computer.
It should be understood that, in the present scheme, to implement debugging of an application through a VDI terminal, a preset technology, such as a usb redirection technology, needs to redirect a usb driver in the VDI terminal to a cloud desktop associated with a development platform, and the cloud desktop uses the VDI terminal as a debugging device of the cloud desktop to implement debugging of the application. Or a TCP/IP module in the VDI terminal is mapped to a cloud desktop associated with the development platform through a socket technology, and the cloud desktop takes the VDI terminal as debugging equipment of the cloud desktop to realize debugging of the application.
Before the step of monitoring a debugging request sent by a cloud desktop based on the established data channel by the VDI terminal, the application debugging method further includes:
step a, determining a mode of a data channel to be established;
and b, establishing a data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop based on the determined mode.
The method for establishing the data channel includes, but is not limited to: usb mode, tcp proxy protocol mode, or udp proxy protocol mode. In this embodiment, the VDI terminal is integrated with a VDI client, and the cloud desktop is integrated with a VDI agent, so that after the mode of the data channel to be established is determined, the data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop can be established based on the determined mode. Subsequently, based on the established data channel, data transmission in the VDI terminal and the cloud desktop is achieved. Hereinafter, for better understanding, the explanation is preferably made by taking the usb mode and the tcp proxy protocol as examples. The usb mode is a mode of usb data line connection through a data line, and the tcp proxy protocol is a mode of network transmission.
The following are specific steps for gradually implementing application debugging in this embodiment:
step S10, the VDI terminal monitors a debugging request sent by the cloud desktop based on the established data channel;
in this embodiment, after the data channel is established, the VDI terminal monitors the debugging request sent by the cloud desktop based on the VDI agent through the VDI client, and in order to make application debugging more timely, the monitoring mode preferably adopts a real-time monitoring mode to monitor the debugging request.
Step S20, acquiring corresponding debugging data in the application based on the debugging request;
when a debugging request sent by a cloud desktop based on a VDI agent is monitored through a VDI client, an application to be debugged is determined according to the debugging request, and then corresponding debugging data is obtained in the determined application based on the monitored debugging request.
Specifically, the VDI terminal is installed with a debug bridge server, and the debug bridge server inside the VDI terminal is in communication connection with the VDI client, so that the implementation manner of step S20 includes:
and the VDI terminal transmits the debugging request monitored by the VDI client to a debugging bridge server, and the debugging bridge server acquires debugging data corresponding to the debugging request in application.
For better understanding of the embodiment, referring to fig. 3, an implementation principle of a Debug Bridge adb (an Android Debug Bridge for Android application development, a Bridge for developing and connecting Android device debugging) is first set forth, the adb Debug Bridge is divided into two parts, namely, a server (adbd) and a client (adb), the adbd (server) runs on a VDI terminal, and the adb (client) runs on a cloud desktop. As shown in fig. 3, the adb client and the service end adbd realize establishment of a data channel through two modes, namely tcp proxy protocol and usb connection line, and realize transmission of data based on the established data channel.
Taking fig. 3 as an example, when the VDI terminal listens to a debugging request sent by the cloud desktop based on the VDI agent through the VDI client, the VDI terminal transmits the debugging request to the adbd, and the adbd acquires debugging data corresponding to the debugging request in an application (such as app1 or app2 in fig. 3).
Step S30, the acquired debugging data is fed back to the cloud desktop through the data channel, so that the cloud desktop executes debugging operations based on the received debugging data.
After the debugging data corresponding to the debugging request is obtained, the debugging data is fed back to the cloud desktop through the VDI client of the data channel, so that the cloud desktop executes debugging operation based on the debugging data received by the VDI agent. Since the cloud desktop executes the debugging operation based on the received debugging data, which belongs to the existing debugging mode, no further description is given here.
For better understanding, referring to fig. 4, the VDI terminal includes an adbd server and a VDI client, and the cloud desktop includes a VDI Agent (VDI Agent) and an adb client. The data channel is established between the VDI client and the VDI agent, and data interacted between the adb client and the adbd server are transmitted through the data channel. The VDI client may implement delivery of data to adbs through a usb driver or a tcp proxy. The VDI agent may also deliver data to the adbd server via a usb driver or a tcp proxy.
With reference to fig. 3 and 4, when the data transmission mode is usb line transmission, the adbd server writes data into the usb driver, the VDI client reads the data in the usb driver, and forwards the data to the VDI agent of the cloud desktop through the data channel, the VDI agent writes the data into the local usb driver of the cloud desktop, and the adb client of the cloud desktop reads the data from the local usb driver.
When the data transmission mode is tcp proxy protocol transmission, the adbd server forwards the data to the VDI client, the VDI client transmits the data to the VDI proxy through the tcp protocol, and the VDI proxy transmits the data to the abd client of the cloud desktop to complete data transmission.
Of course, the VDI architecture according to this solution is not limited to the deployment diagram mentioned in fig. 4, as long as the VDI architecture according to the concept of this solution is within the protection scope of this solution.
Furthermore, the VDI terminal in the scheme may further build a simulator, for example, an Android simulator, so as to implement application debugging of the cloud desktop based on the Android simulator in the VDI terminal.
It can be understood that the application developed by the virtual desktop is transferred to the VDI terminal for debugging by using the hardware and system characteristics of the VDI terminal in the scheme, which is equivalent to providing a scheme for debugging the application by the virtual desktop, and a user can directly use the VDI terminal for debugging the application without additional debugging equipment during development, as shown in fig. 5, so that the expenditure of debugging equipment can be reduced, the problem of virtual desktop jamming caused by running a simulator on the cloud desktop is also avoided, and the efficiency of application development and debugging is improved.
In the application debugging method provided by this embodiment, the VDI terminal monitors a debugging request sent by the cloud desktop based on the established data channel, acquires corresponding debugging data in an application based on the debugging request, and finally feeds back the acquired debugging data to the cloud desktop through the data channel, so that the cloud desktop executes debugging operations based on the received debugging data. According to the invention, the application is installed in the VDI terminal so as to realize the debugging of the application by the cloud desktop, and the VDI terminal does not need to install a driver, so that the problem of application debugging failure caused by incompatible drivers is avoided, and the problem of application debugging blockage caused by the operation of a simulator by the cloud desktop is also avoided, thereby improving the efficiency of application development and debugging.
The invention further provides an application debugging device.
Referring to fig. 6, fig. 6 is a functional block diagram of a preferred embodiment of the application debugging apparatus of the present invention.
It should be emphasized that the functional block diagram shown in fig. 6 is merely an exemplary diagram of a preferred embodiment, and those skilled in the art can easily add new functional blocks around the functional block of the application debugging apparatus shown in fig. 6; the names of the functional modules are self-defined names which are only used for assisting in understanding the program functional blocks of the application debugging device and are not used for limiting the technical scheme of the invention, and the core of the technical scheme of the invention is the functions which are to be achieved by the functional modules with the respective defined names.
This embodiment proposes an application debugging device, is applied to the VDI terminal, the VDI terminal is installed with the application, the application debugging device includes:
the monitoring module 10 is configured to monitor a debugging request sent by the cloud desktop based on the established data channel;
an obtaining module 20, configured to obtain, based on the debugging request, corresponding debugging data in an application;
the feedback module 30 is configured to feed back the acquired debugging data to the cloud desktop through the data channel, so that the cloud desktop executes debugging operations based on the received debugging data.
In this embodiment, the VDI (Virtual Desktop Infrastructure) terminal includes a terminal such as a thin client or a general PC (Personal Computer), but is not limited to the above two types, and any terminal that can be a VDI client may be used as the VDI terminal. The VDI terminal needs to be provided with an operating system, and the operating system includes but is not limited to an Android system, a windows system, a linux system or a mac osx system.
In this embodiment, applications are installed on the VDI terminal, the number and types of the applications are not limited, and the applications may be Android applications, ios applications, and the like, and then the debugging of the applications is completed based on the installed applications. For convenience of understanding, the installed application is preferably explained by taking an Android application as an example. The cloud desktop in this implementation refers to a remote desktop that is associated with a development platform and displayed on a user terminal, such as a user computer.
It should be understood that, in the present scheme, to implement debugging of an application through a VDI terminal, a preset technology, such as a usb redirection technology, needs to redirect a usb driver in the VDI terminal to a cloud desktop associated with a development platform, and the cloud desktop uses the VDI terminal as a debugging device of the cloud desktop to implement debugging of the application. Or a TCP/IP module in the VDI terminal is mapped to a cloud desktop associated with the development platform through a socket technology, and the cloud desktop takes the VDI terminal as debugging equipment of the cloud desktop to realize debugging of the application.
In this embodiment, the application debugging apparatus further includes:
the first determining module is used for determining the mode of a data channel to be established;
and the establishing module is used for establishing a data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop based on the determined mode.
The method for establishing the data channel includes, but is not limited to: usb mode, tcp proxy protocol mode, or udp proxy protocol mode. In this embodiment, the VDI terminal is integrated with a VDI client, and the cloud desktop is integrated with a VDI agent, so that after the first determining module determines the manner of the data channel to be established, the establishing module may establish the data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop based on the determined manner. Subsequently, based on the established data channel, data transmission in the VDI terminal and the cloud desktop is achieved. Hereinafter, for better understanding, the explanation is preferably made by taking the usb mode and the tcp proxy protocol as examples. The usb mode is a mode of usb data line connection through a data line, and the tcp proxy protocol is a mode of network transmission.
The following are the modules for implementing application debugging in this embodiment, and the introduction of the module functions:
the monitoring module 10 is configured to monitor a debugging request sent by the cloud desktop based on the established data channel;
after the data channel is established, the monitoring module 10 monitors the debugging request sent by the cloud desktop based on the VDI agent through the VDI client, and preferably, the monitoring mode adopts a real-time monitoring mode to monitor the debugging request.
An obtaining module 20, configured to obtain, based on the debugging request, corresponding debugging data in an application;
when a debugging request sent by the cloud desktop based on the VDI agent is monitored through the VDI client, an application to be debugged is determined according to the debugging request, and then the acquisition module 20 acquires corresponding debugging data in the determined application based on the monitored debugging request.
Specifically, the VDI terminal is provided with a debugging bridge server, and the internal debugging bridge server of the VDI terminal is in communication connection with the VDI client, so that the obtaining module 20 is further configured to transmit the debugging request to the debugging bridge server, and the debugging bridge server obtains the debugging data corresponding to the debugging request in the application.
For better understanding of the embodiment, referring to fig. 3, an implementation principle of a Debug Bridge adb (an Android Debug Bridge for Android application development, a Bridge for developing and connecting Android device debugging) is first set forth, the adb Debug Bridge is divided into two parts, namely, a server (adbd) and a client (adb), the adbd (server) runs on a VDI terminal, and the adb (client) runs on a cloud desktop. As shown in fig. 3, the adb client and the service end adbd realize establishment of a data channel through two modes, namely tcp proxy protocol and usb connection line, and realize transmission of data based on the established data channel.
Taking fig. 3 as an example, when the VDI terminal monitors a debugging request sent by the cloud desktop based on the VDI agent through the VDI client, the obtaining module 20 transmits the debugging request to the adbd, and the adbd obtains debugging data corresponding to the debugging request in an application (such as app1 or app2 in fig. 3).
The feedback module 30 is configured to feed back the acquired debugging data to the cloud desktop through the data channel, so that the cloud desktop executes debugging operations based on the received debugging data.
After the debugging data corresponding to the debugging request is acquired, the feedback module 30 feeds the debugging data back to the cloud desktop through the VDI client of the data channel, so that the cloud desktop executes debugging operations based on the debugging data received by the VDI agent. Since the cloud desktop executes the debugging operation based on the received debugging data, which belongs to the existing debugging mode, no further description is given here.
For better understanding, referring to fig. 4, the VDI terminal includes an adbd server and a VDI client, and the cloud desktop includes a VDI Agent (VDI Agent) and an adb client. The data channel is established between the VDI client and the VDI agent, and data interacted between the adb client and the adbd server are transmitted through the data channel. The VDI client may implement delivery of data to adbs through a usb driver or a tcp proxy. The VDI agent may also deliver data to the adbd server via a usb driver or a tcp proxy.
With reference to fig. 3 and 4, when the data transmission mode is usb line transmission, the adbd server writes data into the usb driver, the VDI client reads the data in the usb driver, and forwards the data to the VDI agent of the cloud desktop through the data channel, the VDI agent writes the data into the local usb driver of the cloud desktop, and the adb client of the cloud desktop reads the data from the local usb driver.
When the data transmission mode is tcp proxy protocol transmission, the adbd server forwards the data to the VDI client, the VDI client transmits the data to the VDI proxy through the tcp protocol, and the VDI proxy transmits the data to the abd client of the cloud desktop to complete data transmission.
Of course, the VDI architecture according to this solution is not limited to the deployment diagram mentioned in fig. 4, as long as the VDI architecture according to the concept of this solution is within the protection scope of this solution.
Furthermore, the VDI terminal in the scheme may further build a simulator, for example, an Android simulator, so as to implement application debugging of the cloud desktop based on the Android simulator in the VDI terminal.
It can be understood that the application developed by the virtual desktop is transferred to the VDI terminal for debugging by using the hardware and system characteristics of the VDI terminal in the scheme, which is equivalent to providing a scheme for debugging the application by the virtual desktop, and a user can directly use the VDI terminal for debugging the application without additional debugging equipment during development, as shown in fig. 5, so that the expenditure of debugging equipment can be reduced, the problem of virtual desktop jamming caused by running a simulator on the cloud desktop is also avoided, and the efficiency of application development and debugging is improved.
In the application debugging device provided by this embodiment, the VDI terminal monitors the debugging request sent by the cloud desktop based on the established data channel, acquires the corresponding debugging data in the application based on the debugging request, and finally feeds back the acquired debugging data to the cloud desktop through the data channel, so that the cloud desktop executes the debugging operation based on the received debugging data. According to the invention, the application is installed in the VDI terminal so as to realize the debugging of the application by the cloud desktop, and the VDI terminal does not need to install a driver, so that the problem of application debugging failure caused by incompatible drivers is avoided, and the problem of application debugging blockage caused by the operation of a simulator by the cloud desktop is also avoided, thereby improving the efficiency of application development and debugging.
The invention further provides an application debugging system.
Referring to fig. 7, fig. 7 is a functional block diagram of an embodiment of the present invention.
This embodiment provides an application debugging system, where the application debugging system includes a VDI terminal and a cloud desktop, where the VDI terminal is the above-mentioned application debugging device, and the cloud desktop includes:
a second determining module 40, configured to determine, according to the established data channel, a VDI terminal to be connected;
a sending module 50, configured to send a debug request to the VDI terminal through the data channel, so that the VDI terminal feeds back debug data based on the debug request;
and the debugging module 60 is configured to execute a debugging operation when the debugging data fed back by the VDI terminal is received through the data channel.
In this embodiment, a data channel with the cloud desktop is established by the VDI terminal, then the second determining module 40 of the cloud desktop determines the VDI terminal to be connected according to the established data channel, and after the VDI terminal to be connected is determined, if it is detected that the user touches or clicks an application debugging control in a preset interface, at this time, the sending module 50 sends a debugging request to the VDI terminal, specifically, sends the debugging request to the VDI terminal through the VDI agent, so that the VDI terminal feeds back debugging data based on the debugging request. When the debugging data fed back by the VDI terminal is received through the VDI agent, the debugging module 60 can perform the debugging operation.
Further, if the cloud desktop is installed with a debug bridge client, that is, the adb client described above, then the sending module 50 includes:
the receiving unit is used for receiving the debugging request transmitted by the debugging bridge client;
and the sending unit is used for sending the received debugging request to the VDI terminal through the data channel.
Namely, when detecting that a user touches or clicks an application debugging control in a preset interface, a debugging bridge client generates a debugging request, then transmits the debugging request to a receiving unit, and after the receiving unit receives the debugging request transmitted by the debugging bridge client, a sending unit sends the debugging request to the VDI terminal through a VDI agent so that the VDI terminal can feed back debugging data.
Further, the debugging module 60 is further configured to transmit the debugging data to the debugging bridge client when the debugging data fed back by the VDI terminal is received through the data channel, and the debugging bridge client executes the debugging operation.
Namely, when the cloud desktop receives the debugging data fed back by the VDI terminal through the VDI agent, the debugging data is transmitted to the debugging bridge client, and the debugging bridge client executes the debugging operation.
In the application debugging system provided in this embodiment, the cloud desktop determines the VDI terminal to be connected according to the established data channel, then sends a debugging request to the VDI terminal through the data channel, so that the VDI terminal feeds back debugging data based on the debugging request, and finally executes a debugging operation when receiving the debugging data fed back by the VDI terminal through the data channel. According to the invention, the application is installed in the VDI terminal so as to realize the debugging of the application by the cloud desktop, and the VDI terminal does not need to install a driver, so that the problem of application debugging failure caused by incompatible drivers is avoided, meanwhile, the problem of application debugging blockage caused by the operation of a simulator by the cloud desktop is also avoided, and the efficiency of application development and debugging is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. An application debugging method is applied to a Virtual Desktop Infrastructure (VDI) terminal, wherein an application is installed in the VDI terminal, and the application debugging method comprises the following steps:
the method comprises the steps that a VDI terminal monitors a debugging request sent by a cloud desktop based on an established data channel;
acquiring corresponding debugging data in an application based on the debugging request;
feeding back the acquired debugging data to the cloud desktop through the data channel so that the cloud desktop can execute debugging operation based on the received debugging data;
the VDI terminal is provided with a debugging bridge server, and the step of acquiring corresponding debugging data in an application based on the debugging request comprises the following steps:
and transmitting the debugging request to a debugging bridge service end, and acquiring debugging data corresponding to the debugging request in an application by the debugging bridge service end.
2. The application debugging method of claim 1, wherein before the step of listening, by the VDI terminal, for the debugging request sent by the cloud desktop based on the established data channel, the application debugging method further comprises:
determining a mode of a data channel to be established;
and establishing a data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop based on the determined mode.
3. An application debugging apparatus, applied to a VDI terminal, the VDI terminal having an application installed thereon, the application debugging apparatus comprising:
the monitoring module is used for monitoring a debugging request sent by the cloud desktop based on the established data channel;
the acquisition module is used for acquiring corresponding debugging data in an application based on the debugging request;
the feedback module is used for feeding back the acquired debugging data to the cloud desktop through the data channel so that the cloud desktop can execute debugging operation based on the received debugging data;
the VDI terminal is provided with a debugging bridge server, the acquisition module is further used for transmitting the debugging request to the debugging bridge server, and the debugging bridge server acquires debugging data corresponding to the debugging request in application.
4. The application debugging apparatus of claim 3, wherein the application debugging apparatus further comprises:
the determining module is used for determining a mode of a data channel to be established;
and the establishing module is used for establishing a data channel between the VDI client of the VDI terminal and the VDI agent of the cloud desktop based on the determined mode.
5. An application debugging system, comprising a VDI terminal and a cloud desktop, wherein the VDI terminal comprises the application debugging apparatus of any one of claims 3 to 4, and the cloud desktop comprises:
the determining module is used for determining the VDI terminal to be connected according to the established data channel;
a sending module, configured to send a debug request to the VDI terminal through the data channel, so that the VDI terminal feeds back debug data based on the debug request;
the debugging module is used for executing debugging operation when the debugging data fed back by the VDI terminal is received through the data channel;
the debugging module is further configured to transmit the debugging data to the debugging bridge client when the debugging data fed back by the VDI terminal is received through the data channel, and the debugging bridge client executes a debugging operation.
6. The application debugging system of claim 5 wherein the cloud desktop is installed with a debugging bridge client, the sending module comprising:
the receiving unit is used for receiving the debugging request transmitted by the debugging bridge client;
and the sending unit is used for sending the received debugging request to the VDI terminal through the data channel.
CN201710350016.9A 2017-05-15 2017-05-15 Application debugging method, device and system Active CN107277107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710350016.9A CN107277107B (en) 2017-05-15 2017-05-15 Application debugging method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710350016.9A CN107277107B (en) 2017-05-15 2017-05-15 Application debugging method, device and system

Publications (2)

Publication Number Publication Date
CN107277107A CN107277107A (en) 2017-10-20
CN107277107B true CN107277107B (en) 2020-11-13

Family

ID=60064587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710350016.9A Active CN107277107B (en) 2017-05-15 2017-05-15 Application debugging method, device and system

Country Status (1)

Country Link
CN (1) CN107277107B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918587B (en) * 2017-11-15 2021-07-13 北京中电普华信息技术有限公司 Debugging method and system for application program
CN112187869A (en) * 2020-09-03 2021-01-05 京东数字科技控股股份有限公司 Remote debugging system and method of IOT device, electronic device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519719B2 (en) * 2004-04-15 2009-04-14 Agilent Technologies, Inc. Automatic creation of protocol dependent control path for instrument application
CN101754466B (en) * 2008-12-10 2012-09-05 运软网络科技(上海)有限公司 Mobile virtualized base installation and mobile virtualized base platform
US9251039B2 (en) * 2012-02-17 2016-02-02 Microsoft Technology Licensing, Llc Remote debugging as a service
CN103856361B (en) * 2012-11-29 2017-10-10 腾讯科技(深圳)有限公司 Realize the method and system of remote debugging
CN103916434A (en) * 2013-01-04 2014-07-09 中兴通讯股份有限公司 Application installation method, device and system
CN104503907B (en) * 2014-12-15 2017-08-29 深圳市盛弘电气股份有限公司 A kind of application program remote adjustment method and system based on Linux system
CN106453766B (en) * 2015-08-04 2019-04-09 阿里巴巴集团控股有限公司 Data transmission method, apparatus and system based on virtual machine

Also Published As

Publication number Publication date
CN107277107A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
KR102110698B1 (en) Terminal interconnection method, device and storage medium
CN102904959B (en) Network accelerating method and gateway
US9124494B2 (en) Method and apparatus of performing remote management of a managed machine
CN104461897A (en) Application program test method and device
CN105407008A (en) Reconnecting method and system for interrupted TCP (Transmission Control Protocol) connection, terminal and server
CN104486146A (en) Communication method for testing console and testing equipment
US9836958B2 (en) Device control method, server, system and computer storage medium
WO2019019864A1 (en) Communication system, method and apparatus for embedded self-service terminal
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
CN107277107B (en) Application debugging method, device and system
CN105337814A (en) Network equipment connection method, equipment and system
CN111159019B (en) Application program testing method, testing control terminal and testing terminal
CN110442506B (en) Log acquisition method, device, service server, system and storage medium
CN104424036A (en) Synchronous operation method and device of smart terminal
US20120191828A1 (en) Method and apparatus of performing remote command dispatching
CN106850554B (en) Method and device for dual-system directional connection
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN106657076B (en) TCP service implementation method and device for network name space
JP2014528110A (en) Method for updating a data card, personal computer, and data card
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
CN106878467A (en) The method and tele-control system of remote control equipment
CN106331051A (en) File transmission method and system, file receiving device and file transmission device
CN114619462A (en) Remote desktop control method based on robot flow automation
CN109933353B (en) Embedded Web-based controller firmware upgrading method
CN110971708B (en) Android and Ubuntu system information transmission method, system, device and medium

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