PHP Error Tracking
DebugMate’s PHP tracking ensures core PHP errors are detected across versions, assisting in identifying and resolving fundamental issues.
Tracked Errors
Supported by PHP +8.1
Class Not Found: Missing or undefined classes.
Division by Zero: Arithmetic operations that divide by zero.
File Not Found: Missing files in PHP operations.
Method Not Found: Undefined method calls.
Query Error: Issues within SQL queries.
Simple Exception: Generic PHP exceptions.
Syntax Error: Code syntax issues.
Type Error: Type mismatch issues.
Undefined Variable: Undefined variables.
Installation Process
Step 1: Install the DebugMate package using Composer:
bash
composer require debugmate/php
Step 2: Set your environment variables, you can find your key in the DebugMate dashboard.
Step 3: Report unhandled exceptions by adding the following code to your file:
php
\Debugmate\Exceptions\Handler::register()
Step 4: Send user data to DebugMate:
php
\Debugmate\Debugmate::setUser(function() {
return ['name'=>'name', 'email'=>'[email protected]'...];
});
Step 5: Run the following command to test DebugMate integration:
bash
./vendor/bin/debugmate test