Add options for remote debugging
(refs #296)Fix redirection path generation again