1 / 5

Introduction to Debugging Techniques in Visual C++ 6.0

Introduction to Debugging Techniques in Visual C++ 6.0. Speaker: Yao-Ting Huang Advisor: Kun-Mao Chao. National Taiwan University Department of Computer Science & Information Engineering Algorithms and Computational Biology Lab. How to Reduce Bugs in Your Program.

jules
Download Presentation

Introduction to Debugging Techniques in Visual C++ 6.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Debugging Techniques in Visual C++ 6.0 Speaker: Yao-Ting Huang Advisor: Kun-Mao Chao National Taiwan University Department of Computer Science & Information Engineering Algorithms and Computational Biology Lab.

  2. How to Reduce Bugs in Your Program • Never write a program at midnight • Thinking more before writing your program • Design your algorithm to solve the problem • Think of the programming flow • Your program is better to be modular and well-organized. • Choosing a suitable IDE for you to write a program • Tracing programs written by experienced programmers

  3. What If You Encounter a Bug • The time of debugging depends on • the structure of your program, • the IDE you choose, • and the programming experience. • Step-by-step tracing the execution of the program. • Only suitable for small-scaled programs. • Toggling breaking points in possible erroneous lines of code • Most commonly used approach to debug all kinds of programs. • Reducing the code size by marking part of the code as comments.

  4. About Homework #1 • The grading depends on how many efforts you spend on it • You can simply revise the given miles-to-kilometers conversion program. • You can use the UI components in VC6.0 to build a typical Win32 application (e.g., drawing a thermometer). • You can create additional functionalities (e.g., from degrees Celsius to degrees Fahrenheit). • The demo of your Homework #1 is at next Thursday here. • Please bring your source code and execution file.

  5. Outlines of the Lecture Today • Create, compile, and execute a program in Visual C++ 6.0 • Debugging a program in Visual C++ 6.0

More Related