针对嵌入式软件的特点及其对调试技术的要求,在比较常用的一些动态调试方法基础上,提出了一种在线调试技术。在不影响系统运行环境和实时性要求的前提下,通过将数据临时保存在数组中,自动生成文件或在外部触发事件下生成文件的方式,实现对变量变化过程的动态跟踪,并给出了具体设计流程图。最后结合工程应用,通过对一类嵌套式数据丢包现象的排查过程,验证了本方法的有效性和实际应用价值。%In accordance with the characteristics of the embedded software and its requirements for debugging,an online debugging technique after comparing some common methods of dynamic debugging is proposed.By storing data in temporary array,and then generate a file through an exteral trigger event or automatical event,the dynamic process of variables in software without altering run-time environment and real-time performance can be watched.The detail design of this method was given subsequently.Finally,combined to the application in project,the effectiveness of this method and its practical value was verified by solving the problem of nested data packet loss.
展开▼