Skip to content

Commit

Permalink
register XDEBUG to ProcessConfigureDecorator
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 28, 2023
1 parent 29ad7f9 commit 4786e34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/Parallel/Command/WorkerCommandLineFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ public function create(
$workerCommandArray[] = escapeshellarg($this->filePathHelper->relativePath($config));
}

if (! in_array('--xdebug', $workerCommandArray, true) && in_array('--xdebug', $args, true)) {
$workerCommandArray[] = '--xdebug';
}

return implode(' ', $workerCommandArray);
}

Expand Down
2 changes: 2 additions & 0 deletions src/Console/ProcessConfigureDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@ public static function decorate(Command $command): void

$command->addOption(Option::PARALLEL_PORT, null, InputOption::VALUE_REQUIRED);
$command->addOption(Option::PARALLEL_IDENTIFIER, null, InputOption::VALUE_REQUIRED);

$command->addOption(Option::XDEBUG, null, InputOption::VALUE_NONE, 'Display xdebug output.');
}
}

0 comments on commit 4786e34

Please sign in to comment.