You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@marcoas You have to add your function to Kint::$aliases for kint to be able to detect the input variables. That said, if you just do that kint may still fail to detect the variable name if you use your extra parameters:
Kint::$aliases[] = 'debug';
debug($var, true);
For example if kint sees debug($var, true) but only receives 1 value it will assume that it has found the wrong call. You'll also lose the modifier in your first if since it's looking at the parent stack now, so you'd need to set and unset Kint::$return instead.
You'd need to set your base context manually if you want this to be robust.
I made my own function, for the use of KINT
The problem is that now, I always see "$variable" in the output of KINT, losing the original name of the variable.
Can this be fixed with some configuration?
The text was updated successfully, but these errors were encountered: