CN103049378A - Program debugging method without emulator - Google Patents
Program debugging method without emulator Download PDFInfo
- Publication number
- CN103049378A CN103049378A CN2012105511254A CN201210551125A CN103049378A CN 103049378 A CN103049378 A CN 103049378A CN 2012105511254 A CN2012105511254 A CN 2012105511254A CN 201210551125 A CN201210551125 A CN 201210551125A CN 103049378 A CN103049378 A CN 103049378A
- Authority
- CN
- China
- Prior art keywords
- program
- test code
- program statement
- statement
- debugging
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
A program debugging method without an emulator includes the steps: A, pre-placing a test code in each program statement in a program when editing the program; B, operating the program with the test code, assigning a specific value in the test code corresponding to a certain program statement if the program statement is normally operated; and C, feeding back the specific value and feedback time of the program statement to an upper computer by the test code, normally obtaining the specific value and the feedback time to indicate that the program statement corresponding to the test code is normally executed, otherwise, indicating that the program statement is not executed or is abnormally executed and needs modification. By the aid of the program debugging method, the emulator can be completely omitted, on-site debugging can be realized only by the upper computer and corresponding debugging software, the software can be conveniently debugged, cost is saved, the program can be modified and debugged on a hardware using site, software debugging efficiency is improved, and research and development progress is accelerated.
Description
Technical field
The present invention relates to the improvement technology of the debugging of program.
Background technology
The software engineer must debug after software programming was finished, under self-contained condition, utilize emulator to do authentic simulation to the program execution in step, but it is not complete or carry out software debugging at the client scene of using at equipment, when being inconvenient to use emulator, software debugging just quite bothers, even a lot of situation can't realize software debugging.
Summary of the invention
In view of this, the technical problem to be solved in the present invention is a kind of program debugging method that need not emulator that emulator can on-the-spot carry out program debug of debugging conveniently and need not.
In order to solve the problems of the technologies described above, the present invention adopts following scheme to realize:
A kind of program debugging method that need not emulator, the method comprises the steps:
A. when edit routine, place test code in the program statement of each in program in advance;
B. working procedure moves the program with test code, if a certain program statement normal operation, then to would composing a particular value in the test code of program statement;
C. test code feeds back to host computer with the feedback time of this particular value and this program statement, normally obtains this particular value and feedback time and represents that then the program statement corresponding with this test code carried out and carried out normally; Otherwise represent that this program statement do not carry out or carried out undesired, this program statement need to be made amendment.
The present invention can fully phase out emulator, only needs host computer and corresponding debugging software can carry out field adjustable, can guarantee the convenience of software debugging, and saved cost, can debug on the update routine limit, the on-the-spot limit of use of hardware, improve the efficient of software debugging, improve the research and development progress.
Embodiment
For the ease of it will be appreciated by those skilled in the art that below in conjunction with embodiment the present invention is described in further detail:
Program debug is the work that must do to the programmer, but it is not complete or carry out software debugging at the client scene of using at equipment, when being inconvenient to use emulator, software debugging just quite bothers, even much situations can't realize software debugging, and this has brought great risk for use of new procedures.
The embodiment of the invention has disclosed a kind of program debugging method that need not emulator, and the method need not emulator, can directly debug program by the host computer scene.The method specifically comprises the steps:
A. when edit routine, place test code in the program statement of each in program in advance;
B. working procedure moves the program with test code, if a certain program statement normal operation, then to would composing a particular value in the test code of program statement;
C. test code feeds back to host computer with the feedback time of this particular value and this program statement, normally obtains this particular value and feedback time and represents that then the program statement corresponding with this test code carried out and carried out normally; Otherwise represent that this program statement do not carry out or carried out undesired, this program statement need to be made amendment.
In above-mentioned steps, writing of test code is easier to realize to those skilled in the art, and described particular value also can get final product for the character of an appointment, and these technical characterictics all are ABC for these those skilled in the art of programming, and therefore not to repeat here.
Above-described embodiment only is wherein specific implementation of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these apparent replacement forms all belong to protection scope of the present invention.
Claims (1)
1. a program debugging method that need not emulator is characterized in that the method comprises the steps:
A. when edit routine, place test code in the program statement of each in program in advance;
B. working procedure moves the program with test code, if a certain program statement normal operation, then to would composing a particular value in the test code of program statement;
C. test code feeds back to host computer with the feedback time of this particular value and this program statement, normally obtains this particular value and feedback time and represents that then the program statement corresponding with this test code carried out and carried out normally; Otherwise represent that this program statement do not carry out or carried out undesired, this program statement need to be made amendment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105511254A CN103049378A (en) | 2012-12-18 | 2012-12-18 | Program debugging method without emulator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105511254A CN103049378A (en) | 2012-12-18 | 2012-12-18 | Program debugging method without emulator |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103049378A true CN103049378A (en) | 2013-04-17 |
Family
ID=48062025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105511254A Pending CN103049378A (en) | 2012-12-18 | 2012-12-18 | Program debugging method without emulator |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103049378A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279418A (en) * | 2013-06-05 | 2013-09-04 | 浙江中控技术股份有限公司 | Test method and device for configuration control information |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1632747A (en) * | 2003-12-22 | 2005-06-29 | 联想(北京)有限公司 | Software interface testing method |
CN1641601A (en) * | 2004-01-04 | 2005-07-20 | 华为技术有限公司 | Software unit measuring method |
CN1710547A (en) * | 2004-06-16 | 2005-12-21 | 华为技术有限公司 | Software detection method and system |
CN1983209A (en) * | 2005-12-14 | 2007-06-20 | 中兴通讯股份有限公司 | System and method for automatically testing software unit |
CN101480805A (en) * | 2008-01-08 | 2009-07-15 | 株式会社牧田 | Cutting devices |
CN101488085A (en) * | 2008-01-17 | 2009-07-22 | 中兴通讯股份有限公司 | Software interface test method and apparatus |
CN100589420C (en) * | 2007-05-23 | 2010-02-10 | 中兴通讯股份有限公司 | Function operation packaging based automatization test script implementing method and apparatus |
CN102346710A (en) * | 2011-10-13 | 2012-02-08 | 北京航空航天大学 | Dynamic stubbing technology based time-delay analysis method for data packet processing |
-
2012
- 2012-12-18 CN CN2012105511254A patent/CN103049378A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1632747A (en) * | 2003-12-22 | 2005-06-29 | 联想(北京)有限公司 | Software interface testing method |
CN1641601A (en) * | 2004-01-04 | 2005-07-20 | 华为技术有限公司 | Software unit measuring method |
CN1710547A (en) * | 2004-06-16 | 2005-12-21 | 华为技术有限公司 | Software detection method and system |
CN1983209A (en) * | 2005-12-14 | 2007-06-20 | 中兴通讯股份有限公司 | System and method for automatically testing software unit |
CN100589420C (en) * | 2007-05-23 | 2010-02-10 | 中兴通讯股份有限公司 | Function operation packaging based automatization test script implementing method and apparatus |
CN101480805A (en) * | 2008-01-08 | 2009-07-15 | 株式会社牧田 | Cutting devices |
CN101488085A (en) * | 2008-01-17 | 2009-07-22 | 中兴通讯股份有限公司 | Software interface test method and apparatus |
CN102346710A (en) * | 2011-10-13 | 2012-02-08 | 北京航空航天大学 | Dynamic stubbing technology based time-delay analysis method for data packet processing |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279418A (en) * | 2013-06-05 | 2013-09-04 | 浙江中控技术股份有限公司 | Test method and device for configuration control information |
CN103279418B (en) * | 2013-06-05 | 2016-01-13 | 浙江中控技术股份有限公司 | A kind of method of testing of configuration control information and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102236621B (en) | Computer interface information configuration system and method | |
CN103838584B (en) | The development approach and device of a kind of mobile terminal application | |
MX2017013621A (en) | Method and execution environment for the secure execution of program instructions. | |
NO20091281L (en) | Virtualization for diversifying intervention resistance | |
CN102522128A (en) | Method and system for testing configuration logic design of DCS (Distributed Control System) of nuclear power station | |
CN105373407A (en) | DSP and FPGA online upgrading method for embedded system | |
EP1832976A4 (en) | Software update program, software update device, and software update method | |
WO2005109188A8 (en) | Method and apparatus for automatically selecting a software application | |
TW200731133A (en) | Firmware filters and patches | |
CN106448779A (en) | Method and device for gang controlling screen of master control room of nuclear electrical power plant | |
WO2018209106A3 (en) | System and method for the capture of mobile behavior, usage, or content exposure | |
MX2016007018A (en) | Unlocking method and device. | |
CN104090752A (en) | Method for promoting customization of shortcut icon on desktop of android system | |
CN102681861B (en) | Method and device for installing software | |
CN103049378A (en) | Program debugging method without emulator | |
CN103838459A (en) | Editing method supporting independent revocation and independent reworking on each design | |
CN102819445B (en) | Quick transplanting method of comprehensive software of transformer substation on embedded system hardware platform | |
CN105159696A (en) | Method and apparatus for realizing hardware drive independent of Linux kernel | |
CN106610898B (en) | A kind of generation method of the Java code SSA single path based on JPF | |
CN108563560A (en) | Calabash-based client application program demand drive test method | |
CN104461905A (en) | Method and system for debugging intelligent card virtual machine, API bank and upper layer application at same time | |
JP2017084361A (en) | Method of debugging plc by using general-purpose microprocessor | |
JP5277126B2 (en) | Program creation support apparatus and method | |
US11287789B2 (en) | Program development support device, program development support system, program development support method, and non-transitory computer-readable recording medium | |
CN106445605A (en) | Method for silent installation of ICC compiling environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130417 |