debugging

incompatible types when initializing type

I don't see why this error is coming up. Maybe someone else sees it. Here's the error. actor_plazma.c:92: error: incompatible types when initializing type ‘int (*)(struct VisObject *)’ using type ‘float’ actor_plazma.c:92: error: incompatible types when initializing type ‘void *’ using type ‘float’ make: *** [actor_plazma.lo] Error 1 ...

How to Debug a deadlock in Java using Eclipse

Hello What techniques can one use to debug what appears to be a deadlock in a Java program. My IDE is Eclipse and I think I've identifid the two deadlocked threads. In the debugger, right-clicking any of the threads in question and selecting suspend suspends the thread and displays the code currently being executed. Attempting step-into ...

Weird behavior while debugging in VS2008 Pro

Today i was debugging some lines of code and i noticed a very weird behavior: a declared variable should get a value returned from a method. The method returns properly (as expected) the value, but hovering over the variable name (after the assignment) returns ... absolutely NOTHING. Even writing the variable's name in the watch windo...

Setting Address Book image for a contact doesn't seem to work

I'm trying to set the contact image with the code below. I am not seeing any errors, and the image is not saved to the contact entry in the address book. Please help! I must be doing something wrong... - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecord...

dbx: No current source file , even after i compile with -g -xs , cant find source files

im using pathmap , to map the source and objects , compiled with -g -xs but still dbx can't find the source files what else can it be ? ...

NetBeans is not debugging correctly after I copy sources

Dunno why this happens... Ok here is the situation: I have a nb project on my laptop. I have the same project on my desktop. I copy the sources (not the entire project) on the desktop, overwriting the desktop sources. Everything cleans and builds ok. Then I start the debugger. On the main class I can debug step by step. If it goes into a...

What are the values in intel x86 CPU stack before running (on Windows)?

I have been debugging some .exe and noticied that before I start debugging step by step, at the very beginning of the program, there are already some values loaded in the stack? What are these? I am using OllyDbg and some of the "labels" for these values are: return to kernel32.7C8... ntdll.7C9... End of SEH chain SE handler Than...

Debugging SIGBUS on x86 Linux

What can cause SIGBUS (bus error) on a generic x86 userland application in Linux? All of the discussion I've been able to find online is regarding memory alignment errors, which from what I understand doesn't really apply to x86. (My code is running on a Geode, in case there are any relevant processor-specific quirks there.) ...

Filtering app server console output in Eclipse to not include long stack traces and just show me the error message?

I am using JBoss 4.2. Long stack traces are useless to me most of the time. Is there a way to only show the error message? Can stack traces be disabled or trimmed for normal java programs also? ...

How to find which type of object I have on Perl?

How can I find which object type I am dealing with in Perl? I tried using perl -d to enter the debugger, but I'm not sure what to do then. Likewise I'd like a way to easily see which methods are available for each object, how can that be done? ...

What can I do to track this bug down?

I have a bug where a char pointer is turning out NULL. I've been all over gdb with the program, watching read/write at the memory address, and stepping through the instructions, but so far the bug stumps me. I've ran valgrind and the only thing coming up is the read at the crash (strcmp). What else can I do to track this down? ...

Debugging assembly

How do I debug assembly code? I'm on Linux and have gdb handy. I know I can watch registers. What are some methods for debugging assembly code? ...

How can I debug a binary that has no debugging symbols?

I have an executable that remained from a previous programmer ( and no source code is available ). The thing is, it started to work kind of buggy and I'm trying to figure out why. The tool reads data from somewhere and populates a combobox with it. Is there anyway I could debug it, and see where is it getting the data from? What tool ca...

Debug-only classes and resources in visual studio - is it possible?

Is it possible to add a class to a project in Visual Studio and have that class only built for the Debug configuration of the project? That is, it will not appear in the Release build at all. If it is possible, is it also possible to do the same for resources? I'm thinking specifically about test classes that are only run in the Debug ...

How to profile JQuery/JQGrid

I am using JQGrid component for displaying ajax tree grid. With some quantity of data (tree with 200 branches, 2-3 items in each) - the grid begins to freeze in FireFox. Then I get a window asking whether to stop the script or continue. What is the prescription to debug and resolve this? I can debug my code, but I am not sure how to deb...

Can .NET datatable visualizer be launched from code?

I have several datatable/dataset visualizers installed in my Visual Studio 2008. Launching a visualizer manually in the IDE is a bit time consuming. While debugging, I would like to display a datatable visualizer with a datatable's data automatically through code. I want to put a breakpoint on the line after invoking the visualizer. I k...

C# How can false == true ? See Picture

I just ran into one of the most mind boggling errors ever. false == true What information would you guys need to confirm/debug this behavior? I've never seen anything like it. VS2008 sp1 Debug Mode | Any Cpu IIS 7.5 Edit: I did a clean->rebuild and still the same. Here's the assembly and registers. I don't know how to read t...

"breakpoint will not currently be hit" in asp.net

(A colleague helped me answer this so I will post the question and answer...) When I try to debug an ASP.NET app, I am getting "The breakpoint will not currently be hit. The source code is different then the original version" and no matter what I do or how many times I build, kill the web server, kill the browser, restart Visual Studio...

Moving Current execution position in an ASP.NET project

I'm not sure why but in my asp.net project in this code block when i get an exception on GetRequestStream() i cannot move my cursor to another point in the function as i normally do when i get a function. The reason is Unable to set the next statement to this location. The next statement cannot be set to another function. Is there some...

JavaScript debugging in VS2008

I'm having a real problem trying to attach the JavaScript debugger in VS2008 to a web project. The web app is an ASP.NET MVC project but I don't think that should matter. I'm using jQuery and have a .js file loaded when the page loads and in this .js file I call $(document).ready(function() { ... } and do some stuff and this "works." Wh...