Skip to Content
Advanced C++
book

Advanced C++

by Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price
October 2019
Intermediate to advanced
762 pages
14h 7m
English
Packt Publishing
Content preview from Advanced C++

7. Everybody Falls, It's How You Get Back Up – Testing and Debugging

Learning Objectives

By the end of this chapter, you will be able to:

  • Describe different types of assertions
  • Implement compile-time and runtime assertions
  • Implement exception handling
  • Describe and implement unit testing and mock testing
  • Debug C++ code using breakpoints and watchpoints
  • Inspect data variables and C++ objects in the debugger

In this chapter, you'll learn how to add assertions appropriately, add unit test cases so that code behaves as per the requirements, and learn about debugging techniques so that you can find bugs in the code and trace the root cause of them.

Introduction

During the Software Development Life Cycle (SDLC), once the requirement gathering ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced C and C++ Compiling

Advanced C and C++ Compiling

Milan Stevanovic
Mastering C++ Programming

Mastering C++ Programming

Jeganathan Swaminathan
Expert C++

Expert C++

Vardan Grigoryan, Shunguang Wu
C++ High Performance

C++ High Performance

Viktor Sehr, Björn Andrist

Publisher Resources

ISBN: 9781838821135Supplemental Content