CN102902618B - The method of mobile device application development debugging and device - Google Patents

The method of mobile device application development debugging and device Download PDF

Info

Publication number
CN102902618B
CN102902618B CN201110213903.4A CN201110213903A CN102902618B CN 102902618 B CN102902618 B CN 102902618B CN 201110213903 A CN201110213903 A CN 201110213903A CN 102902618 B CN102902618 B CN 102902618B
Authority
CN
China
Prior art keywords
mobile device
developing engine
testing server
described mobile
debug command
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.)
Expired - Fee Related
Application number
CN201110213903.4A
Other languages
Chinese (zh)
Other versions
CN102902618A (en
Inventor
李永安
侯伟奕
周皓隽
陈斌
彭巧巧
徐谦
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110213903.4A priority Critical patent/CN102902618B/en
Publication of CN102902618A publication Critical patent/CN102902618A/en
Application granted granted Critical
Publication of CN102902618B publication Critical patent/CN102902618B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Embodiment of the present invention provides method and the device of the debugging of a kind of mobile device application development.First according to the commissioning device attribute that developing engine configures, the mobile device list meeting this commissioning device attribute specification is provided to described developing engine; According to the equipment connection request that developing engine is initiated, set up the connection between described developing engine and the mobile device selected by this developing engine; The application code forwarding developing engine initiation disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment; Forward the debug command that sends in application development debug process of developing engine to described mobile device, and forward the debug command that described mobile device returns and feed back to described developing engine.Just can be carried out the trace debug of source code level by said method to mobile device application program, improve the efficiency of application development commissioning.

Description

The method of mobile device application development debugging and device
Technical field
The present invention relates to mobile device technical field, particularly relate to method and the device of the debugging of a kind of mobile device application development.
Background technology
At present, in mobile device Develop Application System debug process, mainly contain two kinds of methods to carry out:
(1) simulator exploitation debugging, utilize Integrated Development Environment (IDE, IntegratedDevelopmentEnvironment) simulator integrated in and debugger carry out Develop Application System debugging, and application program is deployment, operates on simulator.
(2) prototype exploitation debugging, this mode is that mobile device is connected on developing engine by modes such as USB, and IDE recognizes this mobile device, and is deployed on mobile device by APD, debugs on the mobile apparatus.In prototype equipment during exploitation debugging, needing mobile device to be linked on developing engine, when there being multiple mobile device to access, a mobile device can only be selected.
In the prior art scheme, provide and a kind ofly can carry out the system of Application testing by remote access mobile phone, user can remote access mobile device by network, the button of straighforward operation mobile device, browse liquid crystal display, listen to equipment sound and use loudspeaker etc., and failure logging when can check that application program is run.But the application layer test after the scheme of prior art only provides application development to complete, can only the problem of records application program emerged in operation, the trace debug of source code level can not be carried out, once test is to problem, also need to return in local development environment and carry out commissioning again, thus have impact on the efficiency of application development commissioning.
Summary of the invention
Embodiments provide method and the device of the debugging of a kind of mobile device application development, the trace debug of source code level can be carried out mobile device application program, improve the efficiency of application development commissioning.
One aspect of the present invention has supplied a kind of method of mobile device application development debugging, comprising: the commissioning device attribute configured according to developing engine, provides the mobile device list meeting this commissioning device attribute specification to described developing engine; According to the equipment connection request that developing engine is initiated, set up the connection between described developing engine and the mobile device selected by this developing engine; The application code forwarding developing engine initiation disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment; Forward the debug command that sends in application development debug process of developing engine to described mobile device, and forward the debug command that described mobile device returns and feed back to described developing engine.
Further, according to the equipment connection request that developing engine is initiated, the connection of setting up between described developing engine and the mobile device selected by this developing engine specifically comprises: the equipment connection request initiated according to developing engine, prototype testing server and the mobile device selected by developing engine connect, and receive by the connection of setting up the connection response message that described mobile device returns; Described connection response message is transmitted to described developing engine, sets up the connection between described developing engine and described mobile device.
Further, said method also comprises: prototype testing server adds forwarding routing iinformation in Debugging message is transmitted, and set up the corresponding relation of described developing engine and described mobile device, and the resource status arranging described mobile device is debugging mode.
Further, debug command at least comprises one of issuing orders: breakpoint is set, checks breakpoint, single step perform, check variable and check internal memory.
Further, commissioning device attribute at least comprises with the next item down: device operating system version information, unit type information.
This fermentation provides the method for a kind of mobile device application development debugging on the other hand, comprise: send to prototype testing server and obtain list of devices request, carry commissioning device attribute in the request of described acquisition list of devices, and select mobile device to be debugged in meeting in the mobile device list of this commissioning device attribute specification of returning; By described prototype testing server to selected mobile device transmitting apparatus connection request, to set up the connection between described mobile device; Send application code by described prototype testing server to described mobile device and dispose request, the code portions of application program adjustable to be tested to be deployed on described mobile device, and start the application code of this deployment; The debug command sent by debugger in Integrated Development Environment IDE is transmitted to described mobile device by described prototype testing server; Receive the debug command feedback information that described prototype testing server is forwarded back to, and resolve by the debugger in described IDE, show this debug command feedback information.
Further, if described debug command is for arranging breakpoint, then describedly to be resolved by the debugger in IDE, show this debug command feedback information and specifically comprise: according to the debug command feedback information received, be associated with the breakpoint place in described application source code by the debugger in IDE, and shown this debug command feedback information.
Further, after connection between described foundation and described mobile device, also comprise: show the interface of described mobile device and the mobile device interface operated on this display window by display window, described mobile device is given in transmit operation instruction, and the described mobile device of reception display performs the interface after this operational order.
Further aspect of the present invention has supplied a kind of device of mobile device application development debugging, comprise: access scheduling unit, for the commissioning device attribute configured according to developing engine, provide the mobile device list meeting this commissioning device attribute specification to described developing engine; Connection management unit, for the equipment connection request initiated according to developing engine, sets up the connection between described developing engine and the mobile device selected by this developing engine; Application deployment unit, the application code of initiating for forwarding described developing engine disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment; Debugging message agent unit, for forwarding debug command that described developing engine sends in application development debug process to described mobile device, and forwards the debug command that described mobile device returns and feeds back to described developing engine.
Further, Debugging message setting unit, adds forwarding routing iinformation, set up the corresponding relation of described developing engine and the mobile device selected by this developing engine, and the resource status arranging described mobile device is debugging mode in transmitting at Debugging message.
Another aspect of the invention provides the developing engine of mobile device application development debugging, comprise: commissioning device acquiring unit, list of devices request is obtained for sending to prototype testing server, carry commissioning device attribute in the request of described acquisition list of devices, and select mobile device to be debugged in meeting in the mobile device list of this commissioning device attribute specification of returning; Connection management unit, for equipment connection request being sent to selected mobile device by described prototype testing server, sets up the connection between described mobile device; Disposing application program unit, described mobile device is sent to for application code being disposed request by described prototype testing server, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment; Debugging message administrative unit, is transmitted to described mobile device for the debug command sent by the debugger in Integrated Development Environment IDE by described prototype testing server, and receives the debug command feedback information that described prototype testing server is forwarded back to; Feedback information processing unit, for resolving, showing the debug command feedback information received by described Debugging message administrative unit by the debugger in described IDE.
Further, interface operation administrative unit, for being shown the interface of described mobile device by display window and the mobile device interface operated on this display window, described mobile device is given in transmit operation instruction, receive the described mobile device of display perform this operational order after interface.
As can be seen from above-mentioned provided technical scheme, first according to the commissioning device attribute that developing engine configures, provide the mobile device list meeting this commissioning device attribute specification to described developing engine; According to the equipment connection request that developing engine is initiated, set up the connection between described developing engine and the mobile device selected by this developing engine; The application code forwarding developing engine initiation disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment; Forward the debug command that sends in application development debug process of developing engine to described mobile device, and forward the debug command that described mobile device returns and feed back to described developing engine.Just can be carried out the trace debug of source code level by said method to mobile device application program, improve the efficiency of application development commissioning.
Accompanying drawing explanation
A kind of method flow schematic diagram that Fig. 1 provides by the embodiment of the present invention mobile device application development to debug;
The another kind of method flow schematic diagram that Fig. 2 provides by the embodiment of the present invention mobile device application development to debug;
The structural representation of the prototype testing server that Fig. 3 provides by the embodiment of the present invention mobile device application development to debug;
Fig. 4 provides by the embodiment of the present invention mobile device application development to debug the structural representation of developing engine;
Fig. 5 lifts by the embodiment of the present invention structural representation of developing engine specific implementation in instantiation.
Embodiment
Embodiments provide method and the device of the debugging of a kind of mobile device application development, the trace debug of source code level can be carried out to mobile device application program, improve the efficiency of application development commissioning, the demand of developer to various mobile platform, various terminal type exploitation commissioning can be met simultaneously.
For better describing embodiment of the present invention, existing by reference to the accompanying drawings the specific embodiment of the present invention to be described, be illustrated in figure 1 the embodiment of the present invention provide mobile device application development to debug a kind of method flow schematic diagram, described method comprises:
Step 11: the commissioning device attribute configured according to developing engine, provides the mobile device list meeting this commissioning device attribute specification to developing engine.
In this step, first can be sent according to developing engine by prototype testing server, the commissioning device attribute configured, the mobile device list meeting this commissioning device attribute specification is provided to described developing engine.The mark ID of each mobile device, connectivity port information is comprised in this mobile device list, and the whether information such as idle.In specific implementation, the commissioning device attribute that developing engine configures at least comprises with the next item down: device operating system version information, unit type information.Other device attribute information that certain this area can be expected also can meet the demands.
Step 12: the equipment connection request initiated according to developing engine, sets up the connection between described developing engine and the mobile device selected by this developing engine.
In this step, the equipment connection request can initiated according to developing engine by prototype testing server, connect with the mobile device selected by developing engine, receive the connection response message that described mobile device returns, described connection response message is transmitted to described developing engine, thus sets up the connection between described developing engine and described mobile device.In specific implementation, the interface information of mobile device can also be comprised in the connection response message that described mobile device returns, prototype testing server by described interface information by sending to described developing engine with the form of code stream after calculation code, such developing engine just can show the interface of mobile device after the decoding, so that developing engine shows the interface of described mobile device by display window, and the interface transmit operation instruction operating the mobile device of this screen message is to mobile device, after mobile device performs corresponding operating instruction, again the interface information after executable operations instruction is returned to prototype testing server, by prototype testing server by this interface information by sending to described developing engine with the form of code stream after calculation code, developing engine just can show the interface of the mobile device after executable operations instruction after the decoding.The interface of above-mentioned mobile device can be the whole mobile device interface such as mobile device screen and keyboard.
In specific implementation process, mobile device to be debugged is selected in the list of devices that user is provided at prototype testing server by developing engine, developing engine is to prototype testing server initiating equipment connection request, and this equipment connection request comprises mark ID and the connectivity port information of selected mobile device; Prototype testing server connects according to the mark ID of mobile device and connectivity port information and corresponding mobile device, and receive the screen message of mobile device, by this screen message by sending to developing engine with H264 code stream form after calculation code process, developing engine carries out decoding display to code stream information, and in Integrated Development Environment IDE, send debugging configuration successful response message further.
In addition, after described prototype testing server and the mobile device selected by developing engine connect, can also add in Debugging message is transmitted and forward routing iinformation, set up the corresponding relation of described developing engine and described mobile device, and the resource status arranging described mobile device is debugging mode, thus carry out early-stage preparations for the debugging of described mobile device, in specific implementation, the information such as the connectivity port of mobile device, mark ID in the forwarding routing iinformation added, can be comprised.
Step 13: the application code forwarding developing engine initiation disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment.
In this step, the application code deployment request of developing engine initiation can be forwarded to described mobile device by prototype testing server, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment.
In embodiments of the present invention, being deployed to, mobile device is the application program being in the development phase, and what dispose is the code of application program adjustable to be tested; And the application program completing exploitation is installed on mobile device, and debugging amendment can not be carried out to code.
In specific implementation process, user launches application is debugged, first initiate application code by IDE and dispose request message, this application code is disposed request message and is forwarded in prototype testing server by developing engine, prototype testing server is forwarded on corresponding mobile device, and dispose on the mobile apparatus at the code of application program adjustable send application code deployment success response message to developing engine afterwards.
This response message is forwarded to IDE by developing engine, IDE is after receiving this response message, by the forwarding of developing engine and prototype testing server, initiate to start application code request message to mobile device, the application code of deployment starts up after receiving and starting application code request by mobile device.
Step 14: forward the debug command that sends in application development debug process of developing engine to described mobile device, and forward the debug command that described mobile device returns and feed back to described developing engine.
In this step, debug command that developing engine sends can be forwarded to described mobile device by prototype testing server, and forward the debug command that described mobile device returns and feed back to described developing engine.
In specific implementation process, if prototype testing server is after connecting with mobile device, forwarding routing iinformation is with the addition of in Debugging message is transmitted, after the debug command that then prototype testing server can send at acquisition developing engine, search Debugging message according to the source of debug command to transmit, find the connectivity port of described mobile device, and debug command is transmitted to this mobile device by this connectivity port, and the debug command feedback information that this mobile device of wait-receiving mode returns; If search unsuccessfully, then can return failure response message to described developing engine.
And mobile device is after receiving debug command, perform this debug command, and debug command feedback information is returned to prototype testing server, after prototype testing server receives this debug command feedback information, then this debug command feedback information is transmitted to described developing engine.
Above-mentioned debug command at least comprises one of issuing orders: breakpoint is set, checks breakpoint, single step perform, check variable and check internal memory.Certainly, in specific implementation process, also can comprise other debug commands known in the art, not limit herein.
For example, if the debug command that developing engine sends is for arranging breakpoint, then mobile device is after receiving the next breakpoint setup request of prototype testing server forwarding, arranges breakpoint in the application, and breakpoint information is sent to developing engine by prototype testing server; When application program launching also performs set breakpoint place, triggering breakpoints information, breakpoint response message (i.e. debug command feedback information) is sent to developing engine by prototype testing server by mobile device, developing engine is transmitted to IDE again, IDE is after receiving breakpoint response message, be associated with the breakpoint place in application program source coded program, in the debugger of IDE, show breakpoint response message.
By said method embodiment, just can carry out the trace debug of source code level to mobile device application program, improve the efficiency of application development commissioning.
The embodiment of the present invention additionally provides the method for another kind of mobile device application development debugging, and be illustrated in figure 2 the another kind of method flow schematic diagram of mobile device application development debugging, described method comprises:
Step 21: send to prototype testing server and obtain list of devices request, obtain in list of devices request and carry commissioning device attribute, and select mobile device to be debugged in meeting in the mobile device list of this commissioning device attribute specification of returning.
In this step, first can be sent to prototype testing server by developing engine side and obtain list of devices request, in the request of described acquisition list of devices, carry commissioning device attribute, after receiving the list that prototype testing server returns, show this list of devices information; Then mobile device to be debugged is selected in meeting in the mobile device list of this commissioning device attribute specification of returning.
In specific implementation process, after starting IDE by user, first by developing engine configuration commissioning device attribute, this commissioning device attribute comprises operating system version, device type etc.; Then developing engine sends to prototype testing server and obtains list of devices request message, this acquisition list of devices request message comprises configured commissioning device attribute, and prototype testing server returns corresponding list of devices according to configured commissioning device attribute to developing engine.
Step 22: by described prototype testing server to selected mobile device transmitting apparatus connection request, sets up the connection between described mobile device.
In this step, can by developing engine after have selected mobile device to be debugged from mobile device list, to described prototype testing server transmitting apparatus connection request, forward this equipment connection request to selected mobile device by described prototype testing server, thus set up the connection between described mobile device.
Specifically, developing engine is to prototype testing server initiating equipment connection request, prototype testing server and corresponding mobile device connect, and receive the connection response message that mobile device returns, this connection response message is transmitted to developing engine, after developing engine receives this connection response message, set up the connection between developing engine and described mobile device.In specific implementation, the screen message of mobile device can also be comprised in the connection response message that mobile device returns, prototype testing server by described screen message by sending to described developing engine with the form of code stream after calculation code, such developing engine just can show the screen message of mobile device after the decoding, and in Integrated Development Environment IDE, send debugging configuration successful response message further.
In addition, after developing engine sets up the connection between described mobile device, the interface of described mobile device can also be shown by display window, and the mobile device interface operated on this display window, operational order is produced while operation, this operational order is sent to described mobile device by connectivity port, and the described mobile device of reception display performs the interface after this operational order.Such as can by the button of display window straighforward operation mobile device, browse liquid crystal display, listen to equipment sound and use loudspeaker etc., the interface of above-mentioned mobile device can be the whole mobile device interface such as mobile device screen and keyboard.
Step 23: send application code by described prototype testing server to described mobile device and dispose request, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment.
In this step, application code can be sent by developing engine to prototype testing server and dispose request, forward this application code by described prototype testing server and dispose request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment.
Step 24: the debug command sent by the debugger in Integrated Development Environment IDE is transmitted to described mobile device by described prototype testing server.
In this step, the debugger in Integrated Development Environment IDE sends debug command, and this debug command is transmitted to described mobile device by described prototype testing server.
In specific implementation process, Integrated Development Environment IDE can be arranged in developing engine, as a functional module of developing engine.
Step 25: receive the debug command feedback information that described prototype testing server is forwarded back to, and resolve by the debugger in described IDE, show this debug command feedback information.
In this step, after debug command is transmitted to described mobile device by prototype testing server, described mobile device can carry out corresponding debugging operations according to debug command, and debug command feedback information is sent to prototype testing server; Then developing engine side just can receive the debug command feedback information that prototype testing server is forwarded back to, and is resolved by the debugger in described IDE, shown this debug command feedback information, completes whole debug process.
For example, if the debug command that the debugger in IDE sends is for arranging breakpoint, then developing engine is after receiving the debug command feedback information that prototype testing server is forwarded back to, just can be associated with the breakpoint place in application source code according to the debug command feedback information received by the debugger in IDE, and to be shown this debug command feedback information.So just achieve trace debug mobile device application program being carried out to source code level, improve the efficiency of application development commissioning.
By said method embodiment, just can carry out the trace debug of source code level to mobile device application program, improve the efficiency of application development commissioning.
The embodiment of the present invention additionally provides the prototype testing server of a kind of mobile device application development debugging, and be illustrated in figure 3 the structural representation of provided prototype testing server, described prototype testing server comprises:
Access scheduling unit 31, for the commissioning device attribute configured according to developing engine, provides the mobile device list meeting this commissioning device attribute specification to described developing engine; Specific implementation is as described in above method step 11.
Connection management unit 32, for the equipment connection request initiated according to developing engine, sets up the connection between described developing engine and the mobile device selected by this developing engine; Specific implementation is as described in above method step 12.
Application deployment unit 33, the application code of initiating for forwarding described developing engine disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment; Specific implementation is as described in above method step 13.
Debugging message agent unit 34, for forwarding debug command that described developing engine sends in application development debug process to described mobile device, and forwards the debug command that described mobile device returns and feeds back to described developing engine.Specific implementation is as described in above method step 14.
In addition, described prototype testing server can also comprise:
Debugging message setting unit 35, adds forwarding routing iinformation, set up the corresponding relation of described developing engine and the mobile device selected by this developing engine, and the resource status arranging described mobile device is debugging mode in transmitting at Debugging message.In specific implementation, the information such as the connectivity port of mobile device, mark ID in the forwarding routing iinformation added, can be comprised.
The embodiment of the present invention additionally provides the developing engine of a kind of mobile device application development debugging, the structural representation of provided developing engine as shown in Figure 4, and described developing engine comprises:
Commissioning device acquiring unit 41, list of devices request is obtained for sending to prototype testing server, carry commissioning device attribute in the request of described acquisition list of devices, and select mobile device to be debugged in meeting in the mobile device list of this commissioning device attribute specification of returning; Specific implementation is as described in above method step 21.
Connection management unit 42, for giving selected mobile device by described prototype testing server transmitting apparatus connection request, sets up the connection between described mobile device; Specific implementation is as described in above method step 22.
Disposing application program unit 43, request is disposed to described mobile device for being sent application code by described prototype testing server, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment; Specific implementation is as described in above method step 23.
Debugging message administrative unit 44, is transmitted to described mobile device for the debug command sent by the debugger in Integrated Development Environment IDE by described prototype testing server, and receives the debug command feedback information that described prototype testing server is forwarded back to; Specific implementation is as described in above method step 24.
Feedback information processing unit 45, for resolving, showing the debug command feedback information received by described Debugging message administrative unit by the debugger in described IDE.Specific implementation is as described in above method step 25.
In addition, described developing engine can also comprise:
Interface operation administrative unit 46, for being shown the interface of described mobile device by display window, is operated the mobile device interface on this display window, and sends operational order to described mobile device, and the described mobile device of reception display performs the interface after this operational order.Specific implementation is as described in above method step 22.
Be described in detail with the implementation procedure of concrete example to developing engine below, be illustrated in figure 5 the structural representation of developing engine specific implementation, in this Fig. 5, developing engine comprises two parts: Integrated Development Environment IDE and prototype test client, start module by the prototype test client in IDE and start prototype test client, thus set up the connection between IDE and prototype test client.Wherein, Integrated Development Environment IDE comprises prototype test client and starts module, commissioning device and arrange module and debugger; Prototype test client comprises list of devices, equipment display/input control module and debugging management module.
The function that prototype test client in this example completes can comprise above-mentioned commissioning device acquiring unit 41, connection management unit 42, the function of Debugging message administrative unit 44 and interface operation administrative unit 46; And the function that IDE completes can comprise above-mentioned disposing application program unit 43, the function of feedback information processing unit 45.Certainly, in specific implementation process, the division of each functional module of developing engine is not limited to the example that this example is enumerated, and this area other dividing mode thinkable are also feasible.
The implementation procedure of above-mentioned developing engine is: first start module to start prototype test client by the prototype test client in IDE, such as can call increase process addProcess interface when IDE starts, this interface input parameter is prototype test client process, then prototype test client will be activated, prototype test client reads configuration file when starting simultaneously, obtain the address of prototype testing server, and connect with it.
Prototype test client and prototype testing server alternately, obtain list of devices, and select mobile device to be debugged; Such as, when can configure the attribute of mobile device to be debugged in IDE, call the setAttribute interface that sets a property, the information such as operating system version information, model of mobile device can be set by this interface, and the mobile device attribute information of setting be sent to prototype test client; After prototype test client receives mobile device attribute information, to prototype testing server transmitting apparatus list request message, obtain the list of devices meeting and set a property.
Prototype test client, according to selected mobile device, is set up and the connection of described mobile device by prototype testing server; Such as when have selected one of them mobile device in list of devices, the ID of this mobile device and connectivity port information are sent to IDE by prototype test client, commissioning device addDebugTarget interface is added by calling after IDE receives, by this interface, the ID of this mobile device is registered in IDE, completes the configuration before debugging; Prototype test client is to prototype testing server transmitting apparatus connection request simultaneously, connects, and can obtain the screen interface of this mobile device further with the mobile device to be debugged selected.
In debug process, the code of application program adjustable to be debugged is passed to prototype test client by the debugger in IDE, the code portions of this application program adjustable is deployed on described mobile device by prototype testing server by prototype test client, and starts this application program; Then debug command is passed to prototype test client by debugger, and debug command is transmitted to described mobile device by prototype testing server by prototype test client; Then prototype test client receives the debug command feedback information that returned by prototype testing server of mobile device, and returns to debugger, is resolved, shows debug command feedback information received by described Debugging message administrative unit by debugger.
It should be noted that in the embodiment of above-mentioned prototype testing server and developing engine, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, the prototype testing server in above-described embodiment and developing engine can be all specifically computing machine (comprising mobile computer and PC etc.).And perform said method can for the processor in computing machine.Each functional module of above-mentioned prototype testing server and developing engine can for running on the functional module in processor.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
In sum, the embodiment of the present invention can carry out the trace debug of source code level to mobile device application program, improve the efficiency of application development commissioning.
The above; be only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (12)

1. a method for mobile device application development debugging, it is characterized in that, described method comprises:
According to the commissioning device attribute that developing engine configures, provide the mobile device list meeting this commissioning device attribute specification to described developing engine;
According to the equipment connection request that developing engine is initiated, set up the connection between described developing engine and the mobile device selected by this developing engine;
The application code forwarding developing engine initiation disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment;
Forward the debug command that sends in application development debug process of developing engine to described mobile device, and forward the debug command that described mobile device returns and feed back to described developing engine.
2. the method for claim 1, is characterized in that, the described equipment connection request initiated according to developing engine, sets up the connection between described developing engine and the mobile device selected by this developing engine, specifically comprises:
According to the equipment connection request that developing engine is initiated, prototype testing server and the mobile device selected by developing engine connect, and receive by the connection of foundation the connection response message that described mobile device returns;
Described connection response message is transmitted to described developing engine, sets up the connection between described developing engine and described mobile device.
3. method as claimed in claim 2, is characterized in that, after described prototype testing server and the mobile device selected by developing engine connect, also comprise:
Described prototype testing server adds forwarding routing iinformation in Debugging message is transmitted, and set up the corresponding relation of described developing engine and described mobile device, and the resource status arranging described mobile device is debugging mode.
4. as the method for claim 1-3 as described in one of them, it is characterized in that, described debug command at least comprises one of issuing orders: arrange breakpoint, check breakpoint, single step performs, check variable and check internal memory.
5. the method for claim 1, is characterized in that, described commissioning device attribute at least comprises with the next item down: device operating system version information, unit type information.
6. a method for mobile device application development debugging, it is characterized in that, described method comprises:
Send to prototype testing server and obtain list of devices request, carry commissioning device attribute in the request of described acquisition list of devices, and select mobile device to be debugged in meeting in the mobile device list of this commissioning device attribute specification of returning;
By described prototype testing server to selected mobile device transmitting apparatus connection request, to set up the connection between described mobile device;
Send application code by described prototype testing server to described mobile device and dispose request, the code portions of application program adjustable to be tested to be deployed on described mobile device, and start the application code of this deployment;
The debug command sent by debugger in Integrated Development Environment IDE is transmitted to described mobile device by described prototype testing server;
Receive the debug command feedback information that described prototype testing server is forwarded back to, and resolve by the debugger in described IDE, show this debug command feedback information.
7. method as claimed in claim 6, is characterized in that, if described debug command is for arranging breakpoint, then describedly to be resolved by the debugger in IDE, showing this debug command feedback information and specifically comprise:
According to the debug command feedback information received, be associated with the breakpoint place in described application source code by the debugger in IDE, and shown this debug command feedback information.
8. method as claimed in claim 6, is characterized in that, after the connection between described foundation and described mobile device, also comprise:
Show the interface of described mobile device and the mobile device interface operated on this display window by display window, described mobile device is given in transmit operation instruction, receive the described mobile device of display perform this operational order after interface.
9. a prototype testing server for mobile device application development debugging, is characterized in that, comprising:
Access scheduling unit, for the commissioning device attribute configured according to developing engine, provides the mobile device list meeting this commissioning device attribute specification to described developing engine;
Connection management unit, for the equipment connection request initiated according to developing engine, sets up the connection between described developing engine and the mobile device selected by this developing engine;
Application deployment unit, the application code of initiating for forwarding described developing engine disposes request to described mobile device, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment;
Debugging message agent unit, for forwarding debug command that described developing engine sends in application development debug process to described mobile device, and forwards the debug command that described mobile device returns and feeds back to described developing engine.
10. prototype testing server as claimed in claim 9, is characterized in that, also comprise:
Debugging message setting unit, adds forwarding routing iinformation, set up the corresponding relation of described developing engine and the mobile device selected by this developing engine, and the resource status arranging described mobile device is debugging mode in transmitting at Debugging message.
The developing engine of 11. 1 kinds of mobile device application development debugging, is characterized in that, comprising:
Commissioning device acquiring unit, list of devices request is obtained for sending to prototype testing server, carry commissioning device attribute in the request of described acquisition list of devices, and select mobile device to be debugged in meeting in the mobile device list of this commissioning device attribute specification of returning;
Connection management unit, for equipment connection request being sent to selected mobile device by described prototype testing server, sets up the connection between described mobile device;
Disposing application program unit, described mobile device is sent to for application code being disposed request by described prototype testing server, the code portions of application program adjustable to be tested is deployed on described mobile device, and starts the application code of this deployment;
Debugging message administrative unit, is transmitted to described mobile device for the debug command sent by the debugger in Integrated Development Environment IDE by described prototype testing server, and receives the debug command feedback information that described prototype testing server is forwarded back to;
Feedback information processing unit, for resolving, showing the debug command feedback information received by described Debugging message administrative unit by the debugger in described IDE.
12. developing engines as claimed in claim 11, is characterized in that, also comprise:
Interface operation administrative unit, for being shown the interface of described mobile device by display window and the mobile device interface operated on this display window, described mobile device is given in transmit operation instruction, receive the described mobile device of display perform this operational order after interface.
CN201110213903.4A 2011-07-28 2011-07-28 The method of mobile device application development debugging and device Expired - Fee Related CN102902618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110213903.4A CN102902618B (en) 2011-07-28 2011-07-28 The method of mobile device application development debugging and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110213903.4A CN102902618B (en) 2011-07-28 2011-07-28 The method of mobile device application development debugging and device

Publications (2)

Publication Number Publication Date
CN102902618A CN102902618A (en) 2013-01-30
CN102902618B true CN102902618B (en) 2016-03-02

Family

ID=47574864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110213903.4A Expired - Fee Related CN102902618B (en) 2011-07-28 2011-07-28 The method of mobile device application development debugging and device

Country Status (1)

Country Link
CN (1) CN102902618B (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268288A (en) * 2013-06-18 2013-08-28 北京云测信息技术有限公司 Remote real machine debugging method and system of mobile terminal application software
CN103268289B (en) * 2013-06-18 2016-04-06 北京云测信息技术有限公司 Record the method and system of application testing script on mobile terminals
CN104281520B (en) * 2013-07-10 2017-06-13 腾讯科技(深圳)有限公司 Tracking and method, the apparatus and system of debugging
CN104570967B (en) * 2013-10-17 2017-06-20 北大方正集团有限公司 Long-range control method and system based on android system
CN103595820A (en) * 2013-11-28 2014-02-19 深圳英飞拓科技股份有限公司 Embedded front-end equipment backstage control debugging method and device
CN103699481A (en) * 2013-12-03 2014-04-02 华为技术有限公司 Code debugging method and code debugging system
CN104601679B (en) * 2014-12-31 2018-06-26 北京华为数字技术有限公司 Equipment soft method, mobile terminal and server
CN104506655A (en) * 2015-01-08 2015-04-08 北京恒华伟业科技股份有限公司 Method and device for debugging mobile application
CN104717282B (en) * 2015-02-11 2018-07-24 工业和信息化部计算机与微电子发展研究中心(中国软件评测中心) A kind of method, apparatus and system of control Android operation system intelligent terminal
CN104679654A (en) * 2015-02-26 2015-06-03 百度在线网络技术(北京)有限公司 Method, equipment and system for testing application program
CN104991857B (en) * 2015-06-08 2019-02-12 小米科技有限责任公司 Trace debug method and device
CN105117337B (en) * 2015-08-26 2018-09-04 小米科技有限责任公司 Using adjustment method, client and debugging platform
CN105338110A (en) * 2015-11-23 2016-02-17 小米科技有限责任公司 Remote debugging method, platform and server
CN105653448B (en) * 2015-12-25 2019-04-30 深圳中兴网信科技有限公司 Using adjustment method, using debugging apparatus and terminal
CN107229561A (en) * 2016-03-24 2017-10-03 华为技术有限公司 Applied program testing method and equipment
CN107436841B (en) * 2016-05-25 2020-08-07 阿里巴巴集团控股有限公司 Page preview method and device
EP3258378B1 (en) * 2016-06-14 2022-05-04 Qoitech AB Measurement coordination by monitoring of program code execution
CN106201869B (en) * 2016-07-01 2019-10-29 Tcl移动通信科技(宁波)有限公司 A kind of high pass WiFi chip signal launch point survey method and system
CN108509333A (en) * 2017-02-28 2018-09-07 腾讯科技(深圳)有限公司 Adjustment method and device
CN107463496A (en) * 2017-07-19 2017-12-12 北京小米移动软件有限公司 operating system testing method and device
WO2019041572A1 (en) * 2017-08-30 2019-03-07 苏州倾爱娱乐传媒有限公司 Automated test system based on android platform
CN107809417B (en) * 2017-09-22 2021-04-13 柚子(北京)移动技术有限公司 Mobile application development and debugging method based on wireless local area network
CN107918587B (en) * 2017-11-15 2021-07-13 北京中电普华信息技术有限公司 Debugging method and system for application program
CN109117361B (en) * 2018-06-21 2020-12-15 腾讯科技(深圳)有限公司 Remote debugging method, related equipment and system for small program
CN110032512B (en) * 2019-03-28 2021-04-20 腾讯科技(深圳)有限公司 Debugging method of small program, related equipment and terminal
CN110781080B (en) * 2019-10-11 2023-06-30 北京小米移动软件有限公司 Program debugging method and device and storage medium
CN110795354A (en) * 2019-10-30 2020-02-14 北京小米移动软件有限公司 Information processing method, device and storage medium
CN110837473B (en) * 2019-11-07 2023-08-22 腾讯科技(深圳)有限公司 Application program debugging method, device, terminal and storage medium
CN111049912A (en) * 2019-12-17 2020-04-21 用友网络科技股份有限公司 Debugging method, test development device, and computer-readable storage medium
CN113094253A (en) * 2019-12-23 2021-07-09 华为机器有限公司 Equipment debugging method and device
CN111399811A (en) * 2020-03-18 2020-07-10 百度在线网络技术(北京)有限公司 Method, device and equipment for developing visual page and storage medium
CN112486813A (en) * 2020-11-25 2021-03-12 广州品唯软件有限公司 Debugging method, debugging device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101133665A (en) * 2004-10-05 2008-02-27 捷讯研究有限公司 Mobile device diagnosis, test, application deployment and update from a web page
CN101355777A (en) * 2008-09-23 2009-01-28 余纯龙 Remote mobile phone test system and method base on bus interception and video acquisition
CN101364200A (en) * 2008-09-18 2009-02-11 浙江大学 Breakpoint implementing method for embedded MIDlet debugging software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101133665A (en) * 2004-10-05 2008-02-27 捷讯研究有限公司 Mobile device diagnosis, test, application deployment and update from a web page
CN101364200A (en) * 2008-09-18 2009-02-11 浙江大学 Breakpoint implementing method for embedded MIDlet debugging software
CN101355777A (en) * 2008-09-23 2009-01-28 余纯龙 Remote mobile phone test system and method base on bus interception and video acquisition

Also Published As

Publication number Publication date
CN102902618A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN102902618B (en) The method of mobile device application development debugging and device
CN110162977B (en) Android vehicle-mounted terminal system vulnerability detection system and method
JP7421511B2 (en) Methods and apparatus, electronic devices, readable storage media and computer programs for deploying applications
CN105338110A (en) Remote debugging method, platform and server
US20120284696A1 (en) Method, Apparatuses and a System for Compilation
CN110071822B (en) Testing device and testing method for 5G core network infrastructure
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN112882700A (en) iOS application program construction method and device, electronic equipment and storage medium
US20150135165A1 (en) Debugging a web application locally during development
CN101261600B (en) Software test apparatus and test software design method
CN102946415B (en) A kind of implementation method of mobile terminal this locality application and device
CN105760289A (en) Debugging method and device of embedded system
CN104125504A (en) Deployment method, device and system based on continuous integration
JP5629012B2 (en) Input tool calling system, method and proxy device
CN112328470A (en) Automatic operation and maintenance testing method, device, equipment and storage medium
CN103176903B (en) The test method and equipment of MapReduce distributed system program
CN111400166A (en) Real-time communication service testing method, device and system and electronic equipment
CN113656152A (en) Local simulation method, system, medium and electronic device based on container cloud environment
CN114741275A (en) Equipment debugging method, device and equipment
CN103176904A (en) Simulation testing platform software architecture and testing method based on same
CN102567070A (en) Mobile phone software debugging method and simulator for mobile phone software
KR101400396B1 (en) Real-time embedded software deburgging method using memory address
CN105094885A (en) Component installation method and apparatus
EP1871022B1 (en) Testing mobile wireless devices during device production

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170510

Address after: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee after: Guangdong Gaohang Intellectual Property Operation Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

CB03 Change of inventor or designer information

Inventor after: Deng Rongfeng

Inventor before: Li Yongan

Inventor before: Hou Weiyi

Inventor before: Zhou Haojuan

Inventor before: Chen Bin

Inventor before: Peng Qiaoqiao

Inventor before: Xu Qian

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20170907

Address after: 253000 Shandong Province, Dezhou city Linyi County town of Deng De Ping Village No. 34

Patentee after: Deng Rongfeng

Address before: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee before: Guangdong Gaohang Intellectual Property Operation Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160302

Termination date: 20180728

CF01 Termination of patent right due to non-payment of annual fee