Debugging is an inevitable part of programming in any language. Debugging programs written in C is very different from debugging programs written in other languages, especially scripting languages. This chapter covers debug information, how optimization affects debugging, core dumps, and common bugs, recommends enabling warnings that can catch bugs early, and presents a case study of a truly bizarre bug.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Debugging

  • Paul J. Lucas

摘要

Debugging is an inevitable part of programming in any language. Debugging programs written in C is very different from debugging programs written in other languages, especially scripting languages. This chapter covers debug information, how optimization affects debugging, core dumps, and common bugs, recommends enabling warnings that can catch bugs early, and presents a case study of a truly bizarre bug.