Category Archive for "Debugging"

PHP parse/syntax errors; and how to solve them

The Common Syntax Errors in PHP Unexpected T_STRING Unexpected T_VARIABLE Unexpected T_CONSTANT_ENCAPSED_STRING Unexpected $end Unexpected T_FUNCTION Unexpected { Unexpect...

What is a debugger and how can it help me diagnose problems?

As a programmer, you may encounter various problems while developing your code. It can be frustrating when your program is not providing the expected output, crashing...

How can I get useful error messages in PHP?

Quite often when running a PHP script, you may encounter a common issue - a blank screen with no error message. This can be frustrating and time-consuming to troubleshoot, especial...

What is a stack trace, and how can I use it to debug my application errors?

Sometimes when I run my application it gives me an error that looks like: Exception in thread "main" java.lang.NullPointerException at com.e...