Return to site

C++ Debugging Tool For Mac Sierra Terminal

broken image


OS X's Disk Utility has a hidden Debug menu that, when enabled, can give you access to a few more Disk Utility features than you normally see. While Disk Utility has had a Debug menu for quite a while, it became even more useful with the advent of OS X Lion.

With OS X Lion, Apple added a Recovery HD partition on the startup drive that you can use to boot from and run utilities such as Disk Utility, reinstall OS X, and even access the internet to find solutions to problems you may be having. The Recovery HD partition is hidden, however, and isn't visible from within Disk Utility.

This article is intended primarily for students leaning C++ for the first time on a Mac. It's not a step-by-step tutorial on how to write and compile code in the applications described. I have been trying to enable debugging on NetBeans 8.2 C++ (OS X - Sierra - 10.12.5) without success. I have tried the following: Using Mac Ports version of gdb with code-signing: result: gdb gi. How to install Apple Xcode Command Line Tools for macOS Sierra. Complete guide to installation. To install the newest Xcode Command Line Tools, you'll need the latest version of macOS. If you've owned your Mac for several years and haven't updated macOS, be prepared to spend several hours.

This can lead to a number of issues, including the possibility, over time, of having multiple Recovery HD partitions on various drives as you duplicate drives, replace drives, or re-install OS X. It can also prevent you from moving the Recovery HD partition to a new drive, should you ever need to replace a drive or just want to move things around on your drives.

Debug Menu Items

Disk Utilities Debug menu has quite a selection of capabilities, though most are designed for developers to use in testing apps that may work with the Mac's storage system. Most items are benign, such as List All Disks, or List All Disks with Properties. There is also control of how a progress bar is displayed, whether to turn on a Thousand Minute Countdown. The countdown just changes the Console logs for Disk Utility to show 60,000 seconds or one thousand minutes. The purpose is just to have a finer grain display of when log events occur. Once again this is really just for those developing storage products for the Mac.

More interesting for the average Mac user are two commands in the Debug menu:

  • Force update of disk list — As the name implies, this will cause Disk Utility to update the disks listed in the sidebar. This can be useful when you have attached or removed a disk while Disk Utility is open.
  • Show every partition — Aas its name implies, will display all partitions on a Mac's drive even if they are meant to be hidden.

It's understandable why Apple wants to hide some of the Recovery HD partitions. For instance, when you format a drive, the process creates a small 200 MB partition that the EFI bios needs for booting. These small EFI partitions don't contain any data that end users need, and there's no reason for them to be visible. But if you would like to be able to access the OS X Lion and later's Recovery HD partition to create clones or backups, enabling the Debug menu in Disk Utility is the easiest way to see and work with these invisible partitions.

Debug for OS X Yosemite and Earlier

With the release of OS X El Capitan, Apple finally decided to remove support for Disk Utilities hidden debug menu. This means the Terminal commands outlined below will only work for versions of OS X Yosemite and earlier.

Enable the Debug Menu in Disk Utility

  1. Quit Disk Utility if it is open.

  2. Launch Terminal, located at /Applications/Utilities.

  3. Enter the following command at the Terminal prompt:

The next time you launch Disk Utility, the Debug menu will be available.

If you wish to turn the Debug menu off again, perform the following steps.

Disable the Debug Menu in Disk Utility

  1. Quit Disk Utility if it is open.

  2. Launch Terminal, located at /Applications/Utilities.

  3. Enter the following command at the Terminal prompt:

Don't forget that disabling Disk Utilities Debug menu does not reset the commands within the menu to their default state. If you have changed any of the settings, you may want to set them back to their original condition before disabling the Debug menu.

Use Terminal for OS X El Capitan and Later

Viewing hidden disk partitions can still be performed in OS X El Capitan or later, you just need to use the Terminal app instead of the Disk Utility app. To view a complete list of drive partitions do the following:

Debugging Tools For Windows Download

  1. Launch Terminal, located at /Applications/Utilities.

  2. In the Terminal window, enter the following at the command prompt:

  3. Terminal will display all of the partitions currently connected to your Mac.

That's all there is to enabling or disabling the Disk Utility Debug menu. Go ahead and see what features are available under the Debug Menu, you will probably find the Show every partition item and the Force update of disk list item the most useful.

C++ Debugging Tool For Mac Sierra Terminal

Debugging Tool For Visual Studio

Using Debugging and Performance Analysis Tools

Xcode provides the tools you need to make sure that your code is correct, performs well, and uses resources appropriately. Learn how to efficiently discover and resolve issues with your app.

Finding and Using Crash Reports

Debugging Tools For Windows 8.1

Get the basics on how to use crash reports to identify bugs.

Managing Performance and Memory

Optimizing the performance and memory management of your app ensures a quality experience for users and satisfies App Review Guideline requirements for the App Store and Mac App Store. Get tips on how to tune your app, find memory leaks, and eliminate performance issues.

Debugging Apps That Have Been Submitted or Deployed

To reproduce bugs that appear in the submitted build of your app, use the Archive feature in Xcode to test the exact build of your app that was submitted to the App Store or Mac App Store. Find out more about this and other processes to resolve issues reported by users or App Review.

More Tips and Techniques

Learn about additional tools and advanced debugging techniques.





broken image