To use the debugger built into Xcode, you must have at least one project in Xcode. If already have a project in Xcode, skip to step 5, otherwise start from step 1.

  1. Upon opening Xcode, select Create A New Xcode Project.
  2. Select Cross-platform and choose External Build System
  3. Give your project a name, etc. and select Next
  4. Choose your project source directory and select Create. This directory can be completely empty if you wish not to import an existing project.
  5. From the menu bar, choose Product and select New Scheme and provide a name for the scheme
  6. From the menu bar, choose Product and select Edit Scheme
  7. Select the Info tab, and on the executable drop-down menu select Other and choose your executable.
  8. If the executable requires arguments, select the Arguments  tab an add the necessary arguments.
  9. From the menu bar, choose Product, select Perform Action and Run without BuildingUpon completing step 9, the executable should run and you should be able to navigate the stack trace
Categories: tipsxcode


Leave a Reply

Avatar placeholder