CN103729283B - System log output method and device and terminal device - Google Patents

System log output method and device and terminal device Download PDF

Info

Publication number
CN103729283B
CN103729283B CN201310710794.6A CN201310710794A CN103729283B CN 103729283 B CN103729283 B CN 103729283B CN 201310710794 A CN201310710794 A CN 201310710794A CN 103729283 B CN103729283 B CN 103729283B
Authority
CN
China
Prior art keywords
variable
debugging
modified
name
debugging variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310710794.6A
Other languages
Chinese (zh)
Other versions
CN103729283A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310710794.6A priority Critical patent/CN103729283B/en
Publication of CN103729283A publication Critical patent/CN103729283A/en
Application granted granted Critical
Publication of CN103729283B publication Critical patent/CN103729283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Embodiments of the invention provide a system log output method and device and a terminal device. In a debugging mode of the terminal device, the method includes: acquiring a debugging variable modification command through a system process corresponding to a debugging variable to be modified, modifying a value of the debugging variable, and outputting a system log corresponding to the debugging variable modified. According to the method, the value of the debugging variable is modified through a command line; the values of multiple debugging variables in a certain system process or the values of multiple debugging variables in multiple system processes can be modified in batch. Compared to the method of outputting logs by modifying the debugging variables by debugging tools, the method has the advantages that the debugging tools need not be mounted to the system processes; accordingly, the method of outputting the logs by modifying the debugging variables by the command line is simple to operate, takes little time and is efficient.

Description

A kind of system log output method, device and terminal device
Technical field
It relates to Android system debugging technique field, more particularly to a kind of system log output method, device and Terminal device.
Background technology
In product development process, after system developer has write system program or operating system produce exception error When, need program is carried out debugging test, thus syntax error in discovery procedure and logic error etc.;Or, send out in product After row, it is still necessary to system developer is to system when product goes wrong in actual use(As android system)In Program debugged, thus orientation problem be located.
But, occur the scene of exception error to be difficult to be reduced, for example, when mobile phone is in a certain geography in many cases During position, the geographical location information that GPS obtains can lead to Wrong localization.Technical staff is somebody's turn to do it is necessary to obtain when debugging Journal file under scene.Or, a certain application program will occur collapse phenomenon after clicked 1000 times.And at these The recurrence of scape is highly difficult or needs to expend a large amount of work, the acquisition also resulting in daily record is highly difficult.Content of the invention
A kind of system log output method, device and terminal device is provided, to solve Android in the embodiment of the present disclosure The problem that journal file output function is loaded down with trivial details, efficiency is low of system.
In order to solve above-mentioned technical problem, the embodiment of the present disclosure discloses following technical scheme:
In a first aspect, the disclosure provides a kind of system log output method, it is applied to be in the terminal device of debugging mode, Methods described includes:Debugging variable to be modified corresponding system process acquisition debugging variable's modification order, described debugging variable repaiies Change order and at least carry the corresponding class name of debugging variable to be modified and variable name;Described system process is according to described class name and described Variable name changes the variate-value of described debugging variable to be modified;It is corresponding that described system process exports described debugging variable to be modified System journal.
In conjunction with a first aspect, in the first possible implementation of first aspect, described terminal device passes through debugging Instrument and main-machine communication, described debugging acid includes operating in the order line finger daemon on described terminal device backstage, Yi Jiyun Row order line service processes on the host;
Described debugging variable to be modified corresponding system process acquisition debugging variable's modification order, in the following way:Institute State the corresponding system process of debugging variable to be modified and receive debugging variable's modification order that described order line finger daemon forwards;Institute State the process ID number that debugging variable's modification order also carries debugging variable's correspondence system process to be modified, and, described debugging becomes Amount modification order is sent to described order line finger daemon by described order line service processes, and by described order line finger daemon The corresponding system process of described debugging variable to be modified is forwarded to according to described process ID number.
In conjunction with a first aspect, in the possible implementation of the second of first aspect, described terminal device passes through debugging Instrument and main-machine communication, described debugging acid includes operating in the order line finger daemon on described terminal device backstage, Yi Jiyun Row order line service processes on the host;
Described debugging variable to be modified corresponding system process acquisition debugging variable's modification order, in the following way:Institute State the corresponding system process of debugging variable to be modified and receive debugging variable's modification order that described order line finger daemon forwards;Institute State the process ID number that debugging variable's modification order also carries described system process, and, described debugging variable's modification order is by institute State order line service processes to send to described order line finger daemon, and when described order line finger daemon is according to described to be modified The corresponding class name of debugging variable and variable name, when determining that described debugging variable to be modified allows to be modified, according to described process ID Number it is forwarded to the corresponding system process of described debugging variable to be modified.
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation of first aspect In, also include:Each system process in terminal device obtains class name and the variable name that correspondence can change debugging variable;Work as terminal When equipment starts, each system process described sends the described class name changing debugging variable and variable name to described order line Finger daemon preserves, so that described order line finger daemon obtains whole class names changing debugging variable and the change of terminal device Amount name.
Second aspect, the disclosure also provides a kind of system log output method, and the terminal being applied to be in debugging mode sets Standby, described terminal device passes through debugging acid and main-machine communication, and described debugging acid includes operating in described terminal device backstage Order line finger daemon, and run order line service processes on the host;Methods described includes:
Debugging variable's modification order that described order line finger daemon Receiving Host is sent by order line service processes, institute State debugging variable's modification order and carry the corresponding class name of debugging variable to be modified and variable name, and debugging variable to be modified corresponds to System process process ID number;Described order line finger daemon, according to described process ID number, described debugging variable is changed life Order sends the corresponding system process of extremely described debugging variable to be modified, so that described system process is according to described class name and variable name Change described debugging variable to be modified.
In conjunction with second aspect, in the first possible implementation of second aspect, also include:Described order line is guarded Process obtains class name and the variable name that all can change debugging variable in described terminal device system;Described order line finger daemon According to the described class name changing debugging variable and variable name, judge whether described debugging variable to be modified allows to be modified;When When described debugging variable to be modified allows to be modified, execute described order line finger daemon according to described process ID number by described tune Examination variable modification order sends to the step of the corresponding system process of debugging variable to be modified.
In conjunction with the first possible implementation of second aspect, in the possible implementation of the second of second aspect In, judge whether described debugging variable to be modified allows to be modified, in the following way:Described order line finger daemon judges institute State the corresponding class name of debugging variable to be modified and variable name is compared one by one with the class name that can change debugging variable and variable name, such as Fruit is described can change comprise in the corresponding class name of debugging variable and variable name the corresponding class name of described debugging variable to be modified with Variable name is it is determined that described debugging variable to be modified allows to be modified.
The third aspect, the disclosure also provides a kind of system journal output device, and the terminal being applied to be in debugging mode sets Standby, described device includes:First acquisition unit, for obtaining debugging variable's modification order, described debugging variable's modification order is extremely Carry the corresponding class name of debugging variable to be modified and variable name less;Debugging variable changes unit, for according to described class name and change Amount name changes the variate-value of described debugging variable to be modified;Daily record output unit, for exporting described debugging variable couple to be modified The system journal answered.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described terminal device passes through debugging Instrument and main-machine communication, described debugging acid includes operating in the order line finger daemon on described terminal device backstage, Yi Jiyun Row order line service processes on the host;Described device also includes:Second acquisition unit, for obtaining in terminal device The corresponding class name changing debugging variable of each system process and variable name;Transmitting element, for opening when described terminal device When dynamic, the described class name changing debugging variable and variable name sent and preserves to described order line finger daemon, so that described Order line finger daemon obtains whole class names changing debugging variable and the variable name of terminal device.
Fourth aspect, the disclosure also provides a kind of system journal output device, and terminal device connects master by debugging acid Machine, described debugging acid includes operating in the order line finger daemon on described terminal device backstage, and operates in described main frame On order line service processes;Described device includes:First receiving unit, is sent out by order line service processes for Receiving Host The debugging variable's modification order sent, described debugging variable's modification order carries the corresponding class name of debugging variable to be modified and variable Name, and the process ID number of the corresponding system process of debugging variable to be modified;Resolution unit, repaiies for parsing described debugging variable Change order and obtain described process ID number;Transmitting element, for sending out described debugging variable modification order according to described process ID number Deliver to the corresponding system process of described debugging variable to be modified, so that described system process is changed according to described class name and variable name Described debugging variable to be modified.
In conjunction with fourth aspect, in the first possible implementation of fourth aspect, also include:3rd acquiring unit, For obtaining class name and the variable name that all can change debugging variable in described terminal device system;Judging unit, for basis The described class name changing debugging variable and variable name, judge whether described debugging variable to be modified allows to be modified, when described When debugging variable to be modified allows to be modified, described transmitting element is made to send described debugging variable modification order extremely described to be repaired Change the corresponding system process of debugging variable.
In conjunction with the first possible implementation of fourth aspect, in the possible implementation of the second of fourth aspect In, described judging unit includes:Comparing subunit, for making order line finger daemon by the class name of debugging variable to be modified and change Amount name compare one by one with the class name that can change debugging variable and variable name, if described change the corresponding class name of debugging variable and The corresponding class name of described debugging variable to be modified and variable name is comprised it is determined that described debugging variable to be modified in variable name Allow to be modified.
5th aspect, the disclosure also provides a kind of terminal device, including:Memory, and one or more than one Instruction, one of or more than one instruction is stored in memory, and is configured to by one or more than one process Device execution is one or more than one instruction comprises the instruction for carrying out following operation:Debugging variable to be modified is corresponding System process obtains debugging variable's modification order, and it is corresponding that described debugging variable's modification order at least carries debugging variable to be modified Class name and variable name;Described system process changes the variable of described debugging variable to be modified according to described class name and described variable name Value;Described system process exports the corresponding system journal of described debugging variable to be modified.
The beneficial effect of the disclosure includes:When terminal device is in debugging mode, the corresponding system of debugging variable to be modified System process obtains debugging variable's modification and orders, and changes the variate-value of debugging variable, the corresponding system of debugging variable of output modifications System journal file, this kind of log-output method pass through order line modification debugging variable variate-value, can batch modification certain be The variate-value of the multiple debugging variable in system process, or the variate-value of the multiple debugging variable in multiple system process.With logical The mode crossing debugging acid modification debugging variable's output journal is compared, and debugging acid need not be articulated on system process, therefore Using order line change debugging variable's output journal method simple to operate, require time for less, efficiency high.
It should be appreciated that above general description and detailed description hereinafter are only exemplary, can not be limited this Open.Brief description
In order to be illustrated more clearly that the embodiment of the present disclosure or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, for those of ordinary skill in the art Speech, without having to pay creative labor, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of system log output method of the embodiment of the present disclosure;
Fig. 2 is the schematic flow sheet of embodiment of the present disclosure another kind system log output method;
Fig. 3 is the schematic flow sheet of another system log output method of the embodiment of the present disclosure;
Fig. 4 is the schematic flow sheet of another system log output method of the embodiment of the present disclosure;
Fig. 5 is the schematic flow sheet of embodiment of the present disclosure another kind system log output method;
Fig. 6 is a kind of structural representation of embodiment of the present disclosure system journal output device;
Fig. 7 is the structural representation of embodiment of the present disclosure another kind system journal output device;
Fig. 8 is a kind of structural representation of terminal device of the embodiment of the present disclosure.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the disclosure, real below in conjunction with the disclosure Apply the accompanying drawing in example, the enforcement it is clear that described is clearly and completely described to the technical scheme in the embodiment of the present disclosure Example is only a part of embodiment of the disclosure, rather than whole embodiments.Based on the embodiment in the disclosure, this area is common The every other embodiment that technical staff is obtained under the premise of not making creative work, all should belong to disclosure protection Scope.
Before the specific embodiment of the disclosure is discussed in detail, the debugging process to terminal device under introducing first, as In background technology introduce, when terminal device run occur abnormal conditions or, the debugging stage of product development, be required for obtain should Syslog file under scene, determines problem points by analysis system journal file.The acquisition of syslog file is passed through Corresponding debugging variable in modification system process realizes, generally by debugging acid(As Eclipse)It is articulated to terminal device fortune On the system process of row, after described system process is hung up, and when running in the sphere of action of debugging variable, tune could be passed through Trial work tool modification debugging variable, thus obtain the corresponding system journal of described debugging variable.Mistake by above-mentioned modification debugging variable Cheng Kezhi, during multiple debugging variable of the multiple system process of modification, operation is troublesome, the time is long.
The system log output method that the disclosure provides, first passes through debugging acid and sets up between terminal device and main frame Communication port, described debugging acid includes the order line finger daemon operating in terminal device backstage, and operates on main frame Order line service processes, commissioning staff inputs debug command by main frame, and described debug command sent out by order line service processes Deliver to order line finger daemon, then by order line finger daemon, debug command is sent to the system process of terminal device, finally Described debug command is executed by system process, dynamically changes debugging variable, dynamical output system journal.
For example, debugging acid is ADB(Android Debug Bridge)Instrument, ADB instrument is connected to for tracking Android device on Host main frame or simulator, realize various control commands, such as adb shell-command, adb pull order Deng.Wherein, order line finger daemon is ADBD(ADB Daemon), it is responsible for connecting terminal device(Android device or simulation Device)With order line service processes(ADB server).The terminal that ADBD server is connected on Host main frame for management sets Standby, and, ADB server preserves the list having connected terminal device, responsible transfer ADBClient and terminal device it Between data or order.Described ADB Client operates on main frame, and its effect is to run adb order from order line or script.
Refer to Fig. 1, show a kind of schematic flow sheet of system log output method that the embodiment of the present disclosure provides, such as Shown in Fig. 1, methods described may comprise steps of:
S110, debugging variable to be modified corresponding system process acquisition debugging variable's modification order;Described debugging variable repaiies Change order and at least carry the corresponding class name of debugging variable to be modified and variable name.The methods described of the present embodiment is applied to terminal and sets Standby system process.
For example, during the system journal of acquisition android system, debugging variable's modification order is " adb Setdebug4Window Manager Service.DEBUG_LAYOUT ", wherein, " adb setdebug " is designator, " 4 " Represent process ID number, " Window Manager Service " is the class name of the affiliated class of debugging variable, and " DEBUG_LAYOUT " is The variable name of debugging switch.
In an embodiment of the disclosure, described debugging variable's modification order is inputted on main frame by commissioning staff, and And, debugging variable's modification order also carries the corresponding process ID number of debugging variable to be modified;Described debugging variable modification order by Order line service processes on main frame are sent to the order line finger daemon running on the terminal device, and order line finger daemon will The debugging variable's modification order receiving is sent to the corresponding system process of described process ID number, and that is, debugging variable to be modified corresponds to Terminal device in system process.
S120, described system process changes the variable of described debugging variable to be modified according to described class name and described variable name Value.The system process receiving debugging variable's modification order changes class name and variable entrained by order according to modification debugging variable Name determines debugging variable to be modified, and changes the variate-value of described debugging variable to be modified.Described system process is by calling tune Examination variable changes the variate-value of debugging variable to be modified described in modification of program.
S130, described system process exports the corresponding system journal of described debugging variable to be modified.Change described to be modified After debugging variable, described system process exports the corresponding system journal of debugging variable to be modified.
The system log output method that the present embodiment provides, by the corresponding system process of debugging variable to be modified according to order Mobile state changes debugging variable to be modified, thus realizing the corresponding system journal of debugging variable to be modified described in dynamical output.Repair The opportunity changing debugging variable is more flexible, efficiency high, can change corresponding debugging variable after receiving debugging variable's modification order. Need not hang up when system process, and when system process runs in the sphere of action of described debugging variable to be modified, then profit Change debugging variable with debugging acid.The methods described of the present embodiment changes the simple to operate of debugging variable, and can criticize Amount changes the variate-value of the multiple debugging variable in certain system process, or, the multiple debugging variable in multiple system process Variate-value.
In view of the impact of the modification system process safe operation to terminal device for the debugging variable, some debugging variable do not permit Permitted to be modified.Refer to Fig. 2, show the schematic flow sheet of embodiment of the present disclosure another kind system log output method, described Method comprises the following steps:
S210, each system process in terminal device obtains class name and the variable name that correspondence can change debugging variable.This The methods described of embodiment is applied to system process in debugged terminal device.
Each system process of terminal device obtains the class name of debugging variable and the variable name allowing in own process to change. Commissioning staff considers system operation security, determines the class name of debugging variable and variable being allowed to change in each system process Name, and it is supplied to each system process allowing dynamic modification debugging variable.It is for instance possible to use following form is to system process Class name and the variable name of revisable debugging variable are provided:
Wherein, Window Manager Service and Activity Manager Service is class name;DEBUG_ LAYOUT and DEBUG_VISBILITY is variable name.
S220, when described terminal device starts, system process is by the class name of changed debugging variable obtaining and variable Name sends and preserves to described order line finger daemon;So that described order line finger daemon obtains the whole of terminal device and changes The class name of the debugging variable of debugging variable and variable name.
During terminal device starts, each system process to be started is set with debugged terminal by debugger Communication protocol between standby, such as JDWP(Java Debug Wire Protocol)Agreement, can will repair in described system process The class name of the debugging variable changing and variable name are registered in order line finger daemon, and now, order line finger daemon obtains end The changed debugging variable of whole system process in end equipment.
S230, the corresponding system process of debugging variable to be modified receives to be repaiied by the debugging variable that described order line guards forwarding Change order;Described debugging variable's modification order is by order line finger daemon according to the described class name changing debugging variable and variable Name, when determining that the debugging variable described to be modified in described debugging variable's modification order allows to be modified, is forwarded to described to be repaired Change the corresponding system process of debugging variable.
S240, the corresponding system process of described debugging variable to be modified is according to described class name and described variable name are changed The variate-value of debugging variable to be modified.System process determines to be modified according to the class name in debugging variable's modification order and variable name Debugging variable, and call debugging variable to change the variate-value of debugging variable to be modified described in modification of program.
S250, the corresponding system of the described debugging variable to be modified of the corresponding system process output of described debugging variable to be modified Daily record.After the variate-value modification of debugging variable to be modified, system process exports the corresponding system of described debugging variable to be modified Daily record.
The system log output method that the present embodiment provides, the order line finger daemon of terminal equipment side receives order line After debugging variable's modification order that service processes send, first according to the class name of changed debugging variable being obtained ahead of time and variable Name, after determining that described debugging variable to be modified allows to be modified, described debugging variable modification order is sent to corresponding system System process, thus changing described debugging variable to be modified by described system process, finally obtains corresponding system journal.This kind of side Method limits the modification on system operation influential debugging variable safely, thus avoid due to modification debugging variable lead to be The safety problem that system runs is it is ensured that the security of system operation.
Corresponding to above-mentioned system log output method embodiment, the disclosure additionally provides and is applied to run on terminal device The order line finger daemon on backstage system log output method.
Refer to Fig. 3, show a kind of schematic flow sheet of system log output method of the embodiment of the present disclosure, as schemed institute Show, methods described may comprise steps of:
S310, debugging variable's modification order that order line finger daemon Receiving Host is sent by order line service processes; Methods described is applied to the background process order line finger daemon in the terminal device be in debugging mode.
Described debugging variable's modification order carries the corresponding class name of debugging variable to be modified and variable name, and tune to be modified The process ID number of the examination corresponding system process of variable.
Commissioning staff inputs debugging variable's modification order on main frame, operates in the background process order line clothes on main frame Described debugging variable modification order is sent to the order line finger daemon of terminal equipment side by business process.
S320, described order line finger daemon parsing debugging variable's modification order obtains described process ID number.
S330, order line finger daemon, according to described process ID number, described debugging variable modification order is sent extremely described The corresponding system process of debugging variable to be modified so that described system process changed according to described class name and variable name described to be repaired Change debugging variable.
The system log output method that the present embodiment provides, is received by the order line finger daemon on terminal device and runs The order line service processes that order line service processes on main frame send, then, are become by the parsing debugging of order line finger daemon Amount modification order obtains process ID number, then debugging variable's modification order is sent to the corresponding system of described process ID number and enters Journey, so that after described system process receives debugging variable's modification order, becomes according to class name and the corresponding debugging of variable name modification Amount.This kind of mode need not be hung up when system process, and when system process runs to the effect model of described debugging variable to be modified When enclosing interior, debugging acid is recycled to change debugging variable.Directly order, certain system of batch modification are changed according to debugging variable The variate-value of the multiple debugging variable in process, or the variate-value of the multiple debugging variable in multiple system process, modification is adjusted Examination variable opportunity is more flexible, efficiency high.
In view of the impact of the modification system process safe operation to terminal device for the debugging variable, some debugging variable do not permit Permitted to be modified.Refer to Fig. 4, show the schematic flow sheet of embodiment of the present disclosure another kind system log output method.Described Method is applied to order line finger daemon.As shown in figure 4, methods described may comprise steps of:
S410, debugging variable's modification order that order line finger daemon Receiving Host is sent by order line service processes; Described debugging variable's modification order carries the corresponding class name of debugging variable to be modified and variable name, and debugging variable couple to be modified The process ID number of the system process answered.
S420, order line finger daemon obtains class name and the change that all can change debugging variable in described terminal device system Amount name.
First, system process obtains class name and the variable name of the changed debugging variable comprising in this process.
When the system of terminal device starts, the class name of the changed debugging variable obtaining and variable name are protected by system process Deposit to described order line finger daemon, so that described order line finger daemon obtains the whole of terminal device and changes debugging change The class name of amount and variable name.
S430, order line finger daemon, according to the described class name changing debugging variable and variable name, judges described to be repaired Change whether debugging variable allows to be modified;When described debugging variable to be modified allows to be modified, execution step S440;Otherwise, Return execution S410.
Order line finger daemon parsing receive debugging variable modification order, obtain debugging variable to be modified class name and Variable name, and the process ID number of debugging variable's correspondence system process to be modified.
Then, order line finger daemon judges the corresponding class name of described debugging variable to be modified and variable name and can change The corresponding class name of debugging variable and variable name compare one by one, if described change in the corresponding class name of debugging variable and variable name Comprise the corresponding class name of described debugging variable to be modified and variable name it is determined that described debugging variable to be modified allows to be repaiied Change.
S440, described order line finger daemon, according to described process ID number, described debugging variable modification order is sent extremely The corresponding system process of debugging variable to be modified so that described system process changed according to described class name and variable name described to be repaired Change debugging variable.
The system log output method that the present embodiment provides, when order line finger daemon determines that the debugging variable receiving repaiies When changing order debugging variable to be changed and allowing to be modified, just debugging variable's modification order is sent in terminal device corresponding System process, by described system process change described debugging variable, thus avoid due to modification debugging variable lead to system transport The safety problem of row is it is ensured that the security of system operation.
Corresponding to above-mentioned Fig. 1 and Fig. 2, and the system log output method shown in Fig. 3 and Fig. 4, the disclosure additionally provides It is applied to the system log output method of debugging system, wherein said debugging system includes debugged terminal device, debug work Tool and main frame, wherein, debugging acid includes operating in the order line finger daemon on described terminal device backstage, and operates in institute State the order line service processes on main frame.
Refer to Fig. 5, show the schematic flow sheet of embodiment of the present disclosure another kind system log output method, described side Method may comprise steps of:
S510, in terminal device, each system process obtains class name and the variable name that correspondence can change debugging variable.Debugging Personnel consider system operation security, determine the class name of debugging variable and variable name being allowed to change in each system process, And it is supplied to each system process allowing dynamic modification debugging variable.
S520, when described terminal device starts, each system process by obtain changed debugging variable class name and Variable name sends and preserves to described order line finger daemon.
S530, order line service processes receive debugging variable's modification order, and described debugging variable modification order is sent To order line finger daemon.Commissioning staff inputs debugging variable's modification order on main frame, then will be adjusted by order line service processes Examination variable modification order is sent to the order line finger daemon of terminal equipment side.
S540, order line finger daemon receives debugging variable's modification order that order line service processes send.Described debugging Variable modification order carries the corresponding class name of debugging variable to be modified and variable name, and the corresponding system of debugging variable to be modified The process ID number of process.
S550, order line finger daemon parsing described debugging variable modification order, obtain debugging variable to be modified corresponding Class name, variable name, and the process ID number of debugging variable's correspondence system process to be modified.
S560, according to the described class name changing debugging variable and variable name, judges whether debugging variable to be modified allows It is modified, when described debugging variable to be modified allows to be modified, execution step S570;Otherwise, return execution step S540.
S570, order line finger daemon, according to described process ID number, described debugging variable modification order is sent extremely to be repaired Change the corresponding system process of debugging variable.
S580, the described debugging variable's modification order of the corresponding system process parsing of described debugging variable to be modified obtains to be repaired Change class name and the variable name of debugging variable.
S590, the corresponding system process of described debugging variable to be modified is according to described class name and described variable name are changed The variate-value of debugging variable to be modified.System process determines to be modified according to the class name in debugging variable's modification order and variable name Debugging variable, and call debugging variable to change the variate-value of debugging variable to be modified described in modification of program.
S5100, the corresponding system of the described debugging variable to be modified of the corresponding system process output of described debugging variable to be modified System daily record.After the variate-value modification of debugging variable to be modified, system process exports the corresponding system of described debugging variable to be modified System daily record.
The system log output method that the present embodiment provides, changes order modification system by system process according to debugging variable Debugging variable to be modified in process.It is capable of the variate-value of multiple debugging variable in certain system process of batch modification, or, The variate-value of the multiple debugging variable in multiple system process.And, the debugging variable for impact system operation safety does not permit Permitted to be modified, thus avoid leading to the safety problem of system operation it is ensured that the peace of system operation due to modification debugging variable Quan Xing.
Corresponding to above-mentioned system log output method, present disclose provides system journal output device.
As shown in fig. 6, showing a kind of structural representation of embodiment of the present disclosure system journal output device, as schemed institute Show, described device includes:First acquisition unit 610, debugging variable's modification unit 620 and daily record output unit 630.The present embodiment The described device providing can apply to terminal device.
First acquisition unit 610, is used for making the corresponding system process of debugging variable to be modified obtain debugging variable's modification life Order, described debugging variable's modification order at least carries the corresponding class name of debugging variable to be modified and variable name.Commissioning staff is leading Input debugging variable modification order on machine, operates in background process order line service processes on main frame by described debugging variable Modification order is sent to the order line finger daemon of terminal equipment side.By order line finger daemon, described debugging variable is changed again Order is forwarded to described first acquisition unit.
Debugging variable changes unit 620, for changing described debugging variable's to be modified according to described class name and variable name Variate-value.Described system process changes, by this debugging variable, the variate-value that unit changes described debugging variable to be modified.
Daily record output unit 630, for exporting the corresponding system journal of described debugging variable to be modified.
The system journal output device that the present embodiment provides, debugging variable to be modified corresponding system process utilization debugging change Debugging variable to be modified dynamically changes according to order line, thus realizing debugging variable to be modified described in dynamical output in amount amendment unit Corresponding system journal.Modification debugging variable opportunity is more flexible, efficiency high, can repair after receiving debugging variable's modification order Change corresponding debugging variable.Need not hang up when system process, and when system process runs to described debugging variable's to be modified When in sphere of action, debugging acid is recycled to change debugging variable.The described device of the present embodiment can batch modification certain The variate-value of the multiple debugging variable in system process, or, the variate-value of the multiple debugging variable in multiple system process.
Preferably, system journal output device illustrated in fig. 6 can also include:Second acquisition unit 640 and transmission are single Unit 650.
Second acquisition unit 640, for obtaining in terminal device, each system process is corresponding to change debugging variable's Class name and variable name.
Transmitting element 650, for when the system of described terminal device starts, changing debugging variable described in acquisition Class name and variable name send to described order line finger daemon, so that described order line finger daemon obtains terminal device Class name and the variable name of debugging variable all can be changed.And then, when order line finger daemon is according to the class that can change debugging variable Name and variable name be when determining that described debugging variable to be modified allows to be modified, and just sends debugging variable's modification order to described the One acquiring unit.
The system journal output device that the present embodiment provides, system process is become by debugging according to debugging variable's modification order Amount modification unit changes the debugging variable to be modified in system process.Being capable of multiple debugging in certain system process of batch modification The variate-value of variable, or, the variate-value of the multiple debugging variable in multiple system process.And, for impact system operation The debugging variable of safety does not allow to be modified, thus avoid that the safety problem of system operation is led to due to modification debugging variable, Ensure that the security of system operation.
Corresponding to above-mentioned system journal output device embodiment, the disclosure additionally provides another kind of system journal output dress Put embodiment.
Refer to Fig. 7, show the structural representation of disclosure another kind system journal output device, as illustrated, institute State device can include:First receiving unit 710, resolution unit 720, transmitting element 730
First receiving unit 710, the debugging variable's modification order being sent by order line service processes for Receiving Host, Described debugging variable's modification order carries the corresponding class name of debugging variable to be modified and variable name, and debugging variable couple to be modified The process ID number of the system process answered.
Resolution unit 720, obtains described process ID number for parsing described debugging variable's modification order.
Transmitting element 730, extremely described to be repaired for being sent described debugging variable modification order according to described process ID number Change the corresponding system process of debugging variable, so that described system process changes described tune to be modified according to described class name and variable name Examination variable.
Preferably, the embodiment shown in Fig. 7 can also include:3rd acquiring unit 740 and judging unit 750.
3rd acquiring unit 740, for obtain the class name that all can change debugging variable in described terminal device system and Variable name.
In an embodiment of the disclosure, the storage unit that the 3rd acquiring unit 740 obtains in Fig. 6 shown device is protected The class name of the changed debugging variable depositing and variable name, thus obtain the tune all allowing modification in terminal equipment side system process The class name of examination variable and variable name.
Judging unit 750, for according to the described class name changing debugging variable and variable name, judging described tune to be modified Whether examination variable allows to be modified;
When described debugging variable to be modified allows to be modified, by described transmitting element 730, described debugging variable is changed Order sends the corresponding system process of extremely described debugging variable to be modified.
In an embodiment of the disclosure, described transmitting element sends debugging variable's modification order to shown in Fig. 6 First acquisition unit.
The system journal output device that the present embodiment provides, changes order modification system by system process according to debugging variable Debugging variable to be modified in process.It is capable of the variate-value of multiple debugging variable in certain system process of batch modification, or, The variate-value of the multiple debugging variable in multiple system process.And, determine that debugging variable's modification order is permitted in judging unit When being permitted to be modified, just this debugging variable modification order is sent to the system process of terminal equipment side;For impact system operation The debugging variable of safety does not allow to be modified, thus avoid that the safety problem of system operation is led to due to modification debugging variable, Ensure that the security of system operation.
The disclosure additionally provides terminal device, refers to Fig. 8, show it relates to terminal device structural representation Figure, this terminal device can be used for the application program backing method implementing to provide in above-described embodiment, specifically:
Terminal device can include RF(Radio Frequency, radio frequency)Circuit 110, include one or more The memory 120 of computer-readable recording medium, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, The parts such as WiFi module 170, the processor 180 including or more than one processing core and power supply 190.Ability Field technique personnel are appreciated that the terminal device structure shown in Fig. 8 does not constitute the restriction to terminal device, can include comparing Illustrate more or less of part, or combine some parts, or different part arrangements.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, especially, by base station After downlink information receives, transfer to one or more than one processor 180 is processed;In addition, by be related to up data is activation to Base station.Generally, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillator, use Family identity module(SIM)Card, transceiver, coupler, LNA(Low Noise Amplifier, low-noise amplifier), duplex Device etc..Additionally, RF circuit 110 can also be communicated with network and other equipment by radio communication.This radio communication can use Arbitrary communication standard or agreement, including but not limited to GSM (Global System of Mobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thus executing various function application and data processing.Memory 120 can mainly include storing journey Sequence area and storage data field, wherein, storing program area can application program needed for storage program area, at least one function(Than As sound-playing function, image player function etc.)Deng;Storage data field can store according to terminal device using the number being created According to(Such as voice data, phone directory etc.)Deng.Additionally, memory 120 can include high-speed random access memory, can also wrap Include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 access.
Input block 130 can be used for numeral or the character information of receives input, and produces and user setup and function Control relevant keyboard, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 can include Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect User is thereon or neighbouring touch operation(Such as user uses any suitable object such as finger, stylus or annex touch-sensitive Operation on surface 131 or near Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Can Choosing, Touch sensitive surface 131 may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection The touch orientation of user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller is from tactile Touch reception touch information in detection means, and be converted into contact coordinate, then give processor 180, and can receiving processor 180 orders sent simultaneously are executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Touch sensitive surface 131 realized by type.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically Ground, other input equipments 132 can include but is not limited to physical keyboard, function key(Such as volume control button, switch key Deng), trace ball, mouse, one or more of action bars etc..
Display unit 140 can be used for showing by the information of user input or is supplied to the information of user and terminal device Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to be configuring display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects thereon or neighbouring touches After touching operation, send processor 180 to determine the type of touch event, with preprocessor 180 according to the type of touch event Corresponding visual output is provided on display floater 141.Although in fig. 8, Touch sensitive surface 131 and display floater 141 are conducts Two independent parts realizing input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 and display Panel 141 integrated and realize input and output function.
Terminal device may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to environment Adjusting the brightness of display floater 141, proximity transducer can cut out display when terminal device moves in one's ear to the light and shade of light Panel 141 and/or backlight.As one kind of motion sensor, Gravity accelerometer can detect in all directions(Generally Three axles)The size of acceleration, can detect that size and the direction of gravity when static, can be used for identifying the application of mobile phone attitude(Than As horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, percussion)Deng;Extremely The other sensors such as the gyroscope that can also configure in terminal device, barometer, hygrometer, thermometer, infrared ray sensor, here Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal device.Sound Electric signal after the voice data receiving conversion can be transferred to loudspeaker 161, is converted to by loudspeaker 161 by frequency circuit 160 Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is received by voicefrequency circuit 160 After be converted to voice data, then after voice data output processor 180 is processed, such as another to be sent to through RF circuit 110 Terminal device, or voice data is exported to memory 120 to process further.Voicefrequency circuit 160 is also possible that ear Tip jack, to provide the communication of peripheral hardware earphone and terminal device.
WiFi belongs to short range wireless transmission technology, and terminal device can help user's transmitting-receiving electricity by WiFi module 170 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 8 shows Go out WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into of terminal device, completely can be according to need To omit in the scope of essence not changing invention.
Processor 180 is the control centre of terminal device, using each portion of various interfaces and connection whole mobile phone Point, it is stored in software program and/or module in memory 120 by running or executing, and call and be stored in memory 120 Interior data, the various functions of execution terminal device and processing data, thus carry out integral monitoring to mobile phone.Optionally, process Device 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modulation /demodulation process Device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is mainly located Reason radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal device also includes the power supply 190 powered to all parts(Such as battery)It is preferred that power supply can be by electricity Management system is logically contiguous with processor 180, thus realizing management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event Barrier testing circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal device can also include camera, bluetooth module etc., will not be described here.In this enforcement In example, the touch-screen display during display unit of terminal device.
Terminal device also includes one or more than one instruction(Instruction or program), one of or More than one program storage of person is in memory, and is configured to by one or more than one computing device, this or More than one instruction of person comprises the instruction for carrying out following operation:
Debugging variable to be modified corresponding system process acquisition debugging variable's modification order, described debugging variable's modification order At least carry the corresponding class name of debugging variable to be modified and variable name.
Described system process changes the variate-value of described debugging variable to be modified according to described class name and described variable name.
Described system process exports the corresponding system journal of described debugging variable to be modified.
It is preferred that the instruction that one or more than one instruction also includes for carrying out following operation:Described to be repaired Change the corresponding system process of debugging variable and receive debugging variable's modification order that described order line finger daemon forwards;Described debugging Variable modification order also carries the process ID number of debugging variable's correspondence system process to be modified, and, described debugging variable's modification Order is sent to described order line finger daemon by described order line service processes, and by described order line finger daemon according to institute State process ID number and be forwarded to the corresponding system process of described debugging variable to be modified.
It is preferred that the instruction that one or more than one instruction also includes for carrying out following operation:Described to be repaired Change the corresponding system process of debugging variable and receive debugging variable's modification order that described order line finger daemon forwards;Described debugging Variable modification order also carries the process ID number of described system process, and, described debugging variable's modification order is by described order Row service processes send to described order line finger daemon, when described order line finger daemon is according to described debugging variable to be modified Corresponding class name and variable name, when determining that described debugging variable to be modified allows to be modified, are forwarded to according to described process ID number The corresponding system process of described debugging variable to be modified.
It is preferred that the instruction that one or more than one instruction also includes for carrying out following operation:
System process obtains class name and the variable name that correspondence can change debugging variable;
When terminal device starts, system process preserves the class name of the changed debugging variable obtaining and variable name to institute State in order line finger daemon, so that described order line finger daemon obtains whole classes changing debugging variable of terminal device Name and variable name.
On the other hand, the terminal device of the disclosure can also include one or more than one instruction(instruction Or program), one of or more than one program storage in memory, and be configured to by one or one with Upper computing device, the instruction that this or more than one instruction comprise for carrying out following operation:
Debugging variable's modification order that described order line finger daemon Receiving Host is sent by order line service processes, institute State debugging variable's modification order and carry the corresponding class name of debugging variable to be modified and variable name, and debugging variable to be modified corresponds to System process process ID number;
According to described process ID number, described debugging variable modification order is sent corresponding to described debugging variable to be modified System process, so that described system process changes described debugging variable to be modified according to described class name and variable name.
It is preferred that the instruction that one or more than one instruction also includes for carrying out following operation:
Described order line finger daemon obtains class name and the change that all can change debugging variable in described terminal device system Amount name;
Described order line finger daemon, according to the described class name changing debugging variable and variable name, judges described to be modified Whether debugging variable allows is modified;
When described debugging variable to be modified allows to be modified, execute described order line finger daemon according to described process ID Number described debugging variable modification order is sent to the step of the corresponding system process of debugging variable to be modified.
It is preferred that the instruction that one or more than one instruction also includes for carrying out following operation:
Described order line finger daemon judges the corresponding class name of described debugging variable to be modified and variable name and can change The corresponding class name of debugging variable and variable name compare one by one, if described change in the corresponding class name of debugging variable and variable name Comprise the corresponding class name of described debugging variable to be modified and variable name it is determined that described debugging variable to be modified allows to be repaiied Change.
As on the other hand, the disclosure also provides a kind of computer-readable recording medium, this computer-readable recording medium It can be the computer-readable recording medium included in the memory in above-described embodiment;Can also be individualism, without Allocate the computer-readable recording medium in terminal into.Described computer-readable recording medium storage has one or more than one journey Sequence, one or more than one program is used for executing Fig. 1 and Fig. 2 by one or more than one processor, shown reality The system log output method of example offer is provided.
The disclosure also provides another kind of computer-readable recording medium, and this computer-readable recording medium can be above-mentioned reality Apply the computer-readable recording medium included in the memory in example;Can also be individualism, without allocating in terminal Computer-readable recording medium.Described computer-readable recording medium storage has one or more than one program, one Or more than one program is used for the system executing Fig. 3, embodiment illustrated in fig. 4 provides by one or more than one processor Log-output method.
Terminal device those skilled in the art can be understood that the disclosure can be by software plus necessary logical Realized with the mode of hardware platform naturally it is also possible to pass through hardware, but the former is more preferably embodiment in many cases.Base In such understanding, what the technical scheme of the disclosure substantially contributed to prior art in other words partly can be produced with software The form of product embodies, and this computer software product is stored in a storage medium, including some instructions with so that one Platform computer equipment(Can be personal computer, server, or network equipment etc.)Described in execution each embodiment of the disclosure The all or part of step of method.And aforesaid storage medium includes:Read-only storage(ROM), random access memory (RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
For convenience of description, it is divided into various units to be respectively described with function when describing apparatus above.Certainly, implementing this The function of each unit can be realized in same or multiple softwares and/or hardware when open.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, referring to method in place of correlation The part of embodiment illustrates.Apparatus and system embodiment described above is only schematically wherein said conduct Separating component explanation unit can be or may not be physically separate, as the part that unit shows can be or Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root Factually border need select the purpose to realize this embodiment scheme for some or all of module therein.Ordinary skill Personnel are not in the case of paying creative work, you can to understand and to implement.

Claims (7)

1. a kind of system log output method, is applied to be in the terminal device of debugging mode it is characterised in that described terminal sets Standby by debugging acid and main-machine communication, described debugging acid include operating in described terminal device backstage order line guard into Journey, and run order line service processes on the host, methods described includes:
The corresponding system process of debugging variable to be modified receives debugging variable's modification order that described order line finger daemon forwards, Described debugging variable's modification order at least carries the corresponding class name of debugging variable to be modified and variable name;Described debugging variable's modification Order also carries the process ID number of described system process, and, described debugging variable's modification order by described order line service into Journey sends to described order line finger daemon, when described order line finger daemon is according to the corresponding class of described debugging variable to be modified Name and variable name, when determining that described debugging variable to be modified allows to be modified, are forwarded to described to be repaired according to described process ID number Change the corresponding system process of debugging variable;
Described system process changes the variate-value of described debugging variable to be modified according to described class name and described variable name;
Described system process exports the corresponding system journal of described debugging variable to be modified.
2. method according to claim 1 it is characterised in that described terminal device pass through debugging acid and main-machine communication, Described debugging acid includes operating in the order line finger daemon on described terminal device backstage, and runs on the host Order line service processes;
Described debugging variable to be modified corresponding system process acquisition debugging variable's modification order, in the following way:
The corresponding system process of described debugging variable to be modified receives debugging variable's modification that described order line finger daemon forwards Order;Described debugging variable's modification order also carries the process ID number of debugging variable's correspondence system process to be modified, and, described Debugging variable's modification order is sent to described order line finger daemon by described order line service processes, and is kept by described order line Shield process is forwarded to the corresponding system process of described debugging variable to be modified according to described process ID number.
3. method according to claim 1 is it is characterised in that also include:
Each system process in terminal device obtains class name and the variable name that correspondence can change debugging variable;
When described terminal device starts, the described class name changing debugging variable and variable name are sent out by each system process described Deliver to described order line finger daemon to preserve, so that described order line finger daemon obtains the whole of terminal device and changes debugging The class name of variable and variable name.
4. it is characterised in that being applied to be in the terminal device of debugging mode, described terminal sets a kind of system log output method Standby by debugging acid and main-machine communication, described debugging acid include operating in described terminal device backstage order line guard into Journey, and run order line service processes on the host;Methods described includes:
Debugging variable's modification order that described order line finger daemon Receiving Host is sent by order line service processes, described tune Examination variable modification order carries the corresponding class name of debugging variable to be modified and variable name, and the corresponding system of debugging variable to be modified The process ID number of system process;
Described order line finger daemon obtains class name and the variable name that all can change debugging variable in described terminal device system;
Described order line finger daemon judges the corresponding class name of described debugging variable to be modified and variable name and can change debugging The class name of variable and variable name compare one by one, if described change comprise in the corresponding class name of debugging variable and variable name described The corresponding class name of debugging variable to be modified and variable name are it is determined that described debugging variable to be modified allows to be modified;
When described debugging variable to be modified allows to be modified, described order line finger daemon, will according to described process ID number Described debugging variable's modification order sends the corresponding system process of extremely described debugging variable to be modified, so that described system process root Change described debugging variable to be modified according to described class name and variable name.
5. a kind of system journal output device, is applied to be in the terminal device of debugging mode it is characterised in that described terminal sets Standby by debugging acid and main-machine communication, described debugging acid include operating in described terminal device backstage order line guard into Journey, and run order line service processes on the host, described device includes:
First acquisition unit, for receiving debugging variable's modification order that described order line finger daemon forwards, described debugging becomes Amount modification order at least carries the corresponding class name of debugging variable to be modified and variable name;Described debugging variable's modification order also carries The process ID number of described system process, and, described debugging variable's modification order is sent to institute by described order line service processes State order line finger daemon, when described order line finger daemon is according to the corresponding class name of described debugging variable to be modified and variable Name, when determining that described debugging variable to be modified allows to be modified, is forwarded to described debugging to be modified according to described process ID number and becomes Measure corresponding system process;
Debugging variable changes unit, for changing the variate-value of described debugging variable to be modified according to described class name and variable name;
Daily record output unit, for exporting the corresponding system journal of described debugging variable to be modified.
6. device according to claim 5 it is characterised in that described terminal device pass through debugging acid and main-machine communication, Described debugging acid includes operating in the order line finger daemon on described terminal device backstage, and runs on the host Order line service processes;Described device also includes:
Second acquisition unit, for obtaining the corresponding class name changing debugging variable of each system process in terminal device and change Amount name;
Transmitting element, for when described terminal device starts, the described class name changing debugging variable and variable name being sent Preserve to described order line finger daemon, so that described order line finger daemon obtains the whole of terminal device and changes debugging change The class name of amount and variable name.
7. a kind of system journal output device is it is characterised in that terminal device connects main frame, described debugging work by debugging acid Tool includes operating in the order line finger daemon on described terminal device backstage, and runs order line service on the host Process;Described device includes:
First receiving unit, the debugging variable's modification order being sent by order line service processes for Receiving Host, described tune Examination variable modification order carries the corresponding class name of debugging variable to be modified and variable name, and the corresponding system of debugging variable to be modified The process ID number of system process;
Resolution unit, obtains described process ID number for parsing described debugging variable's modification order;
3rd acquiring unit, for obtaining class name and the variable name that all can change debugging variable in described terminal device system;
Judging unit, for according to the described class name changing debugging variable and variable name, judging described debugging variable to be modified Whether allow to be modified, when described debugging variable to be modified allows to be modified, make described transmitting element by described debugging variable Modification order sends the corresponding system process of extremely described debugging variable to be modified;Transmitting element, for according to described process ID number Described debugging variable modification order is sent the corresponding system process of extremely described debugging variable to be modified, so that described system process Described debugging variable to be modified is changed according to described class name and variable name;
Described judging unit includes:Comparing subunit, described comparing subunit is used for making order line finger daemon by tune to be modified The examination corresponding class name of variable and variable name are compared with the class name that can change debugging variable and variable name, one by one if described change The corresponding class name of described debugging variable to be modified and variable name is comprised it is determined that described in the class name of debugging variable and variable name Debugging variable to be modified allows to be modified.
CN201310710794.6A 2013-12-20 2013-12-20 System log output method and device and terminal device Active CN103729283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310710794.6A CN103729283B (en) 2013-12-20 2013-12-20 System log output method and device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310710794.6A CN103729283B (en) 2013-12-20 2013-12-20 System log output method and device and terminal device

Publications (2)

Publication Number Publication Date
CN103729283A CN103729283A (en) 2014-04-16
CN103729283B true CN103729283B (en) 2017-02-15

Family

ID=50453364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310710794.6A Active CN103729283B (en) 2013-12-20 2013-12-20 System log output method and device and terminal device

Country Status (1)

Country Link
CN (1) CN103729283B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975387A (en) * 2015-12-09 2016-09-28 乐视移动智能信息技术(北京)有限公司 Method and device for capturing terminal debugging information
CN107992407A (en) * 2017-11-15 2018-05-04 烽火通信科技股份有限公司 System and method using USB flash disk to android terminal equipment debugging
CN111475416B (en) * 2020-04-08 2024-03-19 网易(杭州)网络有限公司 Debugging method, device, system and storage medium
US11693759B2 (en) 2021-05-14 2023-07-04 International Business Machines Corporation Providing for multi-process log debug without running on a production environment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286431A (en) * 1999-11-30 2001-03-07 深圳市中兴通讯股份有限公司 Embedded software aided debugging method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100351785C (en) * 2003-12-10 2007-11-28 华为技术有限公司 Method for debuging embedded system and equipment
US7748033B2 (en) * 2005-02-25 2010-06-29 Microsoft Corporation Windows remote debugger service

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286431A (en) * 1999-11-30 2001-03-07 深圳市中兴通讯股份有限公司 Embedded software aided debugging method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
航空嵌入式软件全数字仿真测试技术研究;肖前远;《中国优秀硕士学位论文全文数据库》;20110615;第31-49页 *

Also Published As

Publication number Publication date
CN103729283A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN103942113B (en) The detection method of system reboot reason, device and terminal unit
CN105278937B (en) A kind of method and device showing pop-up box message
CN105320598A (en) Software testing method and device
CN105005909A (en) Method and device for predicting lost users
CN108039963B (en) Container configuration method and device and storage medium
CN105528297A (en) Method and device for testing web page
CN106227588A (en) The creation method of a kind of multi-instance object, device and mobile terminal
CN104516812A (en) Method and device for testing software
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN103455603A (en) Method and device for caching webpage content and loading webpage and terminal device
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN106293308A (en) A kind of unlocking screen method and device
CN106371964A (en) Message prompting method and apparatus
CN104423822A (en) Automated test script recording method and device
CN103729283B (en) System log output method and device and terminal device
CN104363590A (en) Access point connection method and device
CN106407800A (en) A hook method and a terminal device
CN107104930A (en) It is a kind of that the methods, devices and systems for checking authority are set
CN105553718B (en) Guidance information display methods and device
CN104391629A (en) Method for sending message in orientation manner, method for displaying message, server and terminal
CN104092657A (en) Information transmission method, device and system
CN106709330B (en) Method and device for recording file execution behaviors
CN109688611A (en) A kind of configuration method, device, terminal and the storage medium of frequency range parameter
CN104580251B (en) A kind of method and apparatus for carrying out authorizing quick registration
CN104852944B (en) The display methods and device of login interface

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