Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Debugging Techniques in Visual C++ 6.0

Similar presentations


Presentation on theme: "Introduction to Debugging Techniques in Visual C++ 6.0"— 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. 2019/2/22

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


Download ppt "Introduction to Debugging Techniques in Visual C++ 6.0"

Similar presentations


Ads by Google