title: Xcode 6: How to Disable Optimisation (Swift)
body: <p>Breakpoints are not being triggered during debugging. I discovered it's because of optimised code.   </p>
  
  <p>How can you disable optimisation?<br>
  I've walked through every toolbar and the closest option that I could find is <code>Product =&gt; Perform Action =&gt; Generate Optimisation Profile</code>.<br>
  This does not work as I am debugging in the simulator, says Xcode.</p>
  
  <p>Is it possible to disable code optimisation in Xcode 6.1 using the simulator and writing in Swift, and if so, how would I go about that?</p>
  
  <p><strong>SOLUTION:</strong> </p>
  
  <ol>
  <li>Click your project name in the project navigator in the left pane under the folder icon.  </li>
  <li>Click 'Build Settings' on the top menu.  </li>
  <li>Scroll down to 'Apple LLVM 6.0 - Code Generation'  </li>
  <li>Under 'Optimization Level' Select 'None [-O0]'  </li>
  </ol>
  
  <p>My problem was finding the build settings menu in the first place.</p>