debugging

Profiling Javascript statement count

I recently ran into a long-running script error in IE but no other browsers. In investigatng further, I learned that IE defines a long-running script as one that executes more than 5,000,000 statements while all other browsers based in on execution time. In looking at all of the profilers I could find such as Firebug, they give a lot of ...

Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000 Error

Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000 What is Kernel protection error? Where can i find the details about Exception type and code clearly? ...

How to use xdebug with eclipse IDE for PHP

Hi my PHP project is set up on a remote test machine. I need to debug it using eclipse IDE. How shall I progress. I came to know i should prefer Xdebug rather than zend debugger. Please clarify my doubt. ...

What is the best debugging strategy to follow in visual c# ?

hello! when you start debugging, how do you organize your work? is there any regular actions you take before/while debugging? in other words what's the best strategy you follow? thank you ...

Why always 6 parameters are shown for functions in a callstack generated on Solaris?

Why do the functions displayed in a callstack generated in Solaris always contain 6 parameters? In most of the cases, the original function will not be having 6 parameters at all. Sometimes I also find, the parameter values displayed are not matching the order in function declaration. Any pointers or links for understanding these conc...

Website spontaneously freezes in Chrome - how to debug?

I build this http://ipl.janstudt.de/ website which is supposed to run on the iPad (it does) and in Google Chrome. In Chrome (on Win 7 64bit), after a seemingly random time of a few minutes, the browser freezes. Also, sometimes when I click the "Reload Page" button in Chrome while on this site, the Browser also freezes. In both cases, the...

my app works fine on Debug Build gets "BAD ACCESS" on Release Build

my app is working on 128mb idevices when i build with Debug configuraion, but when i build in Release configuration the app crashes on startup with "BAD ACCESS". on 256mb and up it works on both configurations. according to "Activity Monitor" the "Real Memory" usage is 14mb and "Virtual Memory" is 75mb (is this normal?) "Allocations" ...

T-Mobile G1 won't appear in 'adb devices' list

I'm trying to connect to connect to my T-Mobile G1 to test a simple android app I an creating. I cannot get it to show up in the list of connected android devices. Here are the details: 32-bit Windows XP I have enabled USB Debugging on my device I am not prompted with the New Hardware Wizard when I plug my device in, it is merely seen...

Debug a referenced DLL in a separate solution

I have a web project, A, that references a DLL, B, that I would like to debug. I have the DLL source code in a separate solution. Is it possible to step into the dll code without adding the dll project to my A solution? Thanks! FGA ...

urllib2.urlopen throws 404 exception for urls that browser opens

Hi. The following url (and others like it) can be opened in a browser but causes urllib2.urlopen to throw a 404 exception: http://store.ovi.com/#/applications?categoryId=20&fragment=1&page=1 geturl() returns the same url (no redirect). The headers are copied and pasted from firebug. I tried passing in the headers as a dictionar...

What's a practical use of .PDB files?

I have been reading about PDB files and how they have to do with debugging but why would I want to keep a pdb file after I ship? If there is a problem, I can just debug on my machine. What am I missing? ...

Whats a good java debugger?

I'm trying to find memory leaks and performance issues with my java application. Is there a program out there that can help me debug my application and display performance results? Thanks. ...

the only thing i know how to javascipt is using alert(). is there any other way to help debugging javascript ?

the only thing i know how to javascipt is using alert(). is there any other way to help debugging javascript ? ...

Debugging Multiprocess Programs

What would be the best way to debug multi-process code (i.e. processes where parent process spawns multiple child daemon processes). So far I have been doing - Make sure the program runs fine in single process mode. After that turn on logging mechanism & try to figure out what might be going on in the logs etc... Are there any bette...

What to keep for iPhone app?

I have submitted an iPhone app to Apple for approval and distribution. What do I need to save of the code and compilations to be able to bug-fix if (when?) the bugs come in? Should I just save everything, or just the symbols file? ...

Pass by reference problem in RMI ?

Hi, can somebody please tell me where i m wrong why this RMI chat application not working,the goal is to achieve decoupleing between client, server and logic by remote objects or serialized objects. import javax.swing.*; import java.awt.event.*; import java.rmi.*; import java.rmi.server.*; public class ChatClient1...

Java remote debugging, how does it work technically?

Hi, I really like the remote debugging facilities of the JVM. But I wonder how it works internally. My assumption: It is done through a JVM feature where the running process is downloading/using the source-code from the attached remote-debugger (like IDE) It knows the line of the current stack-trace and then can jump to the respective...

How do I provide the "Find Window's Process" feature in Process Explorer (sysinternals)

I'm developing an application for debugging purposes. I want the user to be able to select the process to be debugged using the mouse. Process Explorer does a great job of this with the "Find Window's Process" feature. What I can't figure out is how it does this? Does anyone know the Window's API that provides this functionality? Thanks...

respondsToSelector send to deallocated object

Hi, I try to find out why my app crashes (RSS Reader) if I send a wrong URL to NSXML Parser. I got an EXC_BAD_ACCESS. So after some Searching I found out that I have to use Zombies. So I added the following arguments to the environment: CFZombieLevel = 3 NSMallocStaclLogging = YES NSDeallocateZombies = NO MallocStackLoggingNoCompact...

Freeze Dom Manipulation

Is there a way to make firebug (or any other browser, or using any other tool) stop any dom manipulation from happening? Sometimes layout debugging a screen filled with on hover events is impossible, as the elements may disappear, and you can't see their compound layout. ...