How to Debug

来源:互联网 发布:系统还原数据会消失吗 编辑:程序博客网 时间:2024/04/19 09:14

Except using the tools embed in the IDE (like break points), some other ways exist to debug. 

1) cout the variable to trace their development

2) extract the small module that need to be debuged and copy it to a new project, then test the new one

3) test different inputs, especially some specials 

4) using "diff" and "| hexdump -C " to compare with the reference.

原创粉丝点击