Hi Roderich,

Roderich Schupp wrote:
> So I'm all for making it a run-time option, environment variable preferred:
> PAR_DEBUG is already taken, what about PAR_PERL_DEBUG or
> PAR_DEBUG_PERL?


perhaps I'm not getting something, so please bear with me.

This means that we'd enable debugging for all builds and have the loader
check all /-d.*/ arguments to the packaged binary if that env. var is in
effect? I though you (and I agree) rejected this out of hand because of
security considerations?


Let's sum this up:

- build time == PAR::Packer / parl build time
--> We absolutely need to enable the passing down of -d options to the
packages perl at this time for debugging support.

- packaging time == When pp runs.
--> If the general mechanisms for passing down -d's is in place, we need
to package some debugger / Devel::foo here to make debugging work.

- run time == When the resulting binary is run
--> Parse command line options or use env var to set debugger options.

Now, if we want all builds to have debugging support, we need to be able
to disable it somehow at packaging time because if we rely on run-time
only, it's a security issue. The most straightforward way would be to
build the loader twice as explained previously and choose the one with
or without debugging support according to a pp option. Is there another
way? I don't think so because this all happens in the loader (C) code.

Cheers,
Steffen

Reply via email to