求助!关于调试!
做了一段时间的VC程序,可是对调试方面的能力实在……都知道程序是调出来的,所以请教高手程序怎么调啊 ?有没有这方面的书籍介绍一下!急急急!
谢谢先 !
问题点数:0、回复次数:2Top
1 楼krh2001(边城浪子)回复于 2005-06-03 00:40:27 得分 0
好象几天前 laiyiling (陌生人·V2.0〓Happiness) 写过一篇有关调试的文章, 问问它Top
2 楼FengYuanMSFT((6.4 被封杀)袁峰 http://fengyuancom.spaces.live.com)回复于 2005-06-03 01:46:22 得分 0
> 都知道程序是调出来的
I do not like this statement.
Program is produced through good specification, design, and testing. Debugging is just one part of the whole procress.
程序怎么调:
1) Start with good design specification.
2) Write good quality program in the first place, try to prove your code in your mind is right when you write code.
3) Add lots of asserts.
4) Add debug-build only code to send important information to console for tracing. So you know what important things are happening with the program.
5) Write test cases, run them before every code check-in.
6) Step through every line of new code.
7) Learn about compiler code generation, assembly code, how to use debugger effectively.
8) Learn how to fine tuning performance.
Top




