52,750 questions
235
votes
14
answers
50k
views
Debugging in Clojure? [closed]
What are best ways to Debug Clojure code, while using the repl?
231
votes
7
answers
75k
views
How does a debugger work?
I keep wondering how does a debugger work? Particulary the one that can be 'attached' to already running executable. I understand that compiler translates code to machine language, but then how does ...
226
votes
28
answers
139k
views
Is there a C++ gdb GUI for Linux? [closed]
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++?
In detail: As someone who has spent a lot of time ...
226
votes
9
answers
754k
views
How do I analyze a program's core dump file with GDB when it has command-line parameters?
My program operates like this:
exe -p param1 -i param2 -o param3
It crashed and generated a core dump file, core.pid.
I want to analyze the core dump file by
gdb ./exe -p param1 -i param2 -o param3 ...
226
votes
12
answers
35k
views
Visual Studio refuses to forget breakpoints?
Visual Studio remembers breakpoints from previous debugging sessions, which is awesome.
However, when I'm debugging, and I clear one of these "old" breakpoints by clicking on it, it's only ...
222
votes
10
answers
116k
views
Is there a way to dump a stack trace without throwing an exception in java?
I am thinking of creating a debug tool for my Java application.
I am wondering if it is possible to get a stack trace, just like Exception.printStackTrace() but without actually throwing an exception?...
218
votes
7
answers
167k
views
How do I find the stack trace in Visual Studio?
I ask because I couldn't find the stack trace in Visual Studio, while debugging an exception that occurred.
216
votes
4
answers
71k
views
Make sure your project build settings are generating a dSYM file. DEBUG_INFORMATION_FORMAT should be set to dwarf-with-dsym for all configurations
I've recently started getting this error:
2015-03-23 11:35:48.902 run[60036:1047011] Crashlytics.framework/run 1.3.14
2015-03-23 11:35:48.911 run[60036:1047011]
Crashlytics: dSYM Error
Unable to ...
213
votes
4
answers
66k
views
Eclipse debugger always blocks on ThreadPoolExecutor without any obvious exception, why?
I'm working on my usual projects on Eclipse, it's a J2EE application, made with Spring, Hibernate and so on. I'm using Tomcat 7 for this (no particular reason, I don't exploit any new feature, I just ...
209
votes
16
answers
141k
views
Step-by-step debugging with IPython
From what I have read, there are two ways to debug code in Python:
With a traditional debugger such as pdb or ipdb. This supports commands such as c for continue, n for step-over, s for step-into etc....
207
votes
18
answers
140k
views
Copy object values in Visual Studio debug mode
In Visual Studio debug mode it's possible to hover over variables to show their value and then right-click to "Copy", "Copy Expression" or "Copy Value".
In case the variable is an object and not just ...
205
votes
3
answers
189k
views
How do I set a conditional breakpoint in gdb, when char* x points to a string whose value equals "hello"?
Can I specify that I want gdb to break at line x when char* x points to a string whose value equals "hello"? If yes, how?
204
votes
14
answers
76k
views
How to debug template binding errors for KnockoutJS?
I keep having trouble with debugging problems in KnockoutJS templates.
Say I want to bind to a property called "items" but in the template I make a typo and bind to the (non existing) property "item"....
199
votes
5
answers
159k
views
Getting the caller function name inside another function in Python? [duplicate]
If you have 2 functions like:
def A
def B
and A calls B, can you get who is calling B inside B, like:
def A () :
B ()
def B () :
this.caller.name
197
votes
20
answers
199k
views
Android Debug Bridge (adb) device - no permissions [duplicate]
I have a problem connecting HTC Wildfire A3333 in debugging mode with my Fedora Linux 17. Adb says:
./adb devices
List of devices attached
???????????? no permissions
my udev rules (first rule ...
192
votes
15
answers
347k
views
How to Debug Variables in Smarty like in PHP var_dump()
I have some variables inside a template and I don't know where I assigned them. I need to know what is inside a particular variable; for instance, say I have a variable in smarty called member. I ...
191
votes
20
answers
549k
views
Chrome: Uncaught SyntaxError: Unexpected end of input
When loading my page in Google Chrome, I get a vague error in the console:
Uncaught SyntaxError: Unexpected end of input
I have no idea what is causing it. How would I go about debugging this error?
190
votes
19
answers
251k
views
Visual Studio loading symbols
I've been working on a ColdFusion project for a while now, and Visual Studio started to behave strangely for me.
I observed that when I started debugging, it built the project, started the deploy, and ...
189
votes
9
answers
81k
views
Viewing complete strings while debugging in Eclipse
While debugging Java code, Strings in the views "Variables" and "Expressions" show up only till a certain length, after which Eclipse shows "..."
Is there any way to inspect the entire string? (This ...
188
votes
3
answers
41k
views
How can I prevent Visual Studio 2013 from closing my IIS Express app when I end debugging?
Previously in 2012, if I debugged in Chrome (for example), and then stopped the debugger, the website would remain running in IIS Express. This no longer seems to be the case in 2013.
Is this a new ...
187
votes
7
answers
132k
views
Extract traceback info from an exception object
Given an Exception object (of unknown origin) is there way to obtain its traceback? I have code like this:
def stuff():
try:
.....
return useful
except Exception as e:
...
185
votes
2
answers
32k
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 who do not know how to use a debugger to diagnose the cause of the problem.
This ...
182
votes
15
answers
210k
views
How to debug heap corruption errors?
I am debugging a (native) multi-threaded C++ application under Visual Studio 2008. On seemingly random occasions, I get a "Windows has triggered a break point..." error with a note that this ...
180
votes
1
answer
98k
views
How to check release / debug builds using cfg in Rust?
With the C pre-processor it's common to do,
#if defined(NDEBUG)
// release build
#endif
#if defined(DEBUG)
// debug build
#endif
Cargo's rough equivalents are:
cargo build --release for ...
179
votes
14
answers
273k
views
How to var_dump variables in twig templates?
View layer pattern where you only present what you have been given is fine and all, but how do you know what is available? Is there a "list all defined variables" functionality in TWIG? Is there a way ...