diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 50e4c77..8325400 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -1,8 +1,15 @@ # Troubleshooting +### Turn on error reporting + +```php +error_reporting(E_ALL); +``` + ### Turn on verbose mode ```php +error_reporting(E_ALL); $curl = new Curl(); $curl->verbose(); $curl->get('https://www.example.com/'); @@ -12,12 +19,14 @@ var_dump($curl); ### Compare request with and without the library ```php +error_reporting(E_ALL); $curl = new Curl(); $curl->get('https://www.example.com/'); var_dump($curl); ``` ```php +error_reporting(E_ALL); $ch = curl_init(); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_HEADER, false);