Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 10141 invoked by uid 500); 2 Jan 2002 22:07:22 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 10130 invoked from network); 2 Jan 2002 22:07:22 -0000 Sender: bkorb@svldns02.veritas.com Message-ID: <3C33849C.302D698F@veritas.com> Date: Wed, 02 Jan 2002 14:07:24 -0800 From: Bruce Korb Reply-To: Bruce Korb X-Mailer: Mozilla 4.72 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: dev@httpd.apache.org CC: Bruce Korb Subject: Debugging help, please? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm trying to figure out how to use GDB or any debugger from within a cgi program started by Apache under Linux. I tried the obvious: #! /bin/sh DISPLAY=:0.0 xterm -e gdb /path/to/bin/exe to no avail, so I was hoping for a hint here :-). The more simplistic approach of cloning the environment in a shell script does not evidence the problem. It only seems to be reproducible on Linux under Apache. (It works correctly on other platforms or using different execution environments on Linux.) If this is a known problem with known workarounds or fixes, that would be even better than trying to use gdb :-D Thanks! - Bruce