debugging

Multiprocessing debug techniques

I'm having trouble debugging a multi-process application (specifically using a process pool in python's multiprocessing module). I have an apparent deadlock and I do not know what is causing it. The stack trace is not sufficient to describe the issue, as it only displays code in the multiprocessing module. Are there any python tools, or...

Blackberry Simulator - printing only relevant debug messages

When debugging in the blackberry simulator, the console prints out a lot of other information relevant to the simulator along with the debug information printed in the application I develop. Is there a way to print only the debug messages of the application I am running in the simulator? ...

Fibonacci Heap Issue

I've been working on a Fibonacci Heap implementation in Java for about a week now. It's the implementation based off of the CLRS book. I wanted to see if I would get any performance boost using it in a side project I'm working on compared to Java's default PriorityQueue. [The default implementation in Java is array based, so much more l...

VS C++ program only works when .exe is run from folder? [not VS debug]

Output from debug: File opened... File contents: Output from .exe (run via double click from /project/debug): File opened... File contents: line1 line2 etc. . . Source code: #include <iostream> #include <fstream> #include <regex> #include <string> #include <list> using namespace std; using nam...

Why does Visual Studio start my web app in non-debug mode if IE8 is already opened?

Problem If IE8 is already opened then my app will be started in non-debug mode rather than debug mode. Visual Studio "lets go of it". Why that is and how to change it? Expected and Desired Behaviour With my previous installation if IE7 wasn't running, Visual Studio would start IE7 and load the application into a new tab. If IE was r...

How to add namespaces to QuickWatch window in VS 2005

Hi I want to add for example using System.IO; for the QuickWatch. And i don't know how. My objective is to whenever i want to see the value of a certain expression for example Path.Combine("C:\","test"); i want to be able to see the result in the quick window. But i can't i have to add 'System.IO' in the quick watch before 'Path.combine...

How can I hide an exception type from the output window in Visual Studio?

I'm testing something and the output windows is being flooded with exceptions. How can I filter an exception type that is shown in the output window. Note: Avoiding exceptions is not possible in this case. ...

Is there a Java library that performs a message digest on a tree of objects?

I am looking for a library that, given a tree of objects, performs a message digest or hashing on the entire structure. I want to see if an object passed to a method gets modified or not (this object contains other objects, who contain objects and so on – none are immutable). Is there a way to check if the state of any object in the ...

AddressFilter mismatch at the EndpointDispatcher

Hi. I have a WCF Web application that uses a WCF Class Library. My project is a WCF Web project and I am self-hosting. My problem is that all my web service methods hang with: And "Unable to automatically step into the server...etc". The error (not very helpful) returned is: The operation has timed out When I invoke the same met...

Custom System.Diagnostics.TraceListener output to RichTextBox hangs

I've a RichTextBox which I use as output from a custom TraceListener shown below: The trouble is this seems to deadlock hard if anyone is writing debug/trace info from other threads while a GUI dialog also is trying to write debug/trace info. Anyone care to point at some obvious errors here ? : class MyTraceListener : TraceListener { ...

Get instruction pointer of running application on Unix

Is there a way to get the instruction pointer of a running application Unix? I have a running process (C++) and want to get its current location, and thereafter in GDB (on a different machine) map the location to source location ('list' command). ...

Visual Studio 2008 Debugging - Skipping code

Is there a way to skip code without having to set a breakpoint after it? I am using the debugging to explore code with a GUI painting event that runs lots of times. I wish to see what comes after the event is done triggering without having to click next a bunch of times. ...

Having Trouble Generating a War in Grails

I'm getting the following error when I try to build a war in Grails. Any thoughts on what could be causing the issue? Any tips on debugging the Groovy scripts that are building the war? [web] $ cmd.exe /C D:\dev\tools\grails-1.1\bin\grails.bat war cloudfi.war && exit %%ERRORLEVEL%% Welcome to Grails 1.1 - http://grails.org/ Licensed u...

Unable to automatically step into the server when debugging WCF

I get the dreaded: Unable to automatically step into the server. The remote procedure could not be debugged.This usually indicates that debugging has not been enabled on the server." Now, I have been reading that I need to add <compilation debug="true"> to the web.config . Fair enough, my problem is that my WCF service is a nettcp ...

How do I use ruby-debug inside Emacs?

I know Emacs has some sort of integration with gdb (though I never used it) to jump through files as you debug a program. I'd like to do the same with Ruby programs. ...

Perl memory usage profiling and leak detection?

I wrote a persistent network service in Perl that runs on Linux. Unfortunately, as it runs, its Resident Stack Size (RSS) just grows, and grows, and grows, slowly but surely. This is despite diligent efforts on my part to expunge all unneeded hash keys and delete all references to objects that would otherwise cause reference counts...

ARM Data Abort error exception debugging

So now I understand that I'm getting a ARM Data Abort exception - I see how to trap the exception itself (a bad address in the STL library), but I would like to walk back up the stack frame before the exception. I'm using the IAR toolchain, and it tells me the call stack is unavailable after the exception - is there a trick way to convin...

Remote Debugging .net

Guys, I've read all related remote debug entries here and couldn't find an answer to my problem. I've trying to setup remote debugging to test a console app. Dev Machine - Vista, VS 2008 Remote Machine - Win 2008 I've followed the steps in this article to configure it and I'm stuck with the following error when I try to list processes...

Debugging UIViews missing subviews member in variable list of debugger

Hello thogether While searching a bug in my code today I found a strange thing. When inspecting a UIView instance in the debugger the variable view of Xcode does not show the subviews member of the UIView class. I only see this fields in the debugger (> should indicate the opening triangle): >UIResponder >_layer >_tabInfo >_gestureIn...

How to step through an entire block of code?

I would like to be able to skip over certain parts of my code when I set breakpoints. For example, I have a code block which iterates 52 times to create a deck of cards. This is working properly and I would rather not have to hit F11 to keep stepping through that block. Is there anyway for me to "skip" this so that the debugger just g...