PHPstorm console input not working during debug sessions

前端 未结 2 1647
清歌不尽
清歌不尽 2021-01-05 08:54

I\'m using a PHP script which expects user input from a command like fgets(STDIN). The problem is it no longer works in the newest version of PHPStorm (10).

相关标签:
2条回答
  • 2021-01-05 09:44

    I'm not sure if this is the same thing, but I was running into this same problem, and I was able to get it working by deselecting the "Use Console Input" checkbox in the PHPStorm Console.

    0 讨论(0)
  • 2021-01-05 09:49

    John's answer is perfect. I want to mention that the Use Console Input is a tiny icon in sidebar of the debug console. I provide you by this image

    0 讨论(0)
提交回复
热议问题