Process forking does not work with XDebug
tgr opened this issue · 2 comments
tgr commented
PsySH just hangs forever at the stream_select
call in ProcessForker
.
Psy Shell v0.11.8 (PHP 7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b+wmf1 — cli) by Justin Hileman
with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans
I think this used to work in the past and I'm not sure what on my system changed, so it might be specific to the PHP, XDebug or PsySH version.
bobthecow commented
can you share the output of psy\info()
?
tgr commented
=> [
"PsySH version" => "v0.11.8",
"PHP version" => "7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b+wmf1",
"OS" => "Linux",
"default includes" => [],
"require semicolons" => false,
"error logging level" => 32767,
"config file" => [
"default config file" => "~/.config/psysh/config.php",
"local config file" => null,
"PSYSH_CONFIG env" => false,
],
"loop listeners" => [
"Psy\ExecutionLoop\ProcessForker",
],
"commands" => [
"help" => "Psy\Command\HelpCommand",
"?" => "Psy\Command\HelpCommand",
"ls" => "Psy\Command\ListCommand",
"dir" => "Psy\Command\ListCommand",
"dump" => "Psy\Command\DumpCommand",
"doc" => "Psy\Command\DocCommand",
"rtfm" => "Psy\Command\DocCommand",
"man" => "Psy\Command\DocCommand",
"show" => "Psy\Command\ShowCommand",
"wtf" => "Psy\Command\WtfCommand",
"last-exception" => "Psy\Command\WtfCommand",
"wtf?" => "Psy\Command\WtfCommand",
"whereami" => "Psy\Command\WhereamiCommand",
"throw-up" => "Psy\Command\ThrowUpCommand",
"timeit" => "Psy\Command\TimeitCommand",
"trace" => "Psy\Command\TraceCommand",
"buffer" => "Psy\Command\BufferCommand",
"buf" => "Psy\Command\BufferCommand",
"clear" => "Psy\Command\ClearCommand",
"edit" => "Psy\Command\EditCommand",
"sudo" => "Psy\Command\SudoCommand",
"history" => "Psy\Command\HistoryCommand",
"hist" => "Psy\Command\HistoryCommand",
"exit" => "Psy\Command\ExitCommand",
"quit" => "Psy\Command\ExitCommand",
"q" => "Psy\Command\ExitCommand",
],
"updates" => [
"update available" => false,
"latest release version" => "v0.11.8",
"update check interval" => "never",
"update cache file" => "~/.config/psysh/update_check.json",
],
"pcntl" => [
"pcntl available" => true,
"posix available" => true,
"use pcntl" => true,
],
"input" => [
"interactive mode" => "auto",
"input interactive" => true,
"yolo" => false,
],
"readline" => [
"readline available" => true,
"readline enabled" => true,
"readline service" => "Psy\Readline\Libedit",
"readline library" => "EditLine wrapper",
"readline name" => "psysh",
],
"output" => [
"color mode" => "auto",
"output decorated" => null,
"output verbosity" => "normal",
"output pager" => "/usr/bin/less -R -F -X",
],
"history" => [
"history file" => "~/.config/psysh/psysh_history",
"history size" => null,
"erase duplicates" => null,
],
"docs" => [
"manual db file" => "/usr/local/share/psysh/php_manual.sqlite",
"sqlite available" => true,
"db lang" => "en",
"db version" => "1.3.29",
"db svn rev" => "352311",
"db built at" => "Mon, 18 Jan 2021 15:05:08 +0000",
"db hash" => "1cd305a82157a60712fa40124652715a",
],
"autocomplete" => [
"tab completion enabled" => true,
"bracketed paste" => false,
"custom matchers" => [],
],
]