Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.
124
votes
21answers
9k 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 ...
45
votes
14answers
38k 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 ...
52
votes
3answers
14k views
How to add a breakpoint to objc_exception_throw?
this was the answer from the brad larson on this
SO question
If you add two breakpoints, you should be able to debug these exceptions. To do this, go to Run | Show | Breakpoints and create two global ...
65
votes
6answers
72k views
Test iOS app on device without apple developer program or jailbreak
How can I test an iOS application on my ipod touch without registering for the apple developer program or jailbreaking my ipod?
Neither is a viable option at the moment.
I'd like to test on the ...
138
votes
18answers
169k 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 64bit VM running in HyperV and so I ...
177
votes
10answers
238k views
How do you launch the javascript debugger in Google Chrome?
When using Google Chrome, I want to debug some javascript. How can I do that?
132
votes
28answers
50k views
How do you debug PHP scripts? [closed]
How do you debug your PHP scripts?
I am aware of basic debugging such as using the Error Reporting. The breakpoint debugging in PHPEclipse is also quite useful.
Any other good/better techniques out ...
23
votes
2answers
10k 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)
...
40
votes
5answers
25k views
Capturing console output from a .NET application (C#)
How do I invoke a console application from my .NET application and capture all the output generated in the console?
(Remember, I don't want to save the information first in a file and then relist as ...
34
votes
8answers
11k views
How do I debug ruby scripts?
Ruby n00b here. I copied the following ruby code from the internets and made a few changes.
#insert teh codes here
But it doesn't work!
Please help. What can I do to debug the program by myself?
...
166
votes
4answers
77k views
What is private bytes, virtual bytes, working set?
I am using perfmon windows utility to debug memory leak in a process.
Perfmon explaination:
Working Set- Working Set is the current size, in bytes, of the Working Set of this process. The Working ...
77
votes
9answers
25k views
C/C++ source file after preprocessing
Let's say I have a source file with many preprocessor directives . Is it possible to see how it looks after the preprocessor is done with it ?
41
votes
10answers
8k views
General suggestions for debugging R?
I get an error from R when using a function that I wrote:
Warning messages:
1: glm.fit: algorithm did not converge
2: glm.fit: algorithm did not converge
What I have done
step through the ...
27
votes
2answers
22k views
How to use addr2line in Android
I am stuck with my app, as I am unable to debug as it is a multithreaded one and crashes with error SIGSEGV. I get lot of information from LogCat, which gives me addresses in my native library. It ...
66
votes
11answers
38k views
How do you get assembler output from C/C++ source in gcc?
How does one do this?
If I want to analyze how something is getting compiled, how would I get the emitted assembly code?