CN106598847A - Software off-line dynamic debugging method and device - Google Patents

Software off-line dynamic debugging method and device Download PDF

Info

Publication number
CN106598847A
CN106598847A CN201611080948.8A CN201611080948A CN106598847A CN 106598847 A CN106598847 A CN 106598847A CN 201611080948 A CN201611080948 A CN 201611080948A CN 106598847 A CN106598847 A CN 106598847A
Authority
CN
China
Prior art keywords
line
configuration file
software
unit
parameter
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.)
Pending
Application number
CN201611080948.8A
Other languages
Chinese (zh)
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.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics 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 Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN201611080948.8A priority Critical patent/CN106598847A/en
Publication of CN106598847A publication Critical patent/CN106598847A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a software off-line dynamic debugging method and device. The method comprises an object program generating and running step, an off-line configuration file compiling step, a debugging item starting step, a parameter calling step, an effect detection step, an off-line dynamic debugging step and a debugging module saving step. Running parameters of debugging software are dynamically modified during running of program software, and high efficiency and flexibility are achieved.

Description

A kind of software off line dynamic modulation and device
Technical field
The present invention relates to embedded software technology field, more particularly to a kind of software off line dynamic modulation and device.
Background technology
In software development process, online on-line debugging due to can real-time tracking program ruuning situation, therefore analyze it is soft Possesses clear superiority when part bug, logical error.But online on-line debugging also has its limitation, i.e., can not repair online Change, need to recompilate startup after modification, a large amount of steps need repetitive operation, greatly reduce the efficiency of debugging, such as Fig. 1 institutes Show.For example, when debugging bluetooth incoming ring tone volume by the method for online on-line debugging, it is by writing the parameter of a group 32 Value is adjusting, and volume and the non-linear relation of parameter value, adjusting parameter value is tested repeatedly to need often one-level volume, A suitable parameter value is eventually found, debugging efficiency is lower.
Therefore, prior art is further improved.
The content of the invention
The present invention provides a kind of software off line dynamic modulation and device, it is intended to solve defect of the prior art, real The operational factor of debugging software can be dynamically changed in program software operation now.
To reach above-mentioned purpose, the technical solution used in the present invention is:
One aspect of the present invention provides a kind of software off line dynamic modulation, including:
The step of generating simultaneously operational objective program;
The step of establishment off line configuration file;
The step of Start-up and Adjustment project;
The step of call parameters;
The step of effect detection;
The step of off line dynamic debugging;
The step of preserving debugging module.
Specifically, it is described to generate and include the step of operational objective program:The software code of debugging module is compiled Target program is generated, the target program is synchronized in Devices to test, run the target program.
Specifically, include the step of the establishment off line configuration file:Establishment off line configuration file, determines debug-item Variable, and be that the variable of the debug-item self-defined arranges variable key name in the off line configuration file.
Specifically, include the step of the call parameters:The parameter in off line configuration file tool storage room is called to read interface Read the parameter current of the variable of the debug-item from off line configuration file, and it is current with the variable of the debug-item Debug-item described in parameter change.
Specifically, include the step of the effect detection:Detect whether the debug-item produces a desired effect, be, enter Enter the step of preserving debugging module, otherwise the step of off line dynamic debugging.
Specifically, include the step of the off line dynamic debugging:Change debug-item in the off line configuration file The parameter of variable, is then written in Devices to test, and the step of return Start-up and Adjustment project.
Specifically, include the step of the preservation debugging module:Parameter current is solidified into the soft of the write debugging module Preserved in part code.
Another aspect of the present invention provides a kind of software off line dynamic debugging device, including the program being arranged in commissioning device Compilation unit, lock unit, configuration file unit, parameter reading and writing unit, parameter configuration files, start unit, communication unit, if Put memory element in Devices to test, loading unit, internal storage location;
Described program compilation unit, for generating target program;
The lock unit, for the target program is synchronized in Devices to test;
The configuration file unit, for working out off line configuration file;
The parameter reading and writing unit, the current ginseng of the variable for reading debug-item from the off line configuration file Number, and be written in the target program being currently running;
The parameter configuration unit, for changing the parameter of the variable of the debug-item in the off line configuration file;
The communication unit, communicates for the commissioning device and the Devices to test;
The start unit, for target program described in startup optimization;
The memory element, for storing the target program;
The loading unit, for the reading target program from memory element in internal memory;
The internal storage location, for running the target program.
The beneficial effects of the present invention is:The present invention utilizes off line configuration file, and some key parameters in program are entered Row modification, then the real-time new parameter read in off line configuration file in program operation, realizes in program software operation The operational factor of dynamic modification debugging software, it is to avoid substantial amounts of repetitive process, can make developer concentrate one's energy to be absorbed in In the emphasis of software debugging, save the development time, high efficient and flexible.
Description of the drawings
Fig. 1 is the schematic flow sheet of existing software debugging method;
Fig. 2 is the schematic flow sheet of the software off line dynamic modulation of the present invention;
Fig. 3 is the structural representation of the software off line dynamic debugging device of the present invention.
Specific embodiment
Embodiments of the present invention are illustrated below in conjunction with the accompanying drawings specifically, accompanying drawing is only for reference and explanation is used, and it is right not constitute The restriction of scope of patent protection of the present invention.
On the one hand embodiments of the invention provide a kind of software off line dynamic modulation, as shown in Fig. 2 including:
The step of step 1, generation operational objective program:The software code of debugging module is compiled into generation target journey Sequence, the target program is synchronized in Devices to test, runs the target program.
In embodiment, the debugging module is bluetooth volume module, and the target program is the mesh of bluetooth volume module Beacon course sequence, the Devices to test are inter-vehicle information system.
The step of step 2, establishment off line configuration file:Establishment off line configuration file, determines the variable of debug-item, and It is the self-defined setting variable key name of variable of the debug-item in the off line configuration file.
In embodiment, the off line configuration file is ini file, and the debug-item is bluetooth incoming ring tone volume.
Ini file is the abbreviation of Initialization File, i.e. initialization files, is the system configuration text of windows The storage format adopted by part, the configuration of the parameters of windows under the overall leadership, realizes various functions.
In the present embodiment, the variable of the debug-item is ringing volume parameter, is to need to write bluetooth incoming ring tone Volume drive in 32 data, be that the variable key name of the self-defined setting of the ringing volume parameter is in INI configuration files BTRingVolData。
The step of step 3, Start-up and Adjustment project.
It is easily understood that before Start-up and Adjustment project, may also comprising the target program and associated external are set It is standby to set up the step of connecting.In the present embodiment, first the target program is set up with bluetooth cellular phone and is connected, by miscellaneous equipment Dial the bluetooth cellular phone and carry out Start-up and Adjustment project (bluetooth incoming ring tone volume).
The step of step 4, call parameters:Call the parameter in off line configuration file tool storage room to read interface to configure from off line The parameter current of the variable of the debug-item is read in file, and the parameter current with the variable of the debug-item changes institute State debug-item.
In the specific implementation, the parameter reads interface and voluntarily can encapsulate as needed, in the present embodiment, the ginseng It is GetIniString () api interface that number reads interface.
When adjusting ringing volume every time, newest parameter is obtained by GetIniString () api interface, then will be described Bluetooth incoming call volume effect is debugged in newest parameter read-in bluetooth incoming ring tone volume driving.
The step of step 5, effect detection:Detect whether the debug-item produces a desired effect, be then to enter step 7, Step 6 is entered otherwise.
In the present embodiment, specifically detect whether bluetooth incoming ring tone volume meets the requirements.
The step of step 6, off line dynamic debugging:Change the ginseng of the variable of debug-item in the off line configuration file Number, is then written in Devices to test, and return to step 3.
In the present embodiment, can be by the modification INI configuration files in desktop operating system (such as windows) The parameter of BTRingVolData realizes off line dynamic debugging changing the size of bluetooth incoming ring tone volume.
The step of step 7, preservation debugging module:Enter in the software code that parameter current is solidified the write debugging module Row is preserved.
As shown in figure 3, another aspect of the present invention provides a kind of software off line dynamic debugging device, set including debugging is arranged on Program compilation unit, lock unit, configuration file unit, parameter reading and writing unit, parameter configuration files, start unit in standby, Communication unit, is arranged on memory element in Devices to test, loading unit, internal storage location;
Described program compilation unit, for generating target program;
The lock unit, for the target program is synchronized in Devices to test;
The configuration file unit, for working out off line configuration file;
The parameter reading and writing unit, the current ginseng of the variable for reading debug-item from the off line configuration file Number, and be written in the target program being currently running;
The parameter configuration unit, for changing the parameter of the variable of the debug-item in the off line configuration file;
The communication unit, communicates for the commissioning device and the Devices to test;
The start unit, for target program described in startup optimization;
The memory element, for storing the target program;
The loading unit, for the reading target program from memory element in internal memory;
The internal storage location, for running the target program.
The course of work of software off line dynamic debugging device of the present invention is:
First, the software code of debugging module is compiled by generation target journey by the program compilation unit of commissioning device Sequence, lock unit are synchronized to the target program in the memory element of Devices to test by communication unit, are led to by start unit Cross communication unit and the instruction for running the target program is sent to Devices to test, the loading unit of Devices to test is receiving operation After the instruction of the target program, from memory element, reading target program is in the internal storage location of Devices to test.
Then, off line configuration file is worked out by configuration file unit, determines the variable of debug-item, and in the off line It is the self-defined setting variable key name of variable of the debug-item in configuration file.Parameter reading and writing unit is from off line configuration file The parameter current of the variable of the debug-item is read, and the parameter current write of the variable of the debug-item is currently running Target program in, to change the debug-item.
If the debug-item produces a desired effect, parameter current is solidified into the software code of the write debugging module In preserved;The parameter of the variable of debug-item in the off line configuration file is changed by parameter configuration unit otherwise, Then it is written in Devices to test by parameter reading and writing unit, detects whether that the debug-item produces a desired effect again.
Above disclosed is only presently preferred embodiments of the present invention, it is impossible to the rights protection model of the present invention is limited with this Enclose, therefore the equivalent variations made according to scope of the present invention patent, still belong to the scope covered by the present invention.

Claims (8)

1. a kind of software off line dynamic modulation, it is characterised in that include:
The step of generating simultaneously operational objective program;
The step of establishment off line configuration file;
The step of Start-up and Adjustment project;
The step of call parameters;
The step of effect detection;
The step of off line dynamic debugging;
The step of preserving debugging module.
2. software off line dynamic modulation according to claim 1, it is characterised in that the generation operational objective journey The step of sequence, includes:The software code of debugging module is compiled into generation target program, the target program is synchronized to and is treated In measurement equipment, the target program is run.
3. software off line dynamic modulation according to claim 1, it is characterised in that the establishment off line configuration file The step of include:Establishment off line configuration file, determines the variable of debug-item, and is the tune in the off line configuration file The variable of examination project is self-defined to arrange variable key name.
4. software off line dynamic modulation according to claim 1, it is characterised in that wrap the step of the call parameters Include:The parameter in off line configuration file tool storage room is called to read the change that interface reads the debug-item from off line configuration file The parameter current of amount, and the parameter current with the variable of the debug-item changes the debug-item.
5. software off line dynamic modulation according to claim 1, it is characterised in that wrap the step of the effect detection Include:Detect whether the debug-item produces a desired effect, be then to enter the step of preserving debugging module, it is otherwise dynamic into off line The step of state is debugged.
6. software off line dynamic modulation according to claim 1, it is characterised in that the step of the off line dynamic debugging Suddenly include:The parameter of the variable of debug-item in the off line configuration file is changed, is then written in Devices to test, and is returned The step of returning Start-up and Adjustment project.
7. software off line dynamic modulation according to claim 1, it is characterised in that the step of the preservation debugging module Suddenly include:Preserved in the software code that parameter current is solidified the write debugging module.
8. a kind of software off line dynamic debugging device, it is characterised in that include:The program compiling being arranged in commissioning device is single Unit, lock unit, configuration file unit, parameter reading and writing unit, parameter configuration files, start unit, communication unit, are arranged on and treat Memory element, loading unit in measurement equipment, internal storage location;
Described program compilation unit, for generating target program;
The lock unit, for the target program is synchronized in Devices to test;
The configuration file unit, for working out off line configuration file;
The parameter reading and writing unit, the parameter current of the variable for reading debug-item from the off line configuration file, and It is written in the target program being currently running;
The parameter configuration unit, for changing the parameter of the variable of the debug-item in the off line configuration file;
The communication unit, communicates for the commissioning device and the Devices to test;
The start unit, for target program described in startup optimization;
The memory element, for storing the target program;
The loading unit, for the reading target program from memory element in internal memory;
The internal storage location, for running the target program.
CN201611080948.8A 2016-11-30 2016-11-30 Software off-line dynamic debugging method and device Pending CN106598847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611080948.8A CN106598847A (en) 2016-11-30 2016-11-30 Software off-line dynamic debugging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611080948.8A CN106598847A (en) 2016-11-30 2016-11-30 Software off-line dynamic debugging method and device

Publications (1)

Publication Number Publication Date
CN106598847A true CN106598847A (en) 2017-04-26

Family

ID=58596038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611080948.8A Pending CN106598847A (en) 2016-11-30 2016-11-30 Software off-line dynamic debugging method and device

Country Status (1)

Country Link
CN (1) CN106598847A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131135A (en) * 2020-11-19 2020-12-25 华控清交信息科技(北京)有限公司 Ciphertext operation debugging method and system and device for ciphertext operation debugging

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720097A (en) * 2008-10-09 2010-06-02 中兴通讯股份有限公司 Method and system for automatically debugging audio frequency of mobile terminal
CN102231128A (en) * 2011-07-06 2011-11-02 青岛海信信芯科技有限公司 Online debugging method and debugging host
CN103049375A (en) * 2012-12-07 2013-04-17 广东欧珀移动通信有限公司 Camera online debugging method
CN105204995A (en) * 2015-09-21 2015-12-30 上海斐讯数据通信技术有限公司 Method and system for dynamically debugging key parameters based on cellphone platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720097A (en) * 2008-10-09 2010-06-02 中兴通讯股份有限公司 Method and system for automatically debugging audio frequency of mobile terminal
CN102231128A (en) * 2011-07-06 2011-11-02 青岛海信信芯科技有限公司 Online debugging method and debugging host
CN103049375A (en) * 2012-12-07 2013-04-17 广东欧珀移动通信有限公司 Camera online debugging method
CN105204995A (en) * 2015-09-21 2015-12-30 上海斐讯数据通信技术有限公司 Method and system for dynamically debugging key parameters based on cellphone platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131135A (en) * 2020-11-19 2020-12-25 华控清交信息科技(北京)有限公司 Ciphertext operation debugging method and system and device for ciphertext operation debugging
CN112131135B (en) * 2020-11-19 2021-03-05 华控清交信息科技(北京)有限公司 Ciphertext operation debugging method and system and device for ciphertext operation debugging

Similar Documents

Publication Publication Date Title
CN102375778B (en) Method and system for automatically testing digital signal processor (DSP)
CN100386743C (en) Debugging method of embedded system and its system
CN102855138B (en) The hold-up interception method of a kind of API, device and mobile terminal
CN101938566B (en) Visual terminal debugging method and device
CN101667134B (en) Method for constructing compiling system and compiling system constructing device
CN104317589A (en) Automatic code generating method and automatic code generating device for loading dynamic link library
CN111984235B (en) Customizable front-end low-code development system and method
CN104268074A (en) Application software online debugging method based on DCS
CN103365668B (en) A kind of dynamic link library loads and the method, apparatus of link
CN100456260C (en) Interpreter language debugging method and device
CN102520272A (en) Test system of power down protection function of smart card and method
US8225286B2 (en) Debugging interpreted input
CN107015841A (en) The preprocess method and program compiling equipment of a kind of program compiling
CN102063367B (en) Off-line analysis method and device aiming at computer crash program
CN103123601A (en) Software development troubleshooting method and device based on Symbian system
CN103049374A (en) Automatic testing method and device
CN103309741B (en) Call the method and apparatus of pin function
CN106598847A (en) Software off-line dynamic debugging method and device
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN104375932A (en) Method and device for analyzing code coverage rate of Java card
CN108198582B (en) NAND Flash control method and device and SSD
CN105824750A (en) Soft breakpoint simulation method during NorFlash program space debugging
CN103049376A (en) Memory overflow test method, device and equipment of courses
CN103838664A (en) Pressure testing method and device
CN100469171C (en) A test system for multiple mode mobile terminal and its test method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426

RJ01 Rejection of invention patent application after publication