Doug, how do we want to change the start_gdb with a more generic code and
decide which debugger is to be used via the command line option and/or env
var?

I suggest that we have 'debug:s' option, where:

 --debug

(no value) uses $ENV{MP_DEBUGGER} || 'gdb'. And:

 --debug=db_foo

uses 'db_foo' if supported and quits with an error if not.

Anyway, ddd coupled with gdb should be invoked as:
my $command = qq{ddd --gdb --debugger "gdb -command $file" $config->{vars}->{httpd}};

I use ddd since it's a fantastic tool when you need to debug/learn
complicated data structures. Its 'Data' window is very helpful.

Probably another useful key would be -debug-jump-init or similar which
will take  you right into the modperl_hook_init() via the breakpoint. I'm
adding your trick notes to modperl_dev.pod, but I think it'd be nice to
have the feature in core. I can also think of having a set of jump points
to various frequently used breakpoints selected via the debug options, but
this can be added later if found useful.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to