2 comments
Comment actions Permalink

Hi there,

As I understand the "Smart Step Into" works with function names.

The problem with your code example is that both function calls are calling the same function isOK().

If you make it two separate functions, then it works OK (as far as I can tell).

$good = false;

for ($i = 1; $i < 5; ++$i) {
   if (isOk($i) || isOk2($i + 1)) { // breakpoint in this line
      $good
= true;
      break;
   }
}

var_dump($good);

function isOk($var)
{
   echo "{$var}\n";

   if ($var > 3) { // breakpoint in this line
      return true
;
   }
   return false;
}
function isOk2($var)
{
   echo "{$var}\n";

   if ($var > 3) { // breakpoint in this line
      return true
;
   }
   return false;
}


Unfortunately I cannot tell for sure if it's a bug or not. But so far (based on the way how step-into skipping works) I think that it works correctly (based on function names).

0
Comment actions Permalink

I cannot check it now quickly but in this video tutorial (almost 1 hour long) I'm almost sure it's used this way (both functions are the same) and it works

0

Please sign in to leave a comment.