title: Xcode breakpoint don't work inside dispatch_async block
body: <p>Our team seriously need some help with the following problem that we are facing as it is preventing us from debugging some of the code inside dispatch_async block.</p>
  
  <p>Hope I will get some help or suggestions on what to do next.</p>
  
  <p>The problem we faced is as below:</p>
  
  <p>We recently hit a strange problem where in Xcode 6, we are not able to break within the dispatch_async block.</p>
  
  <pre><code>- (void)viewDidLoad {
  
          dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);    
  
          dispatch_async(queue, ^{
  
  
          BOOL setRtn = TRUE;  //&lt;- break point is set here but never break
  
          //call to function
          BOOL setFn = some_function();
          });
  
  } 
  
  
  
  - (BOOL) some_function()
  {
       BOOL test = YES;   &lt;- break point set here, breakpoint break!
  
  
       return test;
  }
  </code></pre>
  
  <p>What happens is that when we set a breakpoint within any line in the dispatch_async block, the code never breaks and the break point never works.</p>
  
  <p>However, if we set the breakpoint within the function that is called by the dispatch_async block, the breakpoint works!</p>
  
  <p>Is anyone else facing the same problem?</p>
  
  <p>We are using Xcode 6.1 and is working on IOS8.1 </p>
  
  <p>Please help, have been going crazy trying to solve this problem for days.</p>