When debugging in PHP I frequently find it useful to simply stick a var_dump ($foo, $bar, ...) in my code to show me the the what a variable is, what is value is, and the same for anything that it contains.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Tuesday, June 5, 2012
What is a python equivalent of PHP"s var_dump()
Friday, June 1, 2012
How do you debug PHP scripts?
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.
Tuesday, May 29, 2012
Popular techniques to debug .htaccess
I'm a self-taught coder and I like to debug by echoing suspicious variables and commenting out code.
C++ gdb GUI
Briefly: Does anyone know of a GUI for gdb that brings it on par or close to the feature set you get in the more recent version of Visual C++?
Sunday, May 20, 2012
Android: automatically choose debug/release Maps api key?
Is it possible to automatically detect, which certificate was used for signing APK? I'd like to have both debug and release Maps certificates in application and pass valid one to MapView constructor.
Friday, May 18, 2012
C++ gdb GUI
Briefly: Does anyone know of a GUI for gdb that brings it on par or close to the feature set you get in the more recent version of Visual C++?
Thursday, May 17, 2012
So eclipse and xdebug walk into a bar, and then my apache server dies
I am using windows xp x86, wamp, apache2, php 5.3 x86, eclipse php, and xdebug, running on localhost as both a virtualhost and an https virtualhost
Monday, May 14, 2012
Android - Are LogCat calls visible to end users if phone is in debug mode?
I've been using Log.whatever() calls to Log various bits of information as I've been developing my Android app. As I prepare to publish my app to the Android Marketplace, I'm trying to figure out what I need to remove.
Thursday, April 12, 2012
Programmatically stop Javascript execution in FireFox/FireBug
I am currently debugging complex Javascript/AJAX code written with mootools with FireBug. I am looking for a way to stop the JS execution as if it was a breakpoint programmatically.
Friday, April 6, 2012
Tiny PHP "standalone” server (or framework) for local debug without Apache/Nginx/Lighttpd/etc
There's manage.py runserver in Django or ruby script/server in Ruby on Rails — those familiar with one of those frameworks should already get the idea what I'm looking for. They run tiny "standalone" web server, which is perfectly enough to debug the application locally, without any need for other software (Apache/Nginx/Lighttpd/etc).
Tuesday, April 3, 2012
Android: How to track down the origin of a InflateException?
While starting my application I get the following warning in Logcat:
Thursday, March 8, 2012
How to use MallocStackLogging on the device?
I've a memory issue in an iPhone app that I'd like to debug with MallocStackLogging . The error involves the gyroscope so I have to debug on the device not the simulator.
Saturday, February 25, 2012
Guard Malloc doesn"t work
I'm experimenting with different profiling options that Xcode provides, but when I enabling Guard Malloc option in Diagnostics tab and trying to run, I'm getting this error with immediate crash:
Tuesday, February 14, 2012
How can I hide long class paths in stack traces to make them readable?
Often stack traces can get so verbose from long class paths that they are very painful to read. Here's an example:
Tuesday, January 17, 2012
App crashing in cocos2d app on device when nothing happening
I have a somewhat simple game that I'm making and now that I'm testing what I consider a bare bone version of the app on devices, I keep getting crashes over and over. I'm fairly new at debugging on actual devices, so any help would be great.