How can one enable error reporting to troubleshoot include function issues in PHP?

To troubleshoot include function issues in PHP, one can enable error reporting to get more detailed information about any errors that may be occurring. This can help identify the specific issue causing the problem with the include function.

// Enable error reporting for troubleshooting include function issues
error_reporting(E_ALL);
ini_set('display_errors', 1);

// Your PHP code using the include function goes here
include 'file.php';