Introduction to Debugging Techniques in Visual C 6'0 - PowerPoint PPT Presentation

About This Presentation
Title:

Introduction to Debugging Techniques in Visual C 6'0

Description:

... simply revise the given miles-to-kilometers conversion program. ... You can create additional functionalities (e.g., from degrees Celsius to degrees Fahrenheit) ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 6
Provided by: chi115
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Debugging Techniques in Visual C 6'0


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
Write a Comment
User Comments (0)
About PowerShow.com