Debug Library

Geliştiriciler için devasa bir hata çözüm bankası. Hem İngilizce hem Türkçe rehberlerle kodunu temizle.

SyntaxError (JS)
Başlangıç

Invalid syntax

The script has code that doesn't follow the language rules.

Çözüm / Solution
Eksik parantez, tırnak veya hatalı anahtar kelime kullanımını bulun.
Segmentation Fault
İleri

Memory access violation

Occurs when a program attempts to access a memory location that it's not allowed to access.

Çözüm / Solution
Dizilerde sınır dışı erişimleri ve geçersiz pointer kullanımlarını kontrol edin.
CS1503
Orta

Argument conversion error

Argument cannot convert from type A to type B.

Çözüm / Solution
Doğru veri türünü gönderdiğinizden emin olun veya açık bir döküm (cast) yapın.
CS1002
Başlangıç

; expected

A semicolon is missing at the end of the line.

Çözüm / Solution
// Satır sonuna ; ekleyin
int x = 10;
CS0246
Başlangıç

Type or namespace not found

The type or namespace name 'X' could not be found.

Çözüm / Solution
using ifadesini ekleyin veya NuGet referanslarını kontrol edin.
CS0103
Başlangıç

Name does not exist

The name 'x' does not exist in the current context.

Çözüm / Solution
Değişkeni tanımladığınızdan veya doğru kapsamda (scope) olduğunuzdan emin olun.
ArgumentNullException
Orta

Argument cannot be null

Thrown when a null reference is passed to a method that does not accept it as a valid argument.

Çözüm / Solution
Methodu çağırmadan önce parametrenin doluluğunu kontrol edin.
DivideByZeroException
Başlangıç

Divide by zero

Attempting to divide an integral or fractional value by zero.

Çözüm / Solution
if (divisor != 0) { return dividend / divisor; }
StackOverflowException
İleri

Stack overflow

The execution stack overflows, usually due to infinite recursion.

Çözüm / Solution
Recursive fonksiyonlarda çıkış şartını (base case) kontrol edin.
IndexOutOfRangeException
Başlangıç

Index out of bounds

Attempting to access an index that is outside the bounds of the array.

Çözüm / Solution
for(int i=0; i < array.Length; i++) { /* güvenli */ }
NullReferenceException
Başlangıç

Object reference not set

Occurs when you try to access a member on a type whose value is null.

Çözüm / Solution
if (myObj != null) { /* erişim yap */ }
429
Orta

Too Many Requests

The user has sent too many requests in a given amount of time.

Çözüm / Solution
İstek aralıklarını açın veya Rate Limit politikalarınızı kontrol edin.
418
Başlangıç

I'm a teapot

The HTTP 418 I'm a teapot client error response code indicates that the server refuses to brew coffee because it is, permanently, a teapot.

Çözüm / Solution
Çay içmeyi deneyin.
504
İleri

Gateway Timeout

The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server.

Çözüm / Solution
Zaman aşımı (timeout) sürelerini artırın veya arka uç servisinin yanıt süresini optimize edin.
503
Orta

Service Unavailable

The server is currently unable to handle the request due to a temporary overload or scheduled maintenance.

Çözüm / Solution
Daha sonra tekrar deneyin veya sunucu kaynaklarını (CPU/RAM) kontrol edin.
502
İleri

Bad Gateway

The server, while acting as a gateway or proxy, received an invalid response from an upstream server.

Çözüm / Solution
Network bağlantılarını ve proxy ayarlarını kontrol edin.
400
Başlangıç

Bad Request

The server cannot process the request due to something that is perceived to be a client error.

Çözüm / Solution
Gönderilen parametrelerin formatını ve API dokümantasyonunu kontrol edin.
401
Başlangıç

Unauthorized

The request requires user authentication.

Çözüm / Solution
Login olduğunuzdan veya geçerli bir API anahtarı (Token) kullandığınızdan emin olun.
403
Orta

Forbidden

The server understands the request but refuses to authorize it.

Çözüm / Solution
Kullanıcı yetkilerini veya dosya izinlerini kontrol edin.
500
Orta

Internal Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request.

Çözüm / Solution
Sunucu loglarını (günlüklerini) kontrol ederek hatanın kaynağını (syntax, database vb.) bulun.
404
Başlangıç

Not Found

The server cannot find the requested resource.

Çözüm / Solution
URL'i kontrol edin veya sayfanın sunucuda var olduğundan emin olun.
NullReferenceException
Orta

Object reference not set to an instance of an object

Occurs when you try to access a member (method, property, etc.) of an object that is currently null.

Çözüm / Solution
if (myObj != null) { myObj.DoSomething(); }
// veya Null-conditional operator:
myObj?.DoSomething();
CS0111
Başlangıç

The type 'X' already defines a member called 'Y' with the same parameter types

Occurs when you have two methods or properties with the exact same name and signature in the same class.

Çözüm / Solution
// Bir metodun ismini değiştirin veya parametre imzalarını farklılaştırın.
void MyMethod(int x) { }
void MyMethod(string s) { }