debugging

How do I debug ASP.NET compilation errors?

I have a large, complicated web site, mostly written by other people. I've made some changes, and now when I try to access any page on the site (not just where my changes are), I get the error described below. While I'd like to know how to fix this problem, I'd even more like to know the general diagnostic steps I should take next in o...

C++ overflow with new keyword debugging

I'm having a tricky debugging issue, perhaps due to my lack of understanding about how c++ manages memory. The code is too long to post, but the essential setup is as follows: global_var = 0; int main() { for(i = 0; i < N; ++i) { ClassA a; new ClassB(a); // seems to be problem! } } For some N, global_var gets corrupted (i...

Debugger does not hit breakpoint (C#)

Hello. I found something quite odd(I think!). If I try to put a breakpoint in the yes() method, it will never pause the program when it executes the function. If I try to do the same to any other line of code, it will work just as expected. Is it a bug, or is there something that's escaping me? The filter will return the 2 objects, ever...

Debugging in XCode as root

In my program I need to create sockets and bind them to listen HTTP port (80). The program works fine when I launch it from command line with sudo, escalating permissions to root. Running under XCode gives a 'permission denied' error on the call to binding function (asio::ip::tcp::acceptor::bind()). How can I do debugging under XCode? ...

How do I debug wireless problems on a mobile app when it has to be wired to run in debug mode?

I'm trying to track down some bugs on a Windows Mobile 5.0 app. The testers can reproduce these bugs no problem, but I can't. They are using the devices across a wireless network, but I'm always running the app in an emulator, or on the actual device while it's in its cradle. In other words I always have a hard-wired connection. I'm ...

Error in production only

An error was discovered in our ASP.NET application where a URL on an anchor was incorrect. The production staff made an emergency fix by rewriting the URL of the page on a BIG-IP F5 hardware load balancer. We now have to fix the bug but I cannot see it in the code. Everything looks perfect. We cannot reproduce the error, not even in QA...

How do I debug silent failures in Java applications?

I'm trying to debug a problem in my Java application that throws no errors, no exceptions and doesn't even crash the app (it seems the failure happens in a separate thread). The problem seems to be inside a call to a library function (it's JAXBContext.newInstance(String) if that matters). The program will reach the line just before the ...

What are some good Perl debugging methods?

Are there any other ways for debugging Perl apart from Data::Dumper and perl -d? ...

How to make MSVC debug builds run faster

We have a large C++ application, which sometimes we need to run as a debug build in order to investigate bugs. The debug build is much much slower than the release build, to the point of being almost unusable. What tricks are available for making MSVC Debug builds execute faster without sacrificing too much on the debugability? ...

Does DDD support Perl?

Can DDD (Data Display Debugger) be used for Perl data structures? ...

Recreate stack trace with line numbers from user bug-report in .net?

First, the problem: I have several free projects, and as any software they contains bugs. Some fellow users when encounter bug send me a bug-reports with stack traces. In order to simplify finding fault place, I want to see line numbers in this stack traces. If application shipped without .pdb files, then all line information is lost, so...

Remote debugging with visual studio and WinDbg server

Is it possible to use WinDBG as a server (instead of Visual Studio Remote Debugger) and connect to it using Visual Studio? ...

Stack overflow in IIRF (a C program, ISAPI)

I am using IIRF - an ISAPI rewrite filter for pretty URL's. I haven't been able to get much help from the developer on these issues. I'm hoping by making some sense of this dump, so I can find the problematic area in the code and rebuild it myself. I am not super familiar with C, but can get around. Do I need to build this with debug sym...

How do I debug JSPs on remote JBoss server?

I'm debugging an application on a remote server running JBoss using Eclipse. My particular problem is a NullPointerException in a JSP. The JSP has too much Java code inside scriptlets but, unfortunately refactoring is not going to be an option. Finding the line that throws the NullPointerException has been incredibly challenging and I...

Howto debug a (slow) linker on a debian system

Hello, at my company we have a really annoying problem with our linker (ld 2.17). It links very very slow on a relatively fast system (Core Duo, 2GB Ram) and i don't really now how to fix this. It takes about five to ten minutes to compile a relatively big project (which takes about 5 seconds to link on my Gentoo system). Personally i ...

Windbg Thread ID After StackOverflow And Process Shut Down

Using ADPlus (in crash dump mode) to generate .dmp files. The final sequence of unhandled exceptions (that produce full memory dump files) is... 1st chance DLL unload: contains thread id's but doesn't contain the StackOverflowException (I wouldn't expect it to since at this point the exception hasn't been thrown yet). 1st chance Stacko...

Debugging/Referncing Strong Named Libraries

How do you correctly setup a solution (C#) that has: Web App Project - contains 16 references to other projects/DLLs A total of 20 projects outside of the web project All projects are Strong Named (pfx file + version, etc) When I dropped the DLL from references and added a Project Reference instead I am getting Strong Name clashes. ...

Why is my PHP Socket Server hanging?

I created a PHP Socket Server with PHP_NORMAL_READ mode. So, a message to the server is read when it ends with \n or \r. I tried it by connecting to the server with multiple telnet instances, and it works great. However, when I connect to the server with 1 flash application and 1 telnet application (I first start the flash one), the fla...

How to run an external tool in Eclipse in debug mode

For various reasons my project can only be run as a finished and packaged JAR (some magic happens at assembly), so I run it as an external tool in Eclipse. What I'm missing is debugging functionality. Is there any way of running an external tool in debug mode in Eclipse? ...

Debugging deadlocking threads in a MT program?

What are the possible ways to debug deadlocking threads in a MT program, other than gdb? ...