I`m debugging my cli scripts with php-storm, but I have problem a when it comes to STDIN.
My scripts have some questions/answers at runtime, which the script reads from the STDIN and branches the execution.
public static function readLine()
$text = "";
$char = fread(STDIN, 1);
$text .= $char;
} while($char != "\n");
Is it possible to write to the STDIN with phpstorm, or is it somehow possible to debug cli scripts on an external console?