All Questions

417
votes
12answers
345101 views

PHP Parse/Syntax Errors; and How to solve them?

Everyone runs into syntax errors. Even experienced programmers make typos. For newcomers it's just part of the learning process. However, it's often easy to interpret error messages such as: PH...
838
votes
30answers
143574 views

Reference - What does this error mean in PHP?

What is this? This is a number of answers about warnings, errors and notices you might encounter while programming PHP and have no clue how to fix. This is also a Community Wiki, so everyone is invit...
460
votes
28answers
460795 views

How to get useful error messages in PHP?

I find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax ...
470
votes
7answers
251519 views

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.example.myproject.Book.getTitle(Book.java:16) ...
19
votes
2answers
1603 views

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

This is intended to be a general purpose question to assist new programmers who have a problem with a program, but do not know how to use a debugger to diagnose the cause of the problem. This questio...
96
votes
20answers
121620 views

How can I debug my JavaScript code?

When I find that I have a problematic code snippet, how should I go about debugging it?
210
votes
38answers
252188 views

Is there a good Valgrind substitute for Windows?

I was looking into Valgrind to help improve my C coding/debugging when I discovered it is only for Linux - I have no other need or interest in moving my OS to Linux so I was wondering if there is a eq...
38
votes
3answers
68456 views

Subscript indices must either be real positive integers or logicals, generic solution

The following error occurs quite frequently: Subscript indices must either be real positive integers or logicals I have found many questions about this but not one with a really generic answer. ...
678
votes
32answers
782867 views

How can I connect to Android with ADB over TCP?

I am attempting to debug an application on a Motorola Droid, but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64-bit VM running in Hyper-V, and so...
181
votes
3answers
82016 views

In Visual Studio C++, what are the memory allocation representations?

In Visual Studio, we've all had "baadf00d", have seen seen "CC" and "CD" when inspecting variables in the debugger in C++ during run-time. From what I understand, "CC" is in DEBUG mode only to indica...

Previous Next