PHPstorm console login not working during debugging sessions

I am using a PHP script that excludes user input from a command, for example using fgets(STDIN) . The problem is that it no longer works in the latest version of PHPStorm (10).

The same thing works when I run it directly (without the debugger turned on), and everything that I enter the console is sent to the script (with direct start).

But during the debugging session, when I try to enter text at the script prompt, it does not go into the script. My best guess is that the new REPL function overrides user input in the console during debugging. I say this because pressing the UP / DOWN arrows opens a popup window with all the PHP function names.

It worked correctly with the latest version.

How can I send user input to my PHP script with this new version? Did I miss something?

Thanks San

+5
source share
1 answer

I'm not sure if this is the same, but I ran into this problem and managed to get it working by unchecking the "Use console input" checkbox in the PHPStorm console.

+8
source

Source: https://habr.com/ru/post/1239068/


All Articles