title: Conditional breakpoints for Xdebug in PhpStorm
body: <p>Let us suppose we have these 2 methods:</p>
  
  <pre><code>function superFunction($superhero,array $clothes){
      if($superhero===CHUCK_NORRIS){
        wear($clothes);
      } else if($superhero===SUPERMAN) {
        wear($clothes[1]);
      }
  }
  
  function wear(array $clothes)
  {
     for($piece in $clothes){
         echo "Wearing piece";
     }
  }
  </code></pre>
  
  <p>So what I want to achieve is to put a breakpoint in PhpStorm into function <code>wear</code> but I want to get fired only when <code>$superhero</code> variable has the value <code>CHUCK_NORRIS</code> how I can do that. Imagine that the function <code>superFunction</code> is getting called over a zillion times and pressing <kbd>F9</kbd> all over the time is kind of counter productive.</p>