debugging

How to debug sphinx ?

I want to see how sphinx actually works,has anyone tried this? ...

Eclipse: The icons in "Display View" are all greyed out

The discussion here describes the "display view" in eclipse which allows one to to quickly evaluate java expressions. The thing is, when I open the display view the icons remain greyed out and I can't execute anything. The only icon that isn't is "clear console". The odd thing is, alot of the screenshots on the web show the same behaviou...

"Replay" the steps needed to recreate an error

I am going to create a typical business application that will be used by a few hundred consultants. Normally, the consultants would be presented with an error message with a standard text. As the application will be a complicated one with lots of changes being made to it constantly I would like the following: When an error message is pr...

How can I prevent the "... has stopped working" window on my Server 2008 R2 dev box?

I'm using a Windows Server 2008 x64 R2 machine as a development box. Amongst many other things I've got Visual Studio 2008 SP1 installed on it. When I'm working on a project, I sometimes need to use Debug > Start without Debugging (Ctrl + F5). If the program throws an exception, I get a new R2-style window appear. I'm pretty sure I d...

symbolicatecrash does not give me method names for my own functions

Hey all, Running into a weird issue using symbolicatecrash to debug crash logs. After I run symbolicatecrash with the .dSYM file of the build that crashed, it gives me function names for all of the Foundation classes, but not for my own app. Is there some setting in XCode that I may be missing? GENERATE DEBUG SYMBOLS is turned on to YES...

how to separate debug and release mode code

During debug mode or while I am doing testing, I need to print lots of various information, so i use this method: #ifdef TESTING // code with lots of debugging info #else // clean code only #endif // TESTING` Is this a good method, or is there any other simple and elegant method ? But this way, I am repeating the same code in two pla...

How to debug a GLSL shader ?

I need to debug a GLSL program but I don't know how to output intermediate result. Is it possible to make some debug traces (like with printf) with GLSL ? ...

Hundreds of errors when debuging an open source project(sphinx)

To name a few: `__debugbreak' was not declared in this scope sphinx.cpp /sp/src line 146 C/C++ Problem `__rdtsc' was not declared in this scope sphinx.cpp /sp/src line 452 C/C++ Problem `__stat64' does not name a type sphinx.cpp /sp/src line 15963 C/C++ Problem Are you familiar with the error info?Is there something I...

How to see external libraries code when debugging

Hello!! First of all... this is my message #1 in this place, so... please be nice with me ;) I just started recently to study Gnome apps/libraries and I found that debuggers are an excellent way to learn, because seeing the code running helps a lot in understanding the structure of the program. But I have a problem. For example, debug...

Show Visualizers Error "could not load this custom viewer"

When I try to inspect DataSet by standard DataSet visualizer I see this error "could not load this custom viewer". I wrote simple dataset visualizer, but error throws anyway too. On other computers with the same configuration visualizer show without any errors. OS: Windows 7 x86 (Release) VS: Visual Studio 2010 RC has somebody any i...

Mathematica regular expressions on unicode strings.

This was a fascinating debugging experience. Can you spot the difference between the following two lines? StringReplace["–", RegularExpression@"[\\s\\S]" -> "abc"] StringReplace["-", RegularExpression@"[\\s\\S]" -> "abc"] They do very different things when you evaluate them. It turns out it's because the string being replaced in the ...

Visual Studio - "attach to particular instance of the process" macro

I guess prety much everyone who does a lot of debugging have a handy macro in Visual Studio (with shortcut to it on a toolbar) which when called automatically attaches to a particular process (identified by name). it saves a lot of time rather than clicking "Debug" -> "Attach to the process ...", but it only works if one is running a si...

Event Handlers Not Getting Called? - wxWidgets

Hello all, I'm working on a program for my C++ programming class, using wxWidgets. I'm having a huge problem in that my event handlers (I assume) are not getting called, because when I click on the button to trigger the event, nothing happens. My question is: Can you help me find the problem and explain why they would not be getting cal...

Is there a Watch list in Flash CS4's AS3 debugger?

Is a watch list hidden away somewhere in the AS3 debugger in Flash CS4? Sorry for asking a simple question like this here - I did spend a while looking around the net first. It's much easier to find the watch list in the AS2 debugger. Thanks, Dan ...

How do you reproduce bugs that occur sporadically?

We have a bug in our application that does not occur every time and therefore we don't know its "logic". I don't even get it reproduced in 100 times today. Disclaimer: This bug exists and I've seen it. It's not a pebkac or something similar. What are common hints to reproduce this kind of bug? ...

What is the header of an array in .NET

Hi all, I have a little bit seen the representation of an array in memory with Windbg and SOS plugin. Here it is the c# : class myobj{ public int[] arr; } class Program{ static void Main(string[] args){ myobj o = new myobj(); o.arr = new int[7]; o.arr[0] = 0xFFFFFF; o.arr[1] = 0xFFFFFF; o.arr[2] = 0xFFFFFF; ...

Python's IDLE for Java

Question: IS there and IDE like python's IDLE for other languages? specifically I'd like one for java, but any programing just feels so much nicer with a debug system like IDLE's. Info: The main feature I'm getting at is the ability to test programs. In IDLE I can have the editor for my class in one window, i save and run it then ID...

nedmalloc: where does mem>=fm come from?

While implementing nedmalloc into my application, I am frequently hitting a situation when nedmalloc refuses to free a block of memory, claiming it did not allocate it. I am using v1.06beta1_svn1151 version. While debugging I have come up to the point I see a particular condition which is failing, all other (including magic numbers) su...

Why is Netbeans + Xdebug showing repetitive results in Variables pane?

I just started using Netbeans to debug PHP apps, but when I inspect any object it has the CLASSNAME printed over and over, making it very difficult to understand the contents of an object. See the image below to see what I am talking about. Anybody know what is going on? Here are some details that might be important... Netbeans versi...

How can I get the GUID from a PDB file?

Hello, Does anyone know how to get the GUID from a PDB file? I'm using Microsoft's Debug Interface Access SDK http://msdn.microsoft.com/en-us/library/f0756hat.aspx and getting E_PDB_INVALID_SIG when passing in the GUID i expect when trying to load the PDB. I'd just like to know the GUID of the PDB so I can be certain that it's mism...