Recommended Diagnosis Flow
- Capture the issue exactly (what, where, when)
- Check first critical console/server error line
- Validate dependencies and start order
- Verify database access and table integrity
- Restart the script in isolation and compare behavior
- Reproduce with debug mode only if needed