phacility/phabricator · error · PhutilArgumentUsageException
You must specify which daemon to debug.
Error message
You must specify which daemon to debug.
What it means
Usage guard in the daemon debug CLI workflow: fires when the 'argv' argument list is empty, so no daemon class name was given to debug. The check runs before any daemon launch or user-switching logic executes.
Solutions
- Append a daemon class or shorthand, e.g. phd debug taskmaster
- Run phd list to see available daemons
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/daemon/management/PhabricatorDaemonManagementDebugWorkflow.php:45 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/93042895d60d963a.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/daemon/management/PhabricatorDaemonManagementDebugWorkflow.php:45
'help' => pht('Maximum pool size.'),
'default' => 1,
),
array(
'name' => 'as-current-user',
'help' => pht(
'Run the daemon as the current user '.
'instead of the configured %s',
'phd.user'),
),
));
}
public function execute(PhutilArgumentParser $args) {
$argv = $args->getArg('argv');
$run_as_current_user = $args->getArg('as-current-user');
if (!$argv) {
throw new PhutilArgumentUsageException(
pht('You must specify which daemon to debug.'));
}
$config = array(
'class' => array_shift($argv),
'label' => 'debug',
'pool' => (int)$args->getArg('pool'),
'argv' => $argv,
);
return $this->launchDaemons(
array(
$config,
),
$is_debug = true,
$run_as_current_user);
}
View on GitHub (pinned to 5720a38cfe)