I'm wanting to have a quick way to logDebugHide all the parameters passed in to a function. Currently I'm using a macro that goes up two lines, copies that line, does a preg_match to find all the parameters, and logdebugs all the parameters using a loop.
For example, if I had the following code:
If I put my cursor right after the 3rd line (the line after the bracket), it would print out the following:
foreach($matches as $match)
$var_name = str_replace('$','',$match);
It's an imperfect solution because:
1. It messes up if a parameter has a default value. (i.e. myfunc($param1 = "hi")
It takes a couple seconds for all these lines to print out and I'd rather it just be automatic.
Is there a way to do this in Live Templates?
PhpStorm Version: 3.0.2
(I'm on a Mac)