debugging

Replacing MouseOver with .hoverIntent

First off I apologize... I have posted this question before but I did a bad job of explaining it. I'm having trouble plugging hoverIntent into the following JavaScript... I need it to replace the "mouseenter" and "mouseleave" functions below. Just to be clear, I'm asking for help because I'm not very good with javaScript syntax. The s...

How do I find a stack overflow problem in linux?

I am compiling my application with a third party lib and there seems to be some weird behaviour that suggests a stack overflow issue (this is just a guess). But when I add a print statement after the line that's crashing the application runs fine. If I remove the print statement (a simple cout << "print something" << endl; statement) t...

Any way to force local variables to the stack in 64bit VC application

When a 64 bit VC 2005 application is compiled with optimization turned on, it is not possible to see all local variables in a crash dump file. In many cases, the local variables or parameters are stored in registers instead of on the stack. Subsequent calls to other functions, such as error handling functions, will sometimes overwrite th...

Will Java app slow down by presence of -Xdebug or only when stepping through code?

I realize that Java code will slow down when run in debugger. Question is, will the code slow down simply by starting Java with these options: Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n ?? Or does the slowdown only happen when you connect to the "debug port" and actually step through code using an IDE? ...

Creating different build versions of a Java application

I'm building a Java application (using Ant with build.xml and build.property files). Now I'd like to be able to create a different "debug" build which prints several diagnostic messages to System.err. This is achieved by something like this (simplified): private static final boolean DEBUG = false; public static void debug (String msg) ...

Xdebug issue with Eclipse PHP

Hi! I am currently trying to setup Xdebug on an XP computer with Eclipse PHP installed. I am using WAMP and I'll think I have done everything by the book (as intended by several tutorials online), but when I'll try to execute the Debugging and start the session, nothing happens, which also is notified by Eclipse. Another tab is opened w...

Strange runtime error, seemly microsoft related.

I am using the debug_new tool that come in the pack of tools NVWA made by Wu Yongwei. http://wyw.dcweb.cn/ I turned it off once to track a heisenbug, that now is fixed. But as I turned it on, my program throws a bizarre error: It loads, but before accepting any input it quits and writes on the console: "This application has requested ...

Shared library debug in forked process

How can I debug a shared library in the this case: A daemon is checking which job is set to run, if find one, the daemon will fork a process. This process will do dlopen/dlsym etc to use the shared library. The shared library is under my control so I can put one with debug information. While the daemon is not under my control and canno...

Problem with jQuery in IE8 with Fancybox

I recently aquired an old website (we're talking tables, image maps, you name it). I was asked to make an old link to a Flash gallery into a lightbox. I simply used a javascript: openLightbox() on the gallery link (top right corner). I know, I know, but it doesn't seem out of place on this site. Anyway, I also include a JavaScript file...

Visual Studio 2008 play sound on error while debugging

I have a long running process (40+ min) that I am debugging. I don't want to have to give my workstation my full attention while I'm debugging. I'd like if VS could play a sound if an exception occurs to pull my attention back to my workstation so I can resolve the issue and move on. Is this possible? ...

How do you efficiently handle reference counts between a server and clients?

Say a server stores objects with a reference count. Clients, when they connect (over sockets), send messages to increment and decrement the counts on those objects. The only behavior pattern that's guaranteed is that if a client works with a particular object, it will increment it, some time will pass, and it will decrement it (clients n...

PowerBuilder crashes in debug mode by errors inside try/catch blocks

When in debug mode, powerbuilder (ver 10.5) throws application execution error and terminates the application, for errors raised by statements put inside try/catch blocks? For example line 3 below throws, an "array boundary exceeded" error and the application is terminated. How can I overcome this (handled) error and debug the rest of t...

Visual Studio 2008 > Application debugging disabled

Hi, today my VS2008 started to have a strange behaviour... I usually work wit web sites (not web project) and when I need to debug I attach the debugger to the w3wc.exe process. But today when I attach the process I get a kind of toolbox on the solution explorer, as you can see from this screenshot http://i45.tinypic.com/a0ggmw.jpg (s...

Debug function in opener when called from child page using Firebug

Hello all, I have a function in a parent page that opens another page in a child window. In the same parent I have a 'kind of' callback function that I am calling via window.opener.MyFunction() before closing the child window. It works, but when using Firebug and placing a breakpoint in the 'callback' in the parent Firebug steps throug...

Obj-C keeping memory addresses the same on next debug

Hi, I'm not sure if there is a name for this technique, but I remember doing something like this a long time ago in C++. I would like to breakpoint and observe a specific object of which there are hundreds in my program. It would be nice if you can tell the compiler to use a reserved space of memory so that I can run once, pull out a ...

What is the non-standard HTTP verb "DEBUG" used for in ASP.NET/IIS?

I am reading a report from a "web application security" company, whom have been scanning a few websites of the company I am working for. It appears from the report - which seems written without any human involvement - that several attempts where made to break our sites using requests like this: DEBUG /some_path/some_unexisting_file.aspx...

How to get debug symbols into DLLs, or extract them to a dbg file, with Mingw?

I've written a shared library which is partly used by a Windows application written in Visual Studio 6 (pure C). The library works flawlessly under Linux, but under Windows something's broken somewhere (it uses some #ifdef WIN32 which might enclose something errornous). But adding the library DLL as "additional DLLs" to the project in ...

SQL query debugging required

i am working in winforms with C#. heres my code query = "SELECT max(Appointment_Time) FROM Appointments WHERE (Appointment_Status = 'D')"; dset = db.GetRecords(query,"Appointments"); ctime_Label.Text = dset.Tables["Appointments"].Rows[0]["Appointment_Time"].ToString(); db.GETRecords is a function of the class that provides me sql-serv...

Debugging and killing apps on Mac OS X?

Hey all, I'm in the process of debugging a C++ app on mac os 10.5. Occasionally, I'll do something bad and cause a segfault or an otherwise illegal operation. This results in the app hanging for a while, and eventually a system dialog notifying me of the crash. The wait time between the "hang" and the dialog is significant; a few minutes...

Turning off debugger in Visual Studio 2008

This may sound like a heresy :), but I mostly program in fortran (intel 10) and have actually no need for Visual Studio Debugger. Or at least, never have gotten used to it. So to put it shortly, where does one turn it off ? Is it even possible ? ...