I'm going to configure PHPStorm options about debugging in PHP with xDebug, reading this page from the manual: http://www.jetbrains.com/phpstorm/webhelp/configuring-breakpoints.html
In step 2, there is: "To evaluate an expression in the context of a breakpoint and display its value in the debugging console, check the option Log evaluated expression, and enter a valid expression in the option field.".
Now, which should be a "valid expression"?
For example, my breakpoint points (Is "points" the correct technical verb/term?) to the line 341 of a Joomla! cms library file (See it: https://github.com/joomla/joomla-cms/blob/3.2.x/libraries/joomla/input/input.php#L341).
It's a method to unserialize serialized strings and it breaks my unit test. So i'd like to know which value the string has when passed to the method.
The line 341, the ones where the test breaks, use the list() PHP construct to assign to 3 different properties the unserialized values of the passed $input.
But the unserialize($input) function doesn't work and i'd like to know why, so i set the breakpoint.
/**
* Method to unserialize the input.
*
* @param string $input The serialized input.
*
* @return JInput The input object.
335 *
336 * @since 12.1
337 */
338 public function unserialize($input)
339 {
340 // Unserialize the options, data, and inputs.
() 341 list($this->options, $this->data, $this->inputs) = unserialize($input);
342
343 // Load the filter.
344 if (isset($this->options['filter']))
...
Now, as i'd like to know the value of $input, as it's the string that unserialize() cannot process, i think i have to use the option "Log evaluated expression" in PHPStorm so it will log in the console the value of $input, but, again, what should have i to write in the PHPStorm's field?