Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Runtime.php

function Runtime::hasXdebug

Returns true when the runtime used is PHP and Xdebug is loaded.

2 calls to Runtime::hasXdebug()
Runtime::canCollectCodeCoverage in vendor/sebastian/environment/src/Runtime.php
Returns true when Xdebug or PCOV is available or the runtime used is PHPDBG.
Runtime::getNameWithVersionAndCodeCoverageDriver in vendor/sebastian/environment/src/Runtime.php

File

vendor/sebastian/environment/src/Runtime.php, line 190

Class

Runtime

Namespace

SebastianBergmann\Environment

Code

public function hasXdebug() : bool {
    return $this->isPHP() && extension_loaded('xdebug');
}
RSS feed
Powered by Drupal