TAILIEUCHUNG - Lecture Practical C++ programming - Chapter 17: Debugging and optimization

Everyone has their own way of debugging. Some people are good at sitting down and analyzing their programs while others need to use the interactive debugger. In this chapter we present the students with a variety of techniques. Let them decide which ones are useful. | Chapter - 17 Debugging and Optimization Practical C Programming Copyright 2003 O Reilly and Associates Page 1 Debugging Techniques Divide and conquer Debug only code Debug Command Line Switch Note Use I O redirection and the editor to browse large volumes of debug output. Interactive Debuggers Practical C Programming Copyright 2003 O Reilly and Associates Page 2 Gnu Debugger gdb commands run Start execution of a program. break line-number Insert a breakpoint at the given line number. break function-name Insert a breakpoint at the first line of the named function. cont Continue execution after a breakpoint. print expression Display the value of an expression. step Execute a single line in the program. next Execute a single line in the program skip over function calls. list List the source program. where Print the list of currently active functions. status Print out a list of breakpoints delete Remove a break point. Practical C Programming Copyright 2003 O Reilly and Associates Page

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.