Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Debugging C/C++ Memory Issues on macOS
Rating: 5.0 out of 5(2 ratings)
120 students

Debugging C/C++ Memory Issues on macOS

Debug, detect & isolate memory related issues on macOS through Xcode & other standard tools
Created byUmar Lone
Last updated 9/2025
English

What you'll learn

  • Understand different kinds of problems associated with memory management
  • Effectively detect & isolate memory issues
  • Gain confidence in C/C++ memory management
  • Understand and use the facilities provided by Xcode for detecting memory issues
  • Use the standard memory debugging tools provided in macOS

Course content

4 sections43 lectures2h 45m total length
  • Course Introduction1:36

    Course introduction.

  • Slide Deck0:05
  • Xcode Installation & Basic Usage7:05

    Installation process of Xcode & command line tools. Using Xcode for creating C/C++ applications.

  • Debugging in Xcode Source Code0:01
  • Debugging in Xcode7:43

    Using Xcode for debugging C/C++ applications. Usage of windows such as stack, expressions, breakpoints, etc.

  • Memory Management Issues7:49

    Discussion on memory management and issues.

Requirements

  • Fair knowledge of C & C++ is essential for this course
  • Not recommended for complete beginners to C++

Description

C++ is a large and complex language, but it gives programmers complete freedom when it comes to management of dynamic memory. This allows the programmers to allocate memory and manipulate it at runtime. That is why C++ is still a favorite language for high performance applications in various domains such as gaming, telecom, finance, aerospace, etc.

However, it requires programmers to take great care while using dynamic memory, such as releasing acquired memory, taking care not to overstep memory boundary, etc. Otherwise, it could lead to problems such as dangling pointers, memory corruption, memory leaks, etc.

This course will help you overcome all these problem by leveraging the tools provided on macOS platform. It has a rich set of functions provided by the C/C++ runtime heap library. These functions can help detect memory leaks, overflows, etc. You'll learn how to use these functions effectively and make your programs bug-free.

In this course, you'll start with the basics of heap memory management and understand C & C++ allocation functions/operators in depth. You'll also learn how to effectively use them to avoid memory problems. Afterwards, you'll learn about the Xcode Malloc Debugging library functions and understand how to use them in your code. You'll also use the guarded memory allocator to effectively detect heap corruptions. You'll also gain knowledge of Xcode instruments, leaks command & more that can help you detect leaks.

By the end of this course, you'll have a deep understanding of dynamic memory management. You'll be able to use standard tools effectively to detect & isolate memory problems.

Note: This course is ONLY for macOS platform

Who this course is for:

  • C/C++ programmers who wish to understand memory management in depth
  • C/C++ programmers who wish to understand memory management in depth
  • Programmers who use Xcode for C/C++ development