Smart Step Into doesn't work

Hello

I have a problem. Smart Step Into doesn't seem to work. I described the whole thing here: http://stackoverflow.com/q/24509022/3593996

Is it a bug or am I doing something wrong?

Best regards

0
2 comments

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
Avatar
Permanently deleted user

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.