Debug Araçları

Debugbar & Telescope

Sistem Açma / Kapama Kılavuzu

26 Aralık 2025

Basit Anlatım (Herkes İçin)

Debugbar: Sayfanın altında çıkan, sorguları, süreleri gösteren araç çubuğu.

Telescope: Tüm istekleri, hataları, sorguları kaydeden detaylı izleme paneli.

Bu araçlar performansı düşürür, sadece geliştirme/debug için açın!

Claude'a Verilecek Prompt'lar

Aşağıdaki prompt'ları kopyalayıp Claude'a yapıştırın:

Debug Araçlarını Aç

debugbar ve telescope'u aktifleştir

Debug Araçlarını Kapat

debugbar ve telescope'u kapat, production moduna dön

Telescope Tenant Filtresi Ayarla

telescope'u sadece muzibu (1001) için aktif et

veya

telescope'u tüm tenant'lar için aktif et

veya

telescope tenant filtresini 1001,2 olarak ayarla

Telescope Verilerini Temizle

telescope verilerini temizle

Mevcut Durumu Kontrol Et

debug araçlarının mevcut durumunu kontrol et

Mevcut Durum

Şu An Açık

  • APP_DEBUG = true
  • APP_DEBUG_TOOLS = true
  • Debugbar aktif
  • Telescope aktif (sadece 1001)

Telescope Tenant Filtre

  • TELESCOPE_TENANT_IDS = 1001
  • Sadece Muzibu kaydediliyor
  • Diğer tenant'lar kaydedilmiyor

KAPATMA (Production'a Dönüş)

1 .env Düzenle

# Dosya: /var/www/vhosts/tuufi.com/httpdocs/.env

# Şu satırları bul ve değiştir:

APP_DEBUG_TOOLS=true APP_DEBUG_TOOLS=false

# Opsiyonel: Telescope tenant filtresini de kaldır

TELESCOPE_TENANT_IDS=1001 TELESCOPE_TENANT_IDS=

2 Cache Temizle

php artisan config:clear

php artisan cache:clear

curl -s -k https://ixtif.com/opcache-reset.php

Tek Komutla Kapat (Kopyala-Yapıştır)

sed -i 's/^APP_DEBUG_TOOLS=true/APP_DEBUG_TOOLS=false/' /var/www/vhosts/tuufi.com/httpdocs/.env && php artisan config:clear && php artisan cache:clear && curl -s -k https://ixtif.com/opcache-reset.php > /dev/null && echo "✅ Debug araçları kapatıldı"

AÇMA (Debug Modu)

1 .env Düzenle

# Dosya: /var/www/vhosts/tuufi.com/httpdocs/.env

APP_DEBUG_TOOLS=false APP_DEBUG_TOOLS=true

# Telescope için tenant filtresi (opsiyonel):

TELESCOPE_TENANT_IDS=1001 # Sadece Muzibu

TELESCOPE_TENANT_IDS=1001,2 # Muzibu + İxtif

TELESCOPE_TENANT_IDS= # Tüm tenant'lar (boş)

2 Cache Temizle

php artisan config:clear

php artisan cache:clear

curl -s -k https://ixtif.com/opcache-reset.php

Tek Komutla Aç (Kopyala-Yapıştır)

sed -i 's/^APP_DEBUG_TOOLS=false/APP_DEBUG_TOOLS=true/' /var/www/vhosts/tuufi.com/httpdocs/.env && php artisan config:clear && php artisan cache:clear && curl -s -k https://ixtif.com/opcache-reset.php > /dev/null && echo "✅ Debug araçları açıldı"

Telescope Tenant Filtresi

Ayar: TELESCOPE_TENANT_IDS

Değer Sonuç
1001 Sadece Muzibu kaydedilir
1001,2 Muzibu + İxtif kaydedilir
2 Sadece İxtif kaydedilir
(boş) Tüm tenant'lar kaydedilir

Telescope Verileri Temizleme

php artisan telescope:clear

Erişim Linkleri

Telescope Panel

https://ixtif.com/telescope

Debugbar

Sayfa altında otomatik görünür

Response Cache (Tenant-Aware)

Response cache tenant bazlı çalışıyor ve .env'den bağımsız:

  • Muzibu (1001): Cache KAPALI (tenant setting = 0)
  • İxtif (2): Cache AÇIK (tenant setting = true)

Ayar: Admin Panel → Settings → response_cache_enabled

Teknik Detaylar

Dosyalar:

  • .env (APP_DEBUG_TOOLS, TELESCOPE_TENANT_IDS)
  • config/debugbar.php (Debugbar ayarları)
  • config/telescope.php (Telescope ayarları)
  • app/Providers/TelescopeServiceProvider.php (Tenant filter)
  • app/Services/TenantCacheProfile.php (Response cache)