Board logo

标题: 软件调试的十大重要基本准则[ZT] [打印本页]

作者: 网普科技     时间: 2006-12-2 07:34 PM    标题: 软件调试的十大重要基本准则[ZT]

1、debug数据(Debug the data)——检查数据是否是你所期望的
2、了解系统(Understand the system)
3、制造失败(Make it fail)——重复制造问题
4、不要想、而要看(Quit thinking and look)——不要急匆匆地下结论
5、分而治之(Divide and conquer)——缩小除虫范围。
6、一次只改一个地方(Change just one thing at a time)
7、坚持做复查(Keep an audit)
8、先找明显的bug(Check the obvious first)
9、询问其他人(Ask someone else)——询问朋友或同事,因为阐明一个问题有助于你理清头绪,并集中精力找到问题所在。
10、  如果你不解决问题,问题将依然存在(If you didn't fix it then it's not fixed)——Bug不会自己消失,需要你来解决。




欢迎光临 网普技术论坛 (http://bbs.netpu.net/) Powered by Discuz! 2.5