Top "Debugging" questions

Debugging is a methodical process of finding and fixing bugs in a computer program.

_DEBUG vs NDEBUG

Which preprocessor define should be used to specify debug sections of code? Use #ifdef _DEBUG or #ifndef NDEBUG or is …

c++ c debugging
How to determine whether code is running in DEBUG / RELEASE build?

I am making an app that processes sensitive credit card data. If my code is running in debug mode I …

ios xcode debugging preprocessor release
Can I set a breakpoint on 'memory access' in GDB?

I am running an application through gdb and I want to set a breakpoint for any time a specific variable …

c++ debugging gdb breakpoints memory-access
How can I debug my JavaScript code?

When I find that I have a problematic code snippet, how should I go about debugging it?

javascript debugging
Are there any HTTP/HTTPS interception tools like Fiddler for mac OS X?

I would like to know if there are any applications like fiddler but for mac OS X, as I need …

debugging http macos https sniffing
How to resolve "Waiting for Debugger" message?

I have HTC Comet connected to Eclipse with SDK 2.2. I do a debug build - the application does not run; …

android eclipse debugging device adb
How to debug an apache virtual host configuration?

Once again, I have a problem with my apache virtual host configuration. (The default configuration is used instead of my …

apache debugging virtualhost
Break when a value changes using the Visual Studio debugger

Is there a way to place a watch on variable and only have Visual Studio break when that value changes? …

visual-studio debugging breakpoints conditional-breakpoint
Print current call stack from a method in Python code

In Python, how can I print the current call stack from within a method (for debugging purposes).

python debugging stack-trace
How do I get the backtrace for all the threads in GDB?

Is there an equivalent command in GDB to that of WinDbg's "!process 0 7"? I want to extract all the threads in …

multithreading debugging gdb backtrace