Problem

I am working with Magento 2.3. Recently I've configured the xdebug in my local to identify some process flow. But it does not help me to check the flow.

Then I hit the website in local, I am facing the Uncaught Error: Call to undefined function xdebug_disable() in vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_bootstrap.php on line 73

 

Solution

Open the file  

vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_bootstrap.php

From :-

if (!(bool)$debugMode && extension_loaded('xdebug')) { 
  xdebug_disable(); 
}

To:-

if (!(bool)$debugMode && extension_loaded('xdebug')) {
 if (function_exists('xdebug_disable')) {
 xdebug_disable();
 }
}