debugging

Debugging tools for Multithreaded Apps

What free tools can I use to debug multithreaded programs created using the pthread library in Linux? (Besides pen & paper, of course...) The usual way of printing debug messages isn't working out very well. ...

Android app bugs/errors only on certain phones

I've released an app about a month ago now, and it works as it should on my Desire and presumably on a lot of other phones. However it is also receiving it's fair share of 1 star ratings with comments that say that the sound simply doesn't work. Given that this is an app to play sounds and alarms that's a pretty major problem. Thankfull...

What is "Interface Builder Cocoa Touch Tool"

I got a code from a client to fix the bug (code was written by some other programmer), So when I open the xib file it simply hang my computer, i restarted my computer 3 times because of that and finally decided to see what's happening by opening the Activity Monitor and it turn out it is opening something with name "Interface Builder Coc...

Problem with Debugging in Eclipse CDT

I'm trying to debug the simple Hello World program that ships with Eclipse CDT. Running the program normally works fine, but when its run through debug mode, puts() doesn't print anything to the console. I tried running the same program with gdb directly and it works fine, printing "!!!Hello World!!!" as expected. Why doesn't puts() pr...

Debugging MacOSX Cocoa applications with command line gdb (without XCode)

I use a cross platform toolkit which wraps Objective-C so i do not/can not use XCode. Just the pure command line and plain old makefiles. I compile my source code with "gcc -Wall -g -O0 " but when running it under gdb control i do not get the stack frames or valid source code lines. First: What can i do to get this work. Second: How ca...

How do I debug ruby scripts?

Hi Stack Overflow, 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? Thanks in advance, Andrew Grimm ...

how to list class methods in gdb?

I've been googling for this and checking through the gdb manual but can't seem to find an answer to what I'm trying to do. Is there a way to get gdb to print out a listing of all the methods for a given class type? The print command only seems to show the data members and fields, none of the methods are displayed for it. Additionally, ...

Debug a module built with Boost.Python in QtCreator

I have a module built with Boost.Python and I want to debug it in QtCreator (or perhaps gdb). I prefer a visual environment if possible. ...

long running loops becomes non-debuggable in intellij

I use IntelliJ to develop and debug applications. Many times I hot-swap classes as part of debugging. Some time (just sometimes) I am unable to set break points in newly added code. The IDE shows that the break point is valid-- but does not stop there. I observed that this happens with loops that ran many many times. Any one faced simi...

How to visualize the behavior of many concurrent multi-stage processes?

Suppose I've got a ton (a continuous stream) of requests to process, and each request has several stages. For example: "connecting to data source", "reading data from data source", "validating data", "processing data", "connecting to data sink", "writing result to data sink". Which visualization methods or even tools fit well to visuali...

View an record values of properties without debugging

Is there a lightweight way to watch and record the values of properties of arbitary instances in my .NET application? Preferably one that works for release builds too and without having to attach a full fledged debugger. Sort of like what Crack.NET does but with live updates, recording and most importantly, one that works with mixed mode...

How to programmatically exit pdb started in eval() or exec without showing output

In my python code I have this line: try: result = eval(command, self.globals, self.locals) except SyntaxError: exec(command, self.globals, self.locals) The command variable can be any string. Hence the python debugger pdb may be started in eval/exec and still be active when eval/exec is returning. What I want to do is make sur...

Hot code replace no longer working in Eclipse for Groovy?

Hot code replace is no longer working for me in Eclipse for Groovy. I have a project with a mix of Groovy and Java files. This morning hot code replace worked, but now it doesn't work for Groovy. It still works for Java files. I'm not sure what the difference is that made it stop working. Any suggestions? ...

DateTime issue - value available outside object but not inside

This is a very frustrating and bizarre issue and I would appreciate any advice on how to resolve it. I have an object with a private variable: private DateTime _maturityDate = DateTime.MaxValue; It has a corresponding property: public DateTime MaturityDate { get; set; } I have a method which updates the data in the database calle...

Can debugging symbols be built after-the-fact?

We have hundreds of MSVC 9.0 C++ projects. One DLL slipped out into the public without the correct compiler/linker settings to generate symbols, and we are getting mini-dumps back that point to an exception in this DLL. We have the exact source code used to generate this DLL. Can it be compiled to produce symbols that we can use to debug...

How can I learn WinDbg? (re: seemingly simple hung process)

I'm trying to determine why a process is hanging and am learning about various tools such as Process Explorer, Process Monitor, and WinDbg. Anyways, I'm trying to use WinDbg and after attaching to my process the debugger says this: (1e9c.1128): Break instruction exception - code 80000003 (first chance) eax=7ffda000 ebx=00000000 ecx=000...

How to debug Flex application under maven

I develop Flex-Java applications which is running under Apache Tomcat. I use Flex Builder plug-in for Eclipse as my IDE. My application consists of several libraries and modules. I manage all of them as a small maven (flex-mojos) projects. Does anybody can share some ideas how to setup robust debuging enviroment? ...

Why wouldn't GAE store my logging.debug?

It seems logging.debug() doesn't appear in GAE logs, but logging.error() does. Does anyone have an idea how can I make logging.debug() appear in the GAE logs? ...

Simulate No Flash in Ubuntu

I've searched this and cannot find it. I've tried different plugins and different browsers (Firefox, Opera, and Chrome). I've tried most of the no flash plugins for each of those as well as disabling Flash plugins/addons in the settings. I also renamed the .so file in /usr/lib/flashplugin-installer/ i found by searching the system. when ...

Is it possible to step through a RoR application? or only debug using the debugging breakpoint?

I read that you can put a 'debugging' symbol in your RoR code, and then execution will Halt at that point and then you can then spit out anything into console to see the state of variables etc. Is there a way to step though each line and follow the execution path? ...