CN105117339A - Method and apparatus for debugging native command debugging program by utilizing plugin - Google Patents

Method and apparatus for debugging native command debugging program by utilizing plugin Download PDF

Info

Publication number
CN105117339A
CN105117339A CN201510542820.8A CN201510542820A CN105117339A CN 105117339 A CN105117339 A CN 105117339A CN 201510542820 A CN201510542820 A CN 201510542820A CN 105117339 A CN105117339 A CN 105117339A
Authority
CN
China
Prior art keywords
debugging
debugged program
native command
command
button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510542820.8A
Other languages
Chinese (zh)
Other versions
CN105117339B (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.)
Bigo Technology Pte Ltd
Original Assignee
All Kinds Of Fruits Garden Guangzhou Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by All Kinds Of Fruits Garden Guangzhou Network Technology Co Ltd filed Critical All Kinds Of Fruits Garden Guangzhou Network Technology Co Ltd
Priority to CN201510542820.8A priority Critical patent/CN105117339B/en
Publication of CN105117339A publication Critical patent/CN105117339A/en
Application granted granted Critical
Publication of CN105117339B publication Critical patent/CN105117339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and an apparatus for debugging a native command debugging program by utilizing a plugin, and belongs to the technical field of a computer. The method comprises: by an interface which the plugin comprises, connecting a development environment of a terminal and the native command debugging program, wherein a debugging command library of the native command debugging program comprises at least one character command; according to the development environment and the debugging command library, generating a first debugging interface, wherein the first debugging interface comprises at least one debugging button and each of the at least one debugging button corresponds to one character command; acquiring the debugging button selected by a user from the first debugging interface; and acquiring the corresponding character command according to the debugging button and sending the character command to the native command debugging program to carry out debugging. The apparatus comprises: a connection module, a generation module, a first acquisition module and a debugging module. According to the invention, the time for debugging the native command debugging program can be shortened, so that the efficiency of debugging the native command debugging program can be improved.

Description

A kind of method and apparatus utilizing plug-in unit to debug native command debugged program
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus utilizing plug-in unit to debug native command debugged program.
Background technology
Native command debugged program refers to NDK (nativedevelopmentkit, local kit) for kit exploitation and the application program operated in Android (Android) operating system, such as, take Android as the APP (Application that the terminal of operating system is installed, application program) or, the system APP etc. in android system.But native command debugged program is before reaching the standard grade, needs to debug, to know the leak existed in native command debugged program, and then leak is repaired.
At present, programmer can only debug native command debugged program by the mode of order line, and also namely programmer is to the order of mobile phone input characters, and mobile phone, according to this written order, runs this native command debugged program; Such as, when programmer wants to debug this native command debugged program, programmer inputs initiation command to mobile phone: start, and mobile phone to bring into operation native command debugged program according to start; When programmer wants to check user profile, programmer inputs viewing command to mobile phone: examine, and mobile phone, according to this examine, runs this native command debugged program, to obtain user profile.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
When debugging native command debugged program, programmer needs to the order of mobile phone input characters, but written order is all often the English word comprising a string letter, programmer is when input characters order, be easy to make mistakes, now programmer needs to re-enter, and repeats input characters order and will waste the long period, causes the efficiency of debugging native command debugged program low.
Summary of the invention
In order to solve the problem of prior art, the invention provides a kind of method and apparatus utilizing plug-in unit to debug native command debugged program.Technical scheme is as follows:
Utilize plug-in unit to debug a method for native command debugged program, it is characterized in that, described method comprises:
The interface comprised by described plug-in unit connects development environment and the native command debugged program of terminal, and the debug command storehouse of described native command debugged program comprises at least one written order;
According to described development environment and described debug command storehouse, generate the first Debugging interface, described first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button described;
Obtain the debugging button that user selects in described first Debugging interface;
Obtain corresponding written order according to described debugging button, send described written order to described native command debugged program and debug.
Further, described according to described development environment and described debug command storehouse, generate the first Debugging interface, comprising:
According to described development environment, generate the second Debugging interface that described development environment is corresponding;
In described second Debugging interface, add the debugging button that each written order in described debug command storehouse is corresponding, obtain the first Debugging interface.
Further, describedly send described written order to described native command debugged program and debug, comprising:
Obtain the store path of described native command debugged program;
According to described store path, the described native command debugged program in the storage space that described store path is corresponding sends described written order and debugs.
Further, described method also comprises:
Obtain described native command debugged program and described store path;
According to described store path, described native command debugged program is stored in storage space corresponding to described store path.
Further, described method also comprises:
Receive the text results that described native command debugged program sends;
Described text results is shown in described first Debugging interface.
Utilize plug-in unit to debug a device for native command debugged program, described device comprises:
Link block, the interface for being comprised by described plug-in unit connects development environment and the native command debugged program of terminal, and the debug command storehouse of described native command debugged program comprises at least one written order;
Generation module, for according to described development environment and described debug command storehouse, generates the first Debugging interface, and described first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button described;
First acquisition module, for obtaining the debugging button that user selects in described first Debugging interface;
Debugging module, for obtaining corresponding written order according to described debugging button, sending described written order to described native command debugged program and debugging.
Further, described generation module, comprising:
Generation unit, for according to described development environment, generates the second Debugging interface that described development environment is corresponding;
Adding device, for adding debugging button corresponding to each written order in described debug command storehouse in described second Debugging interface, obtains the first Debugging interface.
Further, described debugging module, comprising:
Acquiring unit, for obtaining the store path of described native command debugged program;
Debugging unit, for according to described store path, the described native command debugged program in the storage space that described store path is corresponding sends described written order and debugs.
Further, described device also comprises:
Second acquisition module, for obtaining described native command debugged program and described store path;
Memory module, for according to described store path, is stored in described native command debugged program in storage space corresponding to described store path.
Further, described device also comprises:
Receiver module, for receiving the text results that described native command debugged program sends;
Display module, for showing described text results in described first Debugging interface.
In embodiments of the present invention, terminal connects development environment and the native command debugged program of terminal by the interface that plug-in unit comprises, according to the debug command storehouse of this development environment and native command debugged program, generate the first Debugging interface, first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button, thus user is when debugging native command debugged program, debugging button in direct click first Debugging interface, this plug-in unit obtains corresponding written order according to this debugging button, send this written order to native command debugged program to debug, thus user is when debugging native command debugged program, directly select debugging button and adjustable native command debugged program, thus user is without input characters order, the time of debugging native command debugged program can be shortened, and then the efficiency of debugging native command debugged program can be improved.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram utilizing plug-in unit to debug native command debugged program that the embodiment of the present invention 1 provides;
Fig. 2-1 is a kind of method flow diagram utilizing plug-in unit to debug native command debugged program that the embodiment of the present invention 2 provides;
Fig. 2-2 is the interface schematic diagram of a kind of second Debugging interface that the embodiment of the present invention 2 provides;
Fig. 2-3 is the interface schematic diagram of a kind of 3rd Debugging interface that the embodiment of the present invention 2 provides;
Fig. 2-4 is the interface schematic diagram of a kind of 3rd Debugging interface that the embodiment of the present invention 2 provides;
Fig. 2-5 is the interface schematic diagram of a kind of first Debugging interface that the embodiment of the present invention 2 provides;
Fig. 2-6 is a kind of interface schematic diagram utilizing plug-in unit to debug native command debugged program that the embodiment of the present invention 2 provides;
Fig. 3-1 is a kind of apparatus structure schematic diagram utilizing plug-in unit to debug native command debugged program that the embodiment of the present invention 3 provides;
Fig. 3-2 is the apparatus structure schematic diagram of a kind of generation module that the embodiment of the present invention 3 provides;
Fig. 3-3 is the apparatus structure schematic diagram of a kind of debugging module that the embodiment of the present invention 3 provides;
Fig. 3-4 is that the another kind that the embodiment of the present invention 3 provides utilizes plug-in unit to debug the apparatus structure schematic diagram of native command debugged program.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
At present, when user debugs native command debugged program, can only by debugging to the method for terminal input characters order, but written order is all often the English word comprising a string letter, user, when input characters order, is easy to make mistakes, and now user needs to re-enter, repeat input characters order and will waste the long period, cause the efficiency of debugging native command debugged program low.
In embodiments of the present invention, the interface comprised by plug-in unit connects development environment and the native command debugged program of terminal, according to the debug command storehouse of this development environment and native command debugged program, generate the first Debugging interface of debugging native command debugged program, first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button, thus user directly clicks debugging button in the first Debugging interface and adjustable native command debugged program, thus user is without input characters order, the time of debugging native command debugged program can be shortened, and then the efficiency of debugging native command debugged program can be improved.
Embodiment 1
Embodiments provide a kind of method utilizing plug-in unit to debug native command debugged program, the executive agent of the method is plug-in unit, and see Fig. 1, wherein, the method comprises:
Step 101: the interface comprised by plug-in unit connects development environment and the native command debugged program of terminal, and the debug command storehouse of native command debugged program comprises at least one written order;
Step 102: according to development environment and debug command storehouse, generate the first Debugging interface, the first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button;
Step 103: obtain the debugging button that user selects in the first Debugging interface;
Step 104: obtain corresponding written order according to this debugging button, send this written order to native command debugged program and debug.
Further, according to development environment and debug command storehouse, generate the first Debugging interface, comprising:
According to development environment, generate the second Debugging interface that development environment is corresponding;
In the second Debugging interface, add the debugging button that each written order in debug command storehouse is corresponding, obtain the first Debugging interface.
Further, send written order to native command debugged program and debug, comprising:
Obtain the store path of native command debugged program;
According to this store path, the native command debugged program in the storage space that this store path is corresponding sends written order and debugs.
Further, the method also comprises:
Obtain native command debugged program and store path;
According to this store path, native command debugged program is stored in storage space corresponding to this store path.
Further, the method also comprises:
Receive the text results that native command debugged program sends;
Text results is shown in the first Debugging interface.
In embodiments of the present invention, terminal connects development environment and the native command debugged program of terminal by the interface that plug-in unit comprises, according to the debug command storehouse of this development environment and native command debugged program, generate the first Debugging interface, first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button, thus user is when debugging native command debugged program, debugging button in direct click first Debugging interface, this plug-in unit obtains corresponding written order according to this debugging button, send this written order to native command debugged program to debug, thus user is when debugging native command debugged program, directly select debugging button and adjustable native command debugged program, thus user is without input characters order, the time of debugging native command debugged program can be shortened, and then the efficiency of debugging native command debugged program can be improved.
Embodiment 2
Embodiments provide a kind of method utilizing plug-in unit to debug native command debugged program, the executive agent of the method is plug-in unit, when user wants debugging native command debugged program, the method of the debugging native command debugged program that can be provided by the embodiment of the present invention is debugged, thus the time of debugging native command debugged program can be shortened, and then the efficiency of debugging native command debugged program can be improved.
See Fig. 2-1, wherein, the method comprises:
Step 201: the interface comprised by plug-in unit connects development environment and the native command debugged program of terminal;
Plug-in unit comprises at least two interfaces, for convenience of description, is called first interface and the second interface, is connected the development environment of terminal by first interface, connects native command debugged program by the second interface.
Native command debugged program refers to NDK to be that kit is developed and the application program operated in Android operation system; Such as, take Android as the APP (Application, application program) that the terminal of operating system is installed, or, the system APP etc. in android system.
NDK is that the help Android developer that Google company releases writes Develop Application System bag by C/C++ native language.And Google company only provides order line debugging acid, cause the debugging threshold of native command debugged program high, not intuitively.Embodiments provide a kind of plug-in unit, utilize this plug-in unit to debug native command debugged program, the difficulty of debugging native command debugged program can be reduced.
The development environment of terminal can be Androidstudio or IntelliJIDEA (the integration environment of java language development) etc.; And development environment is installed in terminal, the present invention be mounted development environment in the terminal basis on implement.
Before this step, user needs to install development environment in the terminal, and detailed process can be:
Obtain the configuring request of user, this configuring request carries development language, builds development environment corresponding to this development language in the terminal according to this development language.
Further, obtain the debug command storehouse of native command debugged program, this debug command storehouse comprises at least one written order, and each written order at least one written order comprises to go here and there alphabetical English word, such as, written order can be start, stop, nextstep or examine etc.The terminal of terminal can be arbitrary with Android be operating system such as, take Android as the mobile phone or panel computer etc. of operating system.
Step 202: according to this development environment, generates the second Debugging interface that this development environment is corresponding;
After building this development environment in the terminal, can store application program corresponding to this development environment in terminal, when user wants generation the second Debugging interface, user clicks application program corresponding to this development environment, generates order to terminal to trigger; Terminal obtains the generation order that user triggers, and according to this generation order, starts the application program that this development environment is corresponding, and generate the second Debugging interface that this development environment is corresponding, such as, the second Debugging interface is as shown in Fig. 2-2.
Wherein, the second Debugging interface comprises configuration button, and user can configure the store path of native command debugged program by this configuration button and configure the store path etc. of projects corresponding to native command debugged program; Can also comprise load button in second Debugging interface, user, by this load button, can input native command debugged program to terminal.
Wherein, user by the step of the store path of the store path of this configuration button configuration native command debugged program and projects corresponding to configuration native command debugged program can be:
User clicks this configuration button to trigger configuration order to terminal, terminal obtains the configuration order that user is triggered by this configuration button, according to this configuration order display configuration interface, configuration interface comprises the first input frame and the second input frame, user can by the first input frame to terminal input or the store path selecting native command debugged program, user can by the store path of the second input frame to the projects that terminal inputs or selection native command debugged program is corresponding, terminal receives the store path of the native command debugged program that user is inputted by the first input frame or selects, and the store path of the projects that reception user is inputted by the second input frame or the native command debugged program of selection is corresponding.
Further, this plug-in unit stores the store path of the store path of this native command debugged program and projects corresponding to native command debugged program.
Step 203: add the debugging button that each written order in debug command storehouse is corresponding in the second Debugging interface, obtain the first Debugging interface;
According to each written order in debug command storehouse, generate the debugging button that each written order is corresponding, obtain multiple debugging button, multiple debugging button is loaded in the second Debugging interface and obtains the first Debugging interface.
Wherein, multiple debugging button being loaded into the step obtaining the first Debugging interface in the second Debugging interface can be:
For each debugging button in multiple debugging button, terminal generates debugging plug-in unit corresponding to this debugging button according to this debugging button, this debugging plug-in unit is inserted in the plug-in unit bag that this development environment comprises, obtain the development environment comprising debugging plug-in unit, restart the development environment comprising debugging plug-in unit, obtain the first Debugging interface, thus realize this debugging button to be loaded in the second Debugging interface.
Such as, the debugging plug-in unit that debugging button is corresponding is xx.jar, is installed to by xx.jar in the plugir/xx/lib/xx.jar of installation directory; Wherein, plugir/xx/lib/xx.jar is the plug-in unit bag of development environment.
First Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button, therefore, when user wants debugging native command debugged program, user directly can click the debugging button of the first Debugging interface display, need not to the order of terminal input characters, the time of debugging native command debugged program can be shortened, and then the efficiency of debugging native command debugged program can be improved, and then reduce the difficulty of debugging native command debugged program.
Such as, in the second Debugging interface, show " myapp " menu, " myapp " menu comprises " editconfiguration " button, and user can click " editconfiguration " button to submit to configuration order to terminal; Terminal obtains the configuration order that user submits to, and generates the 3rd Debugging interface, as Figure 2-3.
Such as, the 3rd Debugging interface comprises "+" menu, and "+" menu comprises " NdkDebug " button, and user can click " NdkDebug " button and add order to terminal to submit to, obtains the 4th Debugging interface, as in Figure 2-4; Terminal obtains the interpolation order that user submits to, and according to this interpolation order, is added in the 3rd Debugging interface by debugging button corresponding for each written order, obtain the first Debugging interface, as shown in Figure 2-5.
In embodiments of the present invention, by the card i/f in development environment, the written order of native command debugged program is converted to UI (UserInterface, user interface) debugging intuitively, reduces the debugging difficulty of native command debugged program.
Step 204: obtain native command debugged program and store path, native command debugged program is stored in storage space corresponding to this store path;
When user wants native command debugged program to store in the terminal, user creates a storage space in the terminal, terminal obtains store path corresponding to this storage space, and receive the native command debugged program of user's input, native command debugged program is stored in storage space corresponding to this store path.
Further, the second Debugging interface comprises interpolation button, and user can be submitted to by this interpolation button and add order to terminal; Terminal obtains the interpolation order that user submits to, and according to this interpolation order display the 3rd input frame, user can input native command debugged program in the 3rd input frame; Terminal obtains the native command debugged program that user inputs in the 3rd input frame.
Wherein, in this step, user directly can input native command debugged program in storage space, also native command debugged program can pasted in storage space.
Further, user when writing the projects of native command debugged program, the corresponding native command debugged program of projects; Therefore, in this step, terminal creates a projects for this native command debugged program, and obtains the store path of this projects.
Step 205: obtain the debugging button that user selects in the first Debugging interface;
When user wants debugging native command debugged program, user can select to debug button in the first Debugging interface, and clicks this debugging button so that this debugging button is submitted to terminal; Terminal obtains the debugging button that user selects.
Such as, when user wants to start to debug native command debugged program, user clicks " beginning " debugging button shown in the first Debugging interface, and terminal obtains " beginning " debugging button that user selects in the first Debugging interface; For another example, when user wants to delete native command debugged program, user clicks " deletion " debugging button shown in the first Debugging interface, and terminal obtains " deletion " debugging button that user selects in the first Debugging interface.
Step 206: obtain corresponding written order according to this debugging button, send this written order to native command debugged program and debug;
This step can be passed through following steps (1) to (3) and realize, and comprising:
(1): according to this debugging button, obtain the written order that this debugging button is corresponding;
Button according to this debugging button identifies, from button mark and written order corresponding relation obtain written order corresponding to this debugging button.
Wherein, button mark can be the debugging position etc. of button in the first Debugging interface.
(2): the store path obtaining native command debugged program;
Further, the store path of projects corresponding to native command debugged program is obtained.
(3) the native command debugged program: according to this store path, in the storage space that this store path is corresponding sends this written order and debugs.
According to this store path, the native command debugged program in the storage space that this store path is corresponding sends this written order; Native command debugged program receives this written order that this plug-in unit sends, and according to this written order, runs this native command debugged program.
Further, obtain the store path of projects corresponding to native applications program, according to the store path of this projects, send startup command to this projects; Projects receives this startup command, and start projects corresponding to native command debugged program, and according to the store path of native command debugged program, native command debugged program is read from the storage space that the store path of native command debugged program is corresponding, native command debugged program is loaded in projects corresponding to native command debugged program, according to this written order, in this projects, run native command debugged program, obtain text results.
Step 207: receive the text results that native command debugged program sends, show this text results in the first Debugging interface.
The text results that the projects that native command debugged program is corresponding obtains at operation native command debugged program, sends this text results to this plug-in unit; This plug-in unit receives this text results that this Project Process sends, and also this debug results is presented in the first Debugging interface intuitively.
Further, native command debugged program and this text results can also all be presented in the first Debugging interface by this plug-in unit.
Such as, the text results of native command debugged program and native command debugged program is presented in the first Debugging interface by this plug-in unit, is also namely presented in the Debugging interface of Androidstudio or IntelliJIDEA.
See Fig. 2-6, this plug-in unit serves as function served as bridge, and when user operation the first Debugging interface, this plug-in unit obtains the interface operation in the first Debugging interface, and obtains written order corresponding to this interface operation, sends this written order to native command debugged program; When native command debugged program obtains text results, this word results conversion is interface response by this plug-in unit.
In embodiments of the present invention, terminal connects development environment and the native command debugged program of terminal by the interface that plug-in unit comprises, according to the debug command storehouse of this development environment and native command debugged program, generate the first Debugging interface, first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button, thus user is when debugging native command debugged program, debugging button in direct click first Debugging interface, this plug-in unit obtains corresponding written order according to this debugging button, send this written order to native command debugged program to debug, thus user is when debugging native command debugged program, directly select debugging button and adjustable native command debugged program, thus user is without input characters order, the time of debugging native command debugged program can be shortened, and then the efficiency of debugging native command debugged program can be improved.
Embodiment 3
Embodiments provide a kind of device utilizing plug-in unit to debug native command debugged program, see Fig. 3-1, wherein, this device comprises:
Link block 301, the interface for being comprised by plug-in unit connects development environment and the native command debugged program of terminal, and the debug command storehouse of native command debugged program comprises at least one written order;
Generation module 302, for according to development environment and debug command storehouse, generates the first Debugging interface, and the first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button;
First acquisition module 303, for obtaining the debugging button that user selects in the first Debugging interface;
Debugging module 304, for obtaining corresponding written order according to this debugging button, sending this written order to native command debugged program and debugging.
Further, see Fig. 3-2, generation module 302, comprising:
Generation unit 3021, for according to development environment, generates the second Debugging interface that development environment is corresponding;
Adding device 3022, for adding debugging button corresponding to each written order in debug command storehouse in the second Debugging interface, obtains the first Debugging interface.
Further, see Fig. 3-3, debugging module 304, comprising:
Acquiring unit 3041, for obtaining the store path of native command debugged program;
Debugging unit 3042, for according to store path, the native command debugged program in the storage space that store path is corresponding sends written order and debugs.
Further, see Fig. 3-4, device also comprises:
Second acquisition module 305, for obtaining native command debugged program and store path;
Memory module 306, for according to store path, is stored in native command debugged program in storage space corresponding to store path.
Further, device also comprises:
Receiver module 307, for receiving the text results that native command debugged program sends;
Display module 308, for showing text results in the first Debugging interface.
In embodiments of the present invention, terminal connects development environment and the native command debugged program of terminal by the interface that plug-in unit comprises, according to the debug command storehouse of this development environment and native command debugged program, generate the first Debugging interface, first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button, thus user is when debugging native command debugged program, debugging button in direct click first Debugging interface, this plug-in unit obtains corresponding written order according to this debugging button, send this written order to native command debugged program to debug, thus user is when debugging native command debugged program, directly select debugging button and adjustable native command debugged program, thus user is without input characters order, the time of debugging native command debugged program can be shortened, and then the efficiency of debugging native command debugged program can be improved.
It should be noted that: what above-described embodiment provided utilizes plug-in unit to debug the device of native command debugged program when utilizing plug-in unit to debug native command debugged program, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, what above-described embodiment provided utilizes the device of plug-in unit debugging native command debugged program to belong to same design with the embodiment of the method utilizing plug-in unit to debug native command debugged program, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described 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.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. utilize plug-in unit to debug a method for native command debugged program, it is characterized in that, described method comprises:
The interface comprised by described plug-in unit connects development environment and the native command debugged program of terminal, and the debug command storehouse of described native command debugged program comprises at least one written order;
According to described development environment and described debug command storehouse, generate the first Debugging interface, described first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button described;
Obtain the debugging button that user selects in described first Debugging interface;
Obtain corresponding written order according to described debugging button, send described written order to described native command debugged program and debug.
2. the method for claim 1, is characterized in that, described according to described development environment and described debug command storehouse, generates the first Debugging interface, comprising:
According to described development environment, generate the second Debugging interface that described development environment is corresponding;
In described second Debugging interface, add the debugging button that each written order in described debug command storehouse is corresponding, obtain the first Debugging interface.
3. the method for claim 1, is characterized in that, describedly sends described written order to described native command debugged program and debugs, and comprising:
Obtain the store path of described native command debugged program;
According to described store path, the described native command debugged program in the storage space that described store path is corresponding sends described written order and debugs.
4. method as claimed in claim 3, it is characterized in that, described method also comprises:
Obtain described native command debugged program and described store path;
According to described store path, described native command debugged program is stored in storage space corresponding to described store path.
5. the method for claim 1, is characterized in that, described method also comprises:
Receive the text results that described native command debugged program sends;
Described text results is shown in described first Debugging interface.
6. utilize plug-in unit to debug a device for native command debugged program, it is characterized in that, described device comprises:
Link block, the interface for being comprised by described plug-in unit connects development environment and the native command debugged program of terminal, and the debug command storehouse of described native command debugged program comprises at least one written order;
Generation module, for according to described development environment and described debug command storehouse, generates the first Debugging interface, and described first Debugging interface comprises at least one debugging button, the corresponding written order of each debugging button at least one debugging button described;
First acquisition module, for obtaining the debugging button that user selects in described first Debugging interface;
Debugging module, for obtaining corresponding written order according to described debugging button, sending described written order to described native command debugged program and debugging.
7. device as claimed in claim 6, it is characterized in that, described generation module, comprising:
Generation unit, for according to described development environment, generates the second Debugging interface that described development environment is corresponding;
Adding device, for adding debugging button corresponding to each written order in described debug command storehouse in described second Debugging interface, obtains the first Debugging interface.
8. device as claimed in claim 6, it is characterized in that, described debugging module, comprising:
Acquiring unit, for obtaining the store path of described native command debugged program;
Debugging unit, for according to described store path, the described native command debugged program in the storage space that described store path is corresponding sends described written order and debugs.
9. device as claimed in claim 8, it is characterized in that, described device also comprises:
Second acquisition module, for obtaining described native command debugged program and described store path;
Memory module, for according to described store path, is stored in described native command debugged program in storage space corresponding to described store path.
10. device as claimed in claim 6, it is characterized in that, described device also comprises:
Receiver module, for receiving the text results that described native command debugged program sends;
Display module, for showing described text results in described first Debugging interface.
CN201510542820.8A 2015-08-27 2015-08-27 A kind of method and apparatus that native command debugging routine is debugged using plug-in unit Active CN105117339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510542820.8A CN105117339B (en) 2015-08-27 2015-08-27 A kind of method and apparatus that native command debugging routine is debugged using plug-in unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510542820.8A CN105117339B (en) 2015-08-27 2015-08-27 A kind of method and apparatus that native command debugging routine is debugged using plug-in unit

Publications (2)

Publication Number Publication Date
CN105117339A true CN105117339A (en) 2015-12-02
CN105117339B CN105117339B (en) 2018-03-06

Family

ID=54665337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510542820.8A Active CN105117339B (en) 2015-08-27 2015-08-27 A kind of method and apparatus that native command debugging routine is debugged using plug-in unit

Country Status (1)

Country Link
CN (1) CN105117339B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912236A (en) * 2016-04-11 2016-08-31 天脉聚源(北京)传媒科技有限公司 Test information obtaining method and apparatus
WO2018149190A1 (en) * 2017-02-20 2018-08-23 平安科技(深圳)有限公司 Component debugging method, device and apparatus, and computer readable storage medium
CN109871312A (en) * 2017-12-05 2019-06-11 航天信息股份有限公司 A kind of interface test method, device, equipment and readable storage medium storing program for executing
CN111008132A (en) * 2019-11-29 2020-04-14 浙江大搜车软件技术有限公司 Application debugging method and device for Android system, computer equipment and storage medium
CN111124208A (en) * 2019-12-24 2020-05-08 三一重工股份有限公司 Text sending method and system based on sending button

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080222618A1 (en) * 2005-08-25 2008-09-11 Corizon Limited Methods for User Interface Generation and Application Modification
CN102123294A (en) * 2010-12-30 2011-07-13 富泰华工业(深圳)有限公司 Electronic device test system
CN104740872A (en) * 2015-04-13 2015-07-01 北京奇虎科技有限公司 Method and device for operating and controlling game program in simulated Android environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080222618A1 (en) * 2005-08-25 2008-09-11 Corizon Limited Methods for User Interface Generation and Application Modification
CN102123294A (en) * 2010-12-30 2011-07-13 富泰华工业(深圳)有限公司 Electronic device test system
CN104740872A (en) * 2015-04-13 2015-07-01 北京奇虎科技有限公司 Method and device for operating and controlling game program in simulated Android environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
流沙的刺客: ""安卓开发入门:工具栏(Action Bar)"", 《HTTP://BLOG.CSDN.NET/CANDCPLUSPLUS/ARTICLE/DETAILS/21776837》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912236A (en) * 2016-04-11 2016-08-31 天脉聚源(北京)传媒科技有限公司 Test information obtaining method and apparatus
WO2018149190A1 (en) * 2017-02-20 2018-08-23 平安科技(深圳)有限公司 Component debugging method, device and apparatus, and computer readable storage medium
CN109871312A (en) * 2017-12-05 2019-06-11 航天信息股份有限公司 A kind of interface test method, device, equipment and readable storage medium storing program for executing
CN111008132A (en) * 2019-11-29 2020-04-14 浙江大搜车软件技术有限公司 Application debugging method and device for Android system, computer equipment and storage medium
CN111008132B (en) * 2019-11-29 2021-11-16 浙江大搜车软件技术有限公司 Application debugging method and device for Android system, computer equipment and storage medium
CN111124208A (en) * 2019-12-24 2020-05-08 三一重工股份有限公司 Text sending method and system based on sending button

Also Published As

Publication number Publication date
CN105117339B (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN105117339A (en) Method and apparatus for debugging native command debugging program by utilizing plugin
CN107688529B (en) Component debugging method and device
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
US8797338B2 (en) Platform agnostic screen capture tool
CN110955428A (en) Page display method and device, electronic equipment and medium
CN103164300A (en) Mobile terminal touch screen automatic testing method and device
CN105224456A (en) A kind of test script generates methods, devices and systems
CN107040574B (en) Screenshot and data processing method and device
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN103914205A (en) File thumbnail display method and device for intelligent terminal
CN103530160A (en) Page loading method and device
CN109522010B (en) Initialization code adding method and device, storage medium and electronic equipment
CN102546797A (en) Screen shooting method for mobile equipment based on browser end/server end structure
CN104850498A (en) Filling information testing method and filling information testing system
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN112114789B (en) Service development method and equipment
CN109902003B (en) Test script generation method and device
CN113127361B (en) Application development method and device, electronic equipment and storage medium
CN110580146B (en) Mixed application solving system based on eros
CN114968192A (en) Project creation method and device, computer equipment and storage medium
US10659321B2 (en) Electronic apparatus for recording debugging information and control method thereof
CN110865573A (en) Control system based on python
CN112131092A (en) Page debugging method and device
CN105279074A (en) Method and device for displaying log information on terminal through NSLog
CN111596997B (en) UI information request method, device, terminal and storage medium

Legal Events

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

Effective date of registration: 20231009

Address after: 31a, 15 / F, building 30, maple mall, bangrang Road, Brazil, Singapore

Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd.

Address before: 511442 25 / F, building B-1, Wanda Plaza North, Wanbo business district, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU BAIGUOYUAN NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right