Re: mod_perl debugging application debugging in shared environments

Perrin Harkins <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC0_be33kSziE8HLo7XB3nvMtf7T1VD7mU0+FTgEsNzRYx0_pw@mail.gmail.com>
On Fri, Nov 18, 2011 at 12:48 PM, Dmitriy Ryajov <[email protected]> wrote:
> I'm running in a shared development environment. I can't run httpd in non
> detached mode on that machine because the server is used by other devs at
> the same time, and there is absolutely no way I can get my own sandbox set
> up.

I suspect that finding a way to run your own is going to be easier
than inventing a new way to debug perl.  Can you tell us anything
about the barriers to running your own server?  We might be able to
suggest something.

> Is there a way that I can run an interactive debug session without
> running http -x?

You need a console attached, so I don't think so.  You could look at
what others have done with trying to debug forked programs, but
daemons like apache try pretty hard to detach from everything.

> I'm willing to invest time into adding the required functionality into
> mod_perl/Apache::DB if necessary, so any pointers into why and how, are
> greatly appreciated.

If I were going to try to do this, I'd probably start with
http://search.cpan.org/dist/Devel-ebug/ and see if it can be hacked to
work as a remote debugger for mod_perl.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.